:root {
    --primary: #4285f4;
    --primary-dark: #1a73e8;
    --primary-darker: #0d5ec1;
    --secondary: #00c6ff;
    --dark: #1a1a1a;
    --darker: #121212;
    --darkest: #0a0a0a;
    --light: #f5f5f5;
    --gray: #444;
    --surface: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #000;
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.android-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

/* Hero Card */
.changelog-hero-card {
    background: #0b0b0b;
    border-radius: 24px;
    padding: 48px 40px 44px;
    margin: 40px auto 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    will-change: transform, opacity;
    contain: content;
}

.changelog-hero-card::before, .changelog-hero-card::after {
    content: '';
    position: absolute;
    width: 240px; 
    height: 240px;
    background: radial-gradient(circle at center, rgba(66, 133, 244, 0.2), transparent 70%);
    top: -70px; 
    left: -50px;
    filter: blur(2px);
    pointer-events: none;
}

.changelog-hero-card::after { 
    top: auto; 
    bottom: -80px; 
    left: auto; 
    right: -60px; 
    background: radial-gradient(circle at center, rgba(0, 198, 255, 0.2), transparent 70%); 
}

.changelog-hero-card h1 {
    font-family: 'Google Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.changelog-hero-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Changelog Box */
.changelog-container-card {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 50px;
    border: 1.5px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(66, 133, 244, 0.25);
    min-height: 400px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.15s forwards;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.changelog-container-card::-webkit-scrollbar {
    display: none;
}

.changelog-text {
    font-family: 'Space Grotesk', 'Roboto Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
    
    /* TEXT WRAPPING */
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    
    max-width: 100%;
    margin: 0;
}

/* Loading State */
.changelog-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .changelog-hero-card {
        padding: 36px 20px 32px;
        margin-top: 25px;
    }
    
    .changelog-container-card {
        padding: 20px 16px;
        min-height: 320px;
    }
    
    .changelog-text {
        font-size: 0.88rem;
    }
}
