/* PixelCube Studios - Master Stylesheet 
    Palette: Deep Slate Navy, PixelCube Green, & App Store Blue
*/

:root {
    --primary: rgb(77, 204, 36); /* PixelCube Green */
    --discord-blurple: #5865F2; 
    --discord-hover: #4752C4;
    --ios-blue: #007aff; /* Vibrant App Store Blue */
    --danger: #ef4444; 
    --bg: #f1f5f9; /* Darkened for better card contrast */
    --header-bg: #1e293b; /* Deep Slate Navy */
    --text-main: #1e293b; 
    --text-muted: #64748b; 
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

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

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg); 
    color: var(--text-main); 
    line-height: 1.6; 
}

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

/* --- HEADER --- */
header { 
    background: var(--header-bg); 
    padding: 1.5rem 0;
    text-align: center; 
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo { 
    font-weight: 900; 
    font-size: 1.8rem; 
    letter-spacing: -1px; 
    text-transform: uppercase; 
    color: #ffffff; 
    text-decoration: none; 
}

.logo span { 
    color: var(--primary); 
}

/* --- GAMES GRID SECTION --- */
.games-section { 
    padding: 3rem 0 2rem; 
}

.game-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 3rem; 
}

.game-card { 
    background: #ffffff; 
    border-radius: 32px; 
    padding: 3rem; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: var(--card-shadow); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    
    /* Flex alignment fix */
    display: flex;
    flex-direction: column;
    
    flex: 1;
    max-width: 420px;
    min-width: 300px;
    position: relative;
}

.game-card:hover { 
    transform: translateY(-12px); 
    border-color: var(--primary); 
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.12);
}

.game-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 24%; 
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background: #f1f5f9;
    flex-shrink: 0;
}

.game-icon { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.game-card h3 { 
    font-size: 1.8rem; 
    margin-bottom: 0.75rem; 
    font-weight: 800;
    /* Consistency fix: handles 1 vs 2 line titles */
    min-height: 4.4rem; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card p { 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
    flex-grow: 1; /* Pushes store links to the bottom */
}

/* --- BADGES --- */
.badge { 
    position: absolute; 
    top: -12px; 
    left: 50%; 
    transform: translateX(-50%);
    padding: 6px 18px; 
    border-radius: 50px; 
    font-size: 0.7rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    color: white;
    z-index: 10;
}

.popular { background: var(--primary); }
.new { background: var(--danger); }

/* --- STORE BUTTONS --- */
.store-links { 
    display: flex; 
    gap: 0.75rem;
    margin-top: auto;
}

.store-btn { 
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem; 
    border-radius: 16px; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 700; 
    transition: all 0.2s ease; 
    color: #fff;
}

.ios { background: var(--ios-blue); }
.android { background: var(--primary); }

.store-btn:hover { 
    transform: translateY(-2px); 
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- DISCORD SECTION --- */
.discord-section {
    padding: 2rem 0 5rem;
}

.discord-icon-bg {
    background: var(--discord-blurple);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
}

.discord-btn {
    display: block; 
    background-color: var(--discord-blurple);
    color: #fff;
    padding: 1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.discord-btn:hover {
    background-color: var(--discord-hover);
    transform: translateY(-2px);
}

/* --- SUPPORT SECTION --- */
.contact-section { 
    padding: 6rem 0; 
    text-align: center; 
    background: #ffffff; 
    border-top: 1px solid #e2e8f0; 
}

.contact-section h2 { 
    font-weight: 900; 
    font-size: 2.2rem; 
    margin-bottom: 0.5rem;
}

.contact-email { 
    display: inline-block; 
    margin-top: 1.5rem; 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: var(--primary); 
    text-decoration: none; 
    transition: all 0.3s ease;
}

.contact-email:hover { 
    color: var(--text-main); 
    transform: scale(1.02);
}

/* --- LEGAL PAGES --- */
.legal-content {
    padding: 8rem 0 10rem;
    max-width: 850px;
    margin: 0 auto;
}

.last-updated {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1rem;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.legal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.85; 
}

.legal-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
}

.legal-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.legal-list li a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(77, 204, 36, 0.2);
}

/* --- FOOTER --- */
footer { 
    padding: 4rem 0; 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}

.footer-links { 
    margin-top: 1rem; 
}

.footer-links a { 
    color: var(--text-main); 
    font-weight: 700; 
    text-decoration: none; 
    margin: 0 0.5rem; 
}

.sep { opacity: 0.3; }

/* --- RESPONSIVENESS --- */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .contact-email { 
        font-size: 1.2rem; 
        word-break: break-all;
    }
    
    .game-card { 
        padding: 2.5rem 1.5rem; 
        max-width: 100%;
    }

    .game-card h3 {
        min-height: auto;
    }

    .legal-content {
        padding: 5rem 1.5rem 5rem;
        max-width: 100%;
    }

    .legal-content h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
        line-height: 1.2;
        margin-top: 1rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .legal-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    .legal-list {
        display: block;
    }

    .legal-list li {
        margin-bottom: 10px;
    }

    .legal-list li a {
        display: block;
        text-align: left;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .legal-content {
        padding: 4rem 1.25rem 4rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }
}