:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary-color: #3b82f6;
    --accent-color: #8b5cf6;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a,
.lang-btn {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid transparent;
}

.nav-links a:hover,
.lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    border-bottom: 2px solid;
    padding-bottom: 0.5rem;
    display: inline-flex;
}

.header-tech {
    border-color: #3b82f6;
}

.header-global {
    border-color: #ef4444;
}

.header-viral {
    border-color: #10b981;
}

.trend-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.trend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.card-tech::before {
    background-color: #3b82f6;
}

.card-global::before {
    background-color: #ef4444;
}

.card-viral::before {
    background-color: #10b981;
}

.trend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background: rgba(40, 50, 70, 0.8);
}

.trend-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.trend-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.score {
    font-weight: 600;
    color: var(--accent-color);
}

/* Detail Page */
.detail-container {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.detail-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ad-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--glass-border);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    color: var(--text-muted);
    border-radius: 12px;
}

.redirect-btn {
    display: inline-block;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: filter 0.3s;
    margin-top: 1rem;
}

.redirect-btn.disabled {
    filter: grayscale(1);
    cursor: not-allowed;
}

.countdown {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}