/* Shared styles for Droplet Idle website */

:root {
    color-scheme: light dark;
    --bg-primary: #0a0a14;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --accent-primary: #64B5F6;
    --accent-secondary: #4FC3F7;
    --accent-tertiary: #4ECDC4;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --border-color: rgba(100, 181, 246, 0.5);
    --shadow-glow: rgba(100, 181, 246, 0.3);
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Pixel grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    z-index: 0;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    animation: scanline 8s linear infinite;
    z-index: 1;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

/* Base typography */
a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--shadow-glow);
}

strong {
    color: var(--accent-primary);
}

/* Back link (inner pages) */
.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--accent-secondary);
    text-decoration: none;
    font-family: 'Silkscreen', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--shadow-glow);
}

/* Inner page header */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Footer */
.footer {
    background: rgba(26, 26, 46, 0.9);
    border-top: 3px solid var(--border-color);
    padding: 50px 20px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-download {
    text-align: center;
    margin-bottom: 40px;
}

.footer-download h3 {
    font-family: 'Silkscreen', monospace;
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.store-badge:hover {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 15px var(--shadow-glow));
}

.store-badge img {
    height: 50px;
    width: auto;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
}

.footer-nav {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(100, 181, 246, 0.3);
    border-bottom: 1px solid rgba(100, 181, 246, 0.3);
}

.footer-nav a {
    color: var(--accent-secondary);
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Silkscreen', monospace;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--shadow-glow);
}

.footer-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

.footer-info p {
    margin: 5px 0;
}
