/* Home Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Press+Start+2P&display=swap');

/* Cute Theme (Default) */
:root,
[data-theme="cute"] {
    --primary: #ff6b9d;
    --primary-light: #ffa6c9;
    --primary-dark: #e85384;
    --bg: #fff5f7;
    --surface: #ffffff;
    --text: #2d1b2e;
    --text-secondary: #8b7a8c;
    --border: #f0d9e0;
    --accent: #5fdc91;
    --radius: 20px;
    --shadow: 0 4px 12px rgba(255, 107, 157, 0.15);
    --font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-gradient: linear-gradient(135deg, #fff5f7 0%, #ffe8f0 100%);
}

/* Retro Game Theme */
[data-theme="retro"] {
    --primary: #ff6b35;
    --primary-light: #ff8c61;
    --primary-dark: #e55a2b;
    --bg: #2d1b2e;
    --surface: #3e2c41;
    --text: #f4f1de;
    --text-secondary: #c9b8a5;
    --border: #6b4e71;
    --accent: #06ffa5;
    --radius: 0px;
    --shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    --font-family: 'Press Start 2P', monospace;
    --bg-gradient: repeating-linear-gradient(
        0deg,
        #2d1b2e 0px,
        #2d1b2e 2px,
        #331d30 2px,
        #331d30 4px
    );
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.theme-switcher {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.theme-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius);
    background: var(--surface);
    border: 2px solid var(--border);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.theme-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.category {
    margin-bottom: 4rem;
}

.category h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.2);
    border-color: var(--card-accent);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow);
}

footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    border-top: 2px solid var(--border);
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Retro Theme Overrides */
[data-theme="retro"] * {
    font-size: 10px;
    line-height: 1.4;
}

[data-theme="retro"] header h1 {
    font-size: 24px;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    -webkit-text-fill-color: var(--primary);
    filter: none;
}

[data-theme="retro"] .subtitle {
    font-size: 11px;
}

[data-theme="retro"] .category h2 {
    font-size: 14px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

[data-theme="retro"] .card {
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--primary);
}

[data-theme="retro"] .card:hover {
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.6);
    transform: translate(-2px, -2px);
}

[data-theme="retro"] .card h3 {
    font-size: 12px;
}

[data-theme="retro"] .card p {
    font-size: 10px;
}

[data-theme="retro"] .tag {
    font-size: 9px;
    border-radius: 0;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

[data-theme="retro"] .theme-btn {
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary);
}

[data-theme="retro"] .theme-btn:hover {
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.6);
    transform: translate(-2px, -2px);
}

[data-theme="retro"] footer {
    font-size: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    [data-theme="retro"] header h1 {
        font-size: 18px;
    }
}
