/* CSS Variables for theming */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-red: #c41e3a;
    --accent-red-hover: #e52a4a;
    --accent-gold: #d4af37;
    --accent-silver: #c0c0c0;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #e8e8e8;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent-red: #b01830;
    --accent-red-hover: #d01e3a;
    --border-subtle: rgba(0, 0, 0, 0.1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    fill: var(--accent-red);
}

h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-silver) 50%, var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.header-buttons {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.header-btn svg {
    width: 18px;
    height: 18px;
}

.support-btn {
    background: var(--accent-red);
    color: white;
}

.support-btn:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
}

.contact-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.contact-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.theme-toggle-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.theme-toggle-btn:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

.section-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-gold) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    fill: var(--accent-red);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
    opacity: 1;
}

.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-weight: 300;
    flex-grow: 1;
}

.card-coming-soon {
    opacity: 0.5;
    pointer-events: none;
}

.card-coming-soon::after {
    content: 'COMING SOON';
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 8px;
    border-radius: 3px;
}

/* Info Cards Section (Todo/Changelog) */
.info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.info-card-header svg {
    width: 24px;
    height: 24px;
    fill: var(--accent-red);
    flex-shrink: 0;
}

.info-card-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 0;
}

.info-card-content {
    padding: 16px 20px;
    max-height: 280px;
    overflow-y: auto;
}

.info-card-content::-webkit-scrollbar {
    width: 6px;
}

.info-card-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.info-card-content::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

.info-card-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card-content li {
    position: relative;
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.info-card-content li:last-child {
    border-bottom: none;
}

.info-card-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent-red);
    opacity: 0.6;
}

.info-card-content li.done::before {
    background: #27ae60;
    opacity: 0.8;
}

.info-card-content li.done {
    color: var(--text-muted);
    text-decoration: line-through;
}

.changelog-entry {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.changelog-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.changelog-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.changelog-entry p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.changelog-entry ul {
    margin-top: 6px;
}

.changelog-entry li::before {
    width: 6px;
    height: 6px;
    top: 12px;
    background: var(--accent-gold);
}

@media (max-width: 768px) {
    .info-section {
        grid-template-columns: 1fr;
    }
}

footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-red);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .header-buttons {
        margin-top: 20px;
        gap: 10px;
    }

    .header-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        min-height: 160px;
        padding: 24px 20px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
    }

    .card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .card {
        min-height: 140px;
        padding: 20px 16px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 12px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}

.disclaimer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.disclaimer a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border-medium);
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.disclaimer a:hover {
    color: var(--text-primary);
}
