/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f9f9fc;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0;
}

a {
    text-decoration: none;
    color: #3b4cca; /* Pokémon blue */
}

a:hover {
    color: #ff0000; /* Pokémon red */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary {
    background: #3b4cca;
    color: white;
}

.btn-primary:hover {
    background: #2a3a9e;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffde00;
    color: #1a1a2e;
}

.btn-secondary:hover {
    background: #e6c300;
    transform: translateY(-2px);
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
}

nav a.active, nav a:hover {
    border-bottom-color: #ff0000;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #1a1a2e;
    cursor: pointer;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: #ccc;
    margin: 0 1rem;
}

.footer-links a:hover {
    color: white;
}

.footer-social a {
    color: #ccc;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.footer-social a:hover {
    color: white;
}

.footer-copy {
    font-size: 0.9rem;
    text-align: center;
}

/* Homepage */
.hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    padding: 3rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    color: #3b4cca;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.3rem;
    margin: 1rem 0;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.announcement {
    background: #ffde00;
    padding: 2rem 0;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    border-top: 3px solid #3b4cca;
    border-bottom: 3px solid #3b4cca;
}

.features {
    padding: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.quick-info {
    background: #eef2ff;
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* ===== REDESIGNED ABOUT SECTION STYLES ===== */
.about-site {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f9f9fc 0%, #ffffff 100%);
    border-top: 1px solid rgba(59, 76, 202, 0.1);
    border-bottom: 1px solid rgba(59, 76, 202, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #3b4cca;
    margin-bottom: 0.5rem;
}

.section-subhead {
    color: #666;
    font-size: 1.2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.about-card {
    background: white;
    padding: 2rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(59, 76, 202, 0.1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 76, 202, 0.1);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: rgba(59, 76, 202, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-icon i {
    font-size: 2rem;
    color: #3b4cca;
}

.about-card h3 {
    margin-bottom: 1rem;
    color: #1a1a2e;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-list i {
    color: #3b4cca;
    font-size: 1.1rem;
}

.contact-email {
    display: inline-block;
    margin: 1rem 0 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 76, 202, 0.05);
    border-radius: 50px;
    color: #3b4cca;
    font-weight: 600;
    transition: background 0.3s;
}

.contact-email:hover {
    background: rgba(59, 76, 202, 0.15);
    color: #2a3a9e;
}

.contact-email i {
    margin-right: 0.5rem;
}

.small-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

.about-disclaimer {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: rgba(255, 222, 0, 0.1);
    border-radius: 50px;
    border-left: 4px solid #ffde00;
}

.about-disclaimer i {
    color: #ffde00;
    margin-right: 0.5rem;
}

.about-disclaimer p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* Download page specific */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.download-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-card .badge {
    display: inline-block;
    background: #ffde00;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-card code {
    display: block;
    background: #f0f0f0;
    padding: 0.5rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-size: 0.9rem;
    word-break: break-all;
}

.download-card .btn {
    margin-top: auto; /* pushes button to bottom */
}

.note {
    background: #ffeed9;
    padding: 1rem;
    border-left: 5px solid #ffaa00;
    border-radius: 5px;
    margin: 2rem 0;
}

.emulators, .known-issues, .patch-notes {
    margin: 2rem 0;
}

.emulator-list {
    list-style: none;
    padding: 1rem 0;
}

.emulator-list li {
    padding: 0.3rem 0;
}

/* Contact & Communities */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item i {
    color: #3b4cca;
    margin-bottom: 1rem;
}

/* Legal pages */
.legal-text {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none;
    }

    nav.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-disclaimer {
        border-radius: 20px;
        padding: 1rem;
    }

    .footer-links a {
        display: inline-block;
        margin: 0.5rem;
    }
}