/* ============================
   Base & Reset
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: #121212;
    color: #eee;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #009acd;
    outline: none;
}

.wrapper {
    max-width: 1100px;
    margin: 2rem auto 4rem auto;
    padding: 0 1rem;
    flex-grow: 1;
}

/* ============================
   Typography
============================ */

h1,
h2,
h3,
h4,
h5 {
    margin-bottom: 0.75rem;
    color: #00bfff;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #ccc;
}

/* ============================
   Animations
============================ */

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================
   Game Cards (index.html)
============================ */

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgb(0 191 255 / 0.25);
    cursor: pointer;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.game-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgb(0 191 255 / 0.5);
    outline: none;
}

.game-card img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.game-card h3 {
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

.game-card p {
    font-size: 0.9rem;
    color: #bbb;
}

/* ============================
   About Section (about.html)
============================ */

.about-section {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 0 15px rgb(0 191 255 / 0.3);
}

.join-link a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #00bfff;
    border-radius: 30px;
    font-weight: 600;
    color: #121212;
    transition: background-color 0.3s ease;
}

.join-link a:hover,
.join-link a:focus {
    background-color: #009acd;
    color: #fff;
    outline: none;
}

/* ============================
   Partners Section (partners.html)
============================ */

.partner-list {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.partner-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.partner-card {
    background: #1f1f1f;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgb(0 191 255 / 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.partner-card:hover,
.partner-card:focus {
    box-shadow: 0 8px 20px rgb(0 191 255 / 0.5);
    transform: translateY(-5px);
    outline: none;
}

.partner-img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.partner-title {
    color: #00bfff;
    margin-bottom: 0.75rem;
}

.partner-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
}

.partner-card h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #00d4ff;
}

/* ============================
   Footer (all pages)
============================ */

.enhanced-footer {
    background-color: #121212;
    color: #bbb;
    padding: 2rem 1rem 1rem;
    border-top: 1px solid #00bfff;
    font-size: 0.9rem;
    user-select: none;
}

.footer-grid {
    max-width: 1100px;
    margin: 0 auto 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-grid>div {
    flex: 1 1 180px;
    min-width: 160px;
}

.footer-grid h4 {
    color: #00bfff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 0.6rem;
}

.footer-grid ul li a {
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-grid ul li a:hover,
.footer-grid ul li a:focus {
    color: #00bfff;
    outline: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons li a {
    font-weight: 600;
    font-size: 1rem;
}

/* Footer bottom text */
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #00bfff;
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.footer-bottom a {
    color: #00bfff;
    text-decoration: none;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #009acd;
    outline: none;
}

/* ============================
   Responsive adjustments
============================ */

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}