/* radarskaslikapadavin.com - Centered ARSO Radar Layout */

:root {
    --bg-dark: hsl(224, 25%, 5%);
    --bg-card: hsl(222, 20%, 10%);
    --text-primary: hsl(0, 0%, 95%);
    --text-secondary: hsl(215, 15%, 65%);
    --text-muted: hsl(215, 10%, 45%);
    
    --accent-blue: hsl(195, 90%, 50%);
    --accent-blue-glow: hsla(195, 90%, 50%, 0.15);
    --accent-purple: hsl(265, 80%, 60%);
    --accent-purple-glow: hsla(265, 80%, 60%, 0.1);
    
    --glass-border: rgba(255, 255, 255, 0.06);
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    position: relative;
}

/* Elegant Ambient Background Glows */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 25%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
}

.glow-bg::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 25%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
}

/* Centered Layout Wrapper */
.centered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px 20px 20px;
    width: 100%;
    max-width: 1000px;
    z-index: 10;
}

/* Header */
.minimal-header {
    text-align: center;
}

.minimal-header h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Toggle Buttons */
.toggle-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.02);
    padding: 5px 8px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toggle-divider {
    width: 1px;
    height: 16px;
    background: var(--glass-border);
    margin: 0 4px;
    flex-shrink: 0;
}

.toggle-btn {
    background: none;
    border: 1px solid transparent;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth, all 0.2s ease);
    outline: none;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

a.toggle-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.toggle-btn--secondary {
    color: var(--text-muted);
    font-size: 10.5px;
}

.toggle-btn--secondary:hover {
    color: var(--text-secondary);
}

.toggle-btn.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(0, 195, 255, 0.15) 0%, rgba(142, 68, 173, 0.08) 100%);
    border: 1px solid rgba(0, 195, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.05);
}

.country-shape {
    height: 18px;
    width: auto;
    flex-shrink: 0;
    margin-right: 2px;
    cursor: pointer;
}

.country-shape-hr {
    height: 26px;
}



/* Radar Viewport with subtle border and drop-shadow */
.radar-viewport {
    position: relative;
    border-radius: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 10px;
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.radar-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid rgba(0, 195, 255, 0.1);
    pointer-events: none;
    box-shadow: inset 0 0 15px rgba(0, 195, 255, 0.02);
}

.radar-gif {
    display: block;
    border-radius: 6px;
    background-color: #0b0d19; /* Standard ARSO background match */
    max-width: 100%;
}

/* Live badge */
.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(11, 12, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 3px 8px 3px 6px;
    z-index: 10;
    pointer-events: none;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: hsl(0, 85%, 60%);
    flex-shrink: 0;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.live-text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Page description */
.page-description {
    max-width: 500px;
    text-align: center;
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* FAQ */
.page-faq {
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-faq details {
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.01);
}

.page-faq summary {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    padding: 7px 0;
    user-select: none;
}

.page-faq summary::-webkit-details-marker { display: none; }

.page-faq details[open] summary {
    color: var(--text-primary);
}

.page-faq details p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.55;
    padding: 0 0 8px 0;
}

/* Footer */
.minimal-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.minimal-footer p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    color: var(--text-secondary);
    border-color: rgba(0, 195, 255, 0.2);
}

.share-btn.confirmed {
    color: var(--accent-blue);
    border-color: rgba(0, 195, 255, 0.3);
}

/* Install prompt */
.install-prompt {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 195, 255, 0.15);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: bottom 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.install-prompt.visible {
    bottom: 20px;
}

.install-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.install-accept {
    background: linear-gradient(135deg, rgba(0, 195, 255, 0.15) 0%, rgba(142, 68, 173, 0.08) 100%);
    border: 1px solid rgba(0, 195, 255, 0.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.install-accept:hover {
    border-color: rgba(0, 195, 255, 0.4);
}

.install-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Responsive ───────────────────────────────────────────── */

/* Toggle wraps to two rows: SI on top, HR below */
@media (max-width: 560px) {
    .toggle-container {
        flex-wrap: wrap;
    }

    .toggle-divider {
        flex-basis: 100%;
        width: auto;
        height: 1px;
        margin: 2px 0;
    }

    .country-shape {
        width: 32px;
        object-fit: contain;
    }
}

/* Phone */
@media (max-width: 480px) {
    .centered-container {
        gap: 8px;
        padding: 10px 12px 16px;
    }

    .minimal-header h1 {
        font-size: 20px;
    }

    .radar-viewport {
        width: 100%;
        padding: 6px;
    }

    /* Override JS-locked height so image scales proportionally */
    .radar-gif {
        height: auto !important;
    }

    .minimal-footer p {
        font-size: 11px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .toggle-btn {
        padding: 4px 8px;
    }

    .minimal-header h1 {
        font-size: 18px;
    }
}
