﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f1116;
    color: #e8eaed;
    line-height: 1.6;
    font-weight: 400;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a1d23 0%, #0f1116 100%);
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #2a2e35;
}

    header h1 {
        font-size: 3rem;
        margin-bottom: 16px;
        color: #ffffff;
        font-weight: 300;
        letter-spacing: -0.5px;
    }

.tagline {
    font-size: 1.3rem;
    color: #9aa0a6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
}

/* Intro Section */
.intro {
    padding: 80px 0;
    background-color: #15181e;
    border-bottom: 1px solid #2a2e35;
}

    .intro h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        color: #ffffff;
        text-align: center;
        font-weight: 400;
    }

    .intro p {
        font-size: 1.1rem;
        margin-bottom: 24px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        color: #bdc1c6;
        line-height: 1.7;
    }

/* Intro Cards */
.intro-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 50px 0;
}

.intro-card {
    background: linear-gradient(145deg, #1a1d23, #15181e);
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #2a2e35;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

    .intro-card:hover {
        transform: translateY(-5px);
        border-color: #3c4043;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }

    .intro-card h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        color: #8ab4f8;
        font-weight: 500;
        text-align: center;
    }

    .intro-card p {
        color: #bdc1c6;
        margin-bottom: 16px;
        line-height: 1.6;
        font-size: 0.95rem;
    }

        .intro-card p:last-child {
            margin-bottom: 0;
        }

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.discord-link, .patreon-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #3c4043;
    background-color: #1e2228;
    color: #e8eaed;
    font-size: 1rem;
}

    .discord-link:hover {
        background-color: #5865F2;
        border-color: #5865F2;
        transform: translateY(-2px);
        color: #ffffff;
    }

    .patreon-link:hover {
        background-color: #FF424D;
        border-color: #FF424D;
        transform: translateY(-2px);
        color: #ffffff;
    }

/* Compact New & Upcoming Sections */
.new-apps, .upcoming-apps {
    padding: 50px 0;
    background-color: #15181e;
    border-bottom: 1px solid #2a2e35;
}

.upcoming-apps {
    background-color: #1a1d23;
}

    .new-apps h2, .upcoming-apps h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 40px;
        color: #ffffff;
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

.section-badge {
    background: linear-gradient(135deg, #34a853, #2e8b47);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .section-badge.upcoming {
        background: linear-gradient(135deg, #8ab4f8, #669df6);
        color: #0f1116;
    }

.compact-apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.compact-app-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(145deg, #1a1d23, #15181e);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #2a2e35;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

    .compact-app-card:hover {
        transform: translateY(-3px);
        border-color: #3c4043;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .compact-app-card.upcoming {
        opacity: 0.85;
    }

        .compact-app-card.upcoming:hover {
            opacity: 1;
        }

    .compact-app-card .app-icon {
        font-size: 1.8rem;
        color: #8ab4f8;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .compact-app-card.upcoming .app-icon {
        color: #669df6;
    }

.app-info {
    flex: 1;
}

    .app-info h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
        color: #ffffff;
        font-weight: 500;
    }

    .app-info p {
        color: #9aa0a6;
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.4;
    }

.compact-app-link {
    background-color: #34a853;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .compact-app-link:hover {
        background-color: #2e8b47;
        transform: scale(1.05);
    }

.compact-status {
    color: #8ab4f8;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #3c4043;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Apps Grid Section */
.apps-grid {
    padding: 100px 0;
    background-color: #0f1116;
}

    .apps-grid h2 {
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: 60px;
        color: #ffffff;
        font-weight: 400;
    }

.apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.app-card {
    background: linear-gradient(145deg, #1a1d23, #15181e);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #2a2e35;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

    .app-card:hover {
        transform: translateY(-8px);
        border-color: #3c4043;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }

.app-icon {
    font-size: 2.8rem;
    margin-bottom: 28px;
    color: #8ab4f8;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-card:hover .app-icon {
    color: #aecbfa;
    transform: scale(1.05);
}

.app-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 500;
}

.app-card p {
    color: #9aa0a6;
    margin-bottom: 32px;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 1rem;
}

.app-link {
    display: inline-block;
    padding: 14px 32px;
    background-color: #303134;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 1px solid #3c4043;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

    .app-link:hover {
        background-color: #8ab4f8;
        border-color: #8ab4f8;
        color: #0f1116;
        transform: translateY(-2px);
    }

/* Footer */
footer {
    background-color: #1a1d23;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #2a2e35;
}

    footer p {
        color: #9aa0a6;
        margin-bottom: 24px;
        font-size: 1rem;
    }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #8ab4f8;
        text-decoration: none;
        transition: color 0.3s ease;
        font-weight: 500;
        font-size: 0.95rem;
    }

        .footer-links a:hover {
            color: #aecbfa;
        }

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 60px 0 40px;
    }

        header h1 {
            font-size: 2.2rem;
        }

    .tagline {
        font-size: 1.1rem;
    }

    .intro, .apps-grid {
        padding: 60px 0;
    }

        .intro h2, .apps-grid h2 {
            font-size: 1.8rem;
        }

    .intro-cards {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 40px 0;
    }

    .intro-card {
        padding: 28px 24px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .discord-link, .patreon-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .new-apps, .upcoming-apps {
        padding: 40px 0;
    }

    .compact-apps-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .compact-app-card {
        padding: 16px;
    }

    .new-apps h2, .upcoming-apps h2 {
        font-size: 1.6rem;
    }

    .apps-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .app-card {
        padding: 32px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

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

    header h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header, .intro, .new-apps, .upcoming-apps, .apps-grid, footer {
    animation: fadeInUp 0.8s ease-out;
}

.app-card, .intro-card, .compact-app-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for app cards */
.apps-container .app-card:nth-child(1) {
    animation-delay: 0.1s;
}

.apps-container .app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.apps-container .app-card:nth-child(3) {
    animation-delay: 0.3s;
}

.apps-container .app-card:nth-child(4) {
    animation-delay: 0.4s;
}

.apps-container .app-card:nth-child(5) {
    animation-delay: 0.5s;
}

.apps-container .app-card:nth-child(6) {
    animation-delay: 0.6s;
}

.apps-container .app-card:nth-child(7) {
    animation-delay: 0.7s;
}

.apps-container .app-card:nth-child(8) {
    animation-delay: 0.8s;
}

.apps-container .app-card:nth-child(9) {
    animation-delay: 0.9s;
}

/* Stagger animation for intro cards */
.intro-cards .intro-card:nth-child(1) {
    animation-delay: 0.1s;
}

.intro-cards .intro-card:nth-child(2) {
    animation-delay: 0.2s;
}

.intro-cards .intro-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #8ab4f8;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #8ab4f8;
    color: #0f1116;
}
