/* Variables for Theme & Design System */
:root {
    --bg-color: #0b1120; /* Very dark blue for a sleek look */
    --surface-color: rgba(30, 41, 59, 0.65); /* Glassmorphism background */
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc; /* Crisp white */
    --text-secondary: #94a3b8; /* Slate gray */
    --accent-color: #38bdf8; /* Vibrant light blue */
    --accent-glow: rgba(56, 189, 248, 0.25);
    --tiktok-color: #fe2c55; /* Official TikTok color */
    
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    /* Premium background with subtle radial gradients */
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,12%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,0.2) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,0.2) 0, transparent 50%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Glassmorphism Utilities */
.glass-header, .glass-footer, .article-card, .hero-content {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-border);
}

/* --- Header --- */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--surface-border);
    border-top: none;
    border-left: none;
    border-right: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: rotate(-5deg) scale(1.05);
}

.site-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--accent-color);
}

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.tiktok-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.tiktok-btn:hover {
    background-color: var(--tiktok-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.4);
}

/* --- Main Content --- */
.main-content {
    padding: 40px 20px;
}

/* --- Hero Section --- */
.hero-section {
    margin-bottom: 70px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 65vh;
    min-height: 480px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-section:hover .hero-bg {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 17, 32, 1) 0%, rgba(11, 17, 32, 0.4) 60%, rgba(11, 17, 32, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 40px;
    margin: 30px;
    border-radius: 16px;
    max-width: 800px;
    border-left: 5px solid var(--tiktok-color);
    transform: translateY(0);
    transition: var(--transition);
}

.hero-section:hover .hero-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.badge {
    background: var(--tiktok-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(254, 44, 85, 0.3);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.25;
    margin-bottom: 18px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-weight: 700;
}

.hero-sapo {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.read-more svg {
    transition: transform 0.3s;
}

.hero-section:hover .read-more svg, .article-card:hover .read-more svg {
    transform: translateX(6px);
}

/* --- Section Title --- */
.section-title {
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.title-line {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.2), transparent);
}

/* --- Grid Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.article-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    transform: translateY(0);
}

.article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

.card-img-wrapper {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover .card-img {
    transform: scale(1.08);
}

.card-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.article-card:hover .card-title {
    color: var(--accent-color);
}

.card-sapo {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    font-weight: 300;
}

/* --- Footer --- */
.glass-footer {
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--surface-border);
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-info h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info p {
    color: var(--text-secondary);
    font-weight: 300;
}

.footer-social {
    text-align: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-social a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
}

.footer-copyright {
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Dynamic Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Can be expanded to a mobile menu later */
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    
    .footer-social, .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 25px;
        margin: 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}
