@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&family=Oswald:wght@600;700&display=swap');

@font-face {
    font-family: 'Pricedown';
    src: url('https://fonts.cdnfonts.com/s/14352/Pricedown.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --rs-yellow: #FCAF17;
    --gtao-red: #D32F2F;
    --reddit-orange: #FF4500;
    --bg-dark: #0A0A0A;
    --bg-panel: #121212;
    --bg-box: #1C1C1C;
    --text-main: #FFFFFF;
    --text-muted: #9E9E9E;
    --border-color: #2A2A2A;
    --success-green: #388E3C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-nav {
    background-color: #121212;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    width: 100%;
}

.nav-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-brand-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-svg {
    width: 28px;
    height: 28px;
}

.brand-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--rs-yellow);
    font-weight: 700;
}

.app-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
}

.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.gta-online-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-gta {
    font-family: 'Pricedown', sans-serif;
    font-size: 4rem;
    color: var(--text-main);
    line-height: 0.8;
}

.logo-online {
    font-family: 'Inter', sans-serif;
    font-size: 3.1rem;
    font-weight: 900;
    letter-spacing: 0.4em;
    color: var(--gtao-red);
    margin-top: 4px;
    margin-right: -0.4em;
}

.lang-switcher {
    display: flex;
    background-color: var(--bg-box);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 6px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background-color: var(--rs-yellow);
    color: #000000;
}

.dashboard {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.dashboard-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--success-green);
    text-transform: uppercase;
    background: rgba(56, 142, 60, 0.12);
    padding: 4px 10px;
    border-radius: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.data-box {
    background-color: var(--bg-box);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
}

.countdown-box {
    grid-column: 1 / -1;
    text-align: center;
    background-color: #171717;
    border-top: 3px solid var(--rs-yellow);
}

.data-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.date-range {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-text, .time-text {
    font-size: 0.95rem;
    font-weight: 600;
}

.text-accent {
    color: var(--rs-yellow);
}

.date-separator {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.time-text {
    font-size: 1.2rem;
}

.tz-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.countdown-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--rs-yellow);
    letter-spacing: 2px;
    margin: 8px 0 18px 0;
}

.progress-container {
    max-width: 480px;
    margin: 0 auto;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background-color: #2A2A2A;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--rs-yellow);
    transition: width 0.5s ease;
}

/* Action Buttons Grid */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 12px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-icon {
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--rs-yellow);
    color: #000000;
}

.btn-primary:hover {
    background-color: #E59812;
}

.btn-reddit {
    background-color: #261713;
    color: #FF4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}

.btn-reddit:hover {
    background-color: #381e18;
    border-color: #FF4500;
}

.btn-secondary {
    background-color: var(--bg-box);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #2A2A2A;
}

.app-footer {
    text-align: center;
    margin-top: 35px;
    padding-bottom: 20px;
}

.app-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-link {
    color: var(--rs-yellow);
    text-decoration: none;
    font-weight: 700;
}

.author-link:hover {
    text-decoration: underline;
}

.disclaimer {
    margin-top: 12px;
    font-size: 0.72rem !important;
    opacity: 0.5;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-en {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
}

@media (max-width: 650px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        flex-direction: column;
    }
    .logo-gta {
        font-size: 3rem;
    }
    .countdown-text {
        font-size: 2.1rem;
    }
    .dashboard-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}