:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --menu-width: 280px;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    transition: 0.3s;
}

.app-container {
    width: 100%;
    max-width: 720px;
    min-height: 100vh;
    background: var(--bg-secondary);
    position: relative;
    overflow-x: hidden;
}

.header {
    height: 70px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    font-size: 2.75rem;
    font-weight: 800;
    font-style: bold;
    background: linear-gradient(45deg, #ff0000, #ff6b6b, #ff7700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fire 3s ease infinite;
    background-size: 200% auto;
    padding: 0.25rem;
}

@keyframes fire {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
}

.nav-button {
    background: linear-gradient(45deg, #FF0844, #FF3C48, #FF8C42);
    border: none;
    border-radius: 50%;
    color: white;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 8, 68, 0.5);
    animation: neonPulse 2s infinite;
    padding-bottom: 4px;
}

.nav-button:hover {
    transform: scale(1.1);
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 5px rgba(255, 8, 68, 0.5); }
    50% { box-shadow: 0 0 15px rgba(255, 140, 66, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 8, 68, 0.5); }
}

.theme-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: #3b82f6;
}

.hamburger-menu {
    display: flex;
    align-items: center;
}

.hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger-button span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-items {
    position: absolute;
    top: 70px;
    left: calc(-1 * var(--menu-width));
    width: var(--menu-width);
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    overflow-y: auto;
    z-index: 5;
}

.menu-items.active {
    transform: translateX(var(--menu-width));
}

.menu-items ul {
    list-style: none;
    padding: 1rem 0;
}

.menu-items li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.menu-items li a:hover {
    background: rgba(59, 130, 246, 0.1);
}

.menu-items li a svg {
    color: var(--text-secondary);
}

.menu-items li a:hover svg {
    color: #3b82f6;
}

.news-container {
    position: relative;
    min-height: calc(100vh - 72px);
}

.news-card {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.news-card.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.news-image-container {
    width: 100%;
    height: 400px;
    background: #2a2a2a;
    overflow: hidden;
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 2rem 1.5rem;
}

.news-title {
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.news-description {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar {
    height: 2px;
    background: rgba(148, 163, 184, 0.1);
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #3b82f6;
    transition: width 0.1s linear;
}

.loading, .error-message {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    :root {
        --menu-width: 100%;
    }
    
    .app-container {
        max-width: none;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .news-image-container {
        height: 300px;
    }
    
    .news-title {
        font-size: 1.5rem;
    }
    
    .news-description {
        font-size: 1.2rem;
    }

    .menu-items {
        width: 100%;
        left: -100%;
    }

    .menu-items.active {
        transform: translateX(100%);
    }
}
.disclaimer-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.disclaimer-popup.active {
    opacity: 1;
    visibility: visible;
}

.disclaimer-content {
    background: var(--bg-secondary);
    padding: 3rem;
    max-width: 90%;
    width: 500px;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 3px rgba(255, 60, 72, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.disclaimer-popup.active .disclaimer-content {
    transform: translateY(0) scale(1);
}

.disclaimer-icon {
    margin: -1rem auto 2rem;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #FF0844, #FF3C48, #FF8C42);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(255, 60, 72, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: pulseGlow 2s infinite;
}

.disclaimer-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.disclaimer-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: linear-gradient(45deg, #FF0844, #FF3C48, #FF8C42);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.disclaimer-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    padding: 0 1rem;
}

.disclaimer-button {
    background: linear-gradient(45deg, #FF0844, #FF3C48, #FF8C42);
    border: none;
    padding: 1rem 3rem;
    border-radius: 3rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 20px rgba(255, 60, 72, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.disclaimer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.disclaimer-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 30px rgba(255, 60, 72, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
}

.disclaimer-button:hover::before {
    left: 100%;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 
            0 10px 30px rgba(255, 60, 72, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(255, 60, 72, 0.5),
            0 0 20px rgba(255, 60, 72, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 10px 30px rgba(255, 60, 72, 0.3),
            inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .disclaimer-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .disclaimer-icon {
        width: 60px;
        height: 60px;
        margin: -0.5rem auto 1.5rem;
    }
    
    .disclaimer-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .disclaimer-content h2 {
        font-size: 1.5rem;
    }
    
    .disclaimer-content p {
        font-size: 1rem;
        padding: 0;
    }
    
    .disclaimer-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}