/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: white;
}


body {
    font-family: Arial, sans-serif;
    background-color: #0d0d0d;
    color: white;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    width: 100%;
    height: 80px;
    background-color: #111;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: white;
    letter-spacing: 2px;
    font-weight: bold;
    text-transform: lowercase;
}

/* PAGE LAYOUT */
.layout {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px);
}

.side {
    width: 12.5%;
    padding: 8px 6px;
    background: transparent;
}

.main-content {
    width: 75%;
    padding: 6px;
}

/* ADS */
.ad-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.featured-ad-row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 8px auto;
    display: flex;
    justify-content: center;
}

.ad-slot {
    width: 100%;
    border: 1px dashed #444;
    background-color: #151515;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    overflow: hidden;
}

.ad-slot span {
    font-size: 12px;
    letter-spacing: 1px;
}

.ad-slot-vertical {
    width: 160px;
    height: 600px;
    max-width: 100%;
}

.ad-slot-square {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

.ad-slot-horizontal {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

/* GAME GRID */
.game-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    grid-auto-rows: 8px;
    gap: 6px;
    grid-auto-flow: row;
    align-items: start;
}

/* GAME CARD */
.game-page-main {
    width: 75%;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-page-inner {
    width: 100%;
    max-width: 1100px;
}

.game-player-card {
    width: 100%;
    display: flex;
    justify-content: center;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: #555;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.game-thumbnail {
    width: 100%;
    background-color: #222;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.game-card h2 {
    padding: 8px;
    font-size: 14px;
    line-height: 1.25;
    text-align: center;
    font-weight: 600;
}

/* OPTIONAL IN-GRID AD BLOCKS */
.grid-ad-card {
    background-color: #151515;
    border: 1px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    text-align: center;
    padding: 12px;
    min-height: 250px;
}

.grid-ad-card .ad-slot {
    border: none;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

/*For game page bottom text*/
.game-details {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 36px;
    padding-top: 36px;
}

/* MAIN PANEL — less rounded, more "framed" */
.details-card {
    width: 100%;
    max-width: 960px;

    background: #121212;
    border: 1px solid #2e2e2e;
    border-radius: 6px; /* less pill-like */

    padding: 22px 20px;

    /* subtle inner edge instead of soft shadow */
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.03),
        0 0 0 1px rgba(0,0,0,0.4);
}

/* TITLE — more like a section header, less "UI heading" */
.details-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;

    color: #e8e8e8;

    margin-bottom: 18px;

    border-bottom: 1px solid #2e2e2e;
    padding-bottom: 8px;
}

/* each block feels like a row instead of a soft section */
.details-section {
    margin-bottom: 16px;
}

/* subtitles — slightly stylized */
.details-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;

    color: #888;

    margin-bottom: 6px;
}

/* body text — less gray, more readable */
.details-text {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-bottom: 10px;

    color: #cfcfcf;
}

/* list — tighter + cleaner */
.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    font-size: 0.95rem;
    color: #cfcfcf;
    margin-bottom: 3px;
}

/* optional subtle divider between sections */
.details-section:not(:last-child) {
    border-bottom: 1px solid #1f1f1f;
    padding-bottom: 12px;
}

/* hover — very subtle, not "UI card glow" */
.details-card:hover {
    border-color: #3a3a3a;
}

/* FOOTER */
.site-footer {
    width: 100%;
    margin-top: 40px;
    padding: 18px 0;

    background: #0f0f0f;
    border-top: 1px solid #222;

    display: flex;
    justify-content: center;
}

.footer-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 12px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;
}

/* LEFT SIDE */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #ddd;
}

.footer-tag {
    font-size: 0.75rem;
    color: #666;
}

/* LINKS */
.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 0.5px;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* MOBILE */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .footer-links {
        gap: 14px;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .side {
        width: 10%;
        padding: 6px 4px;
    }

    .main-content {
        width: 80%;
    }

    .game-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .ad-slot-vertical {
        width: 120px;
        height: 600px;
    }

    .ad-slot-square {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 900px) {
    .side {
        display: none;
    }

    .main-content {
        width: 100%;
        padding: 4px;
    }

    .game-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 4px;
    }

    .featured-ad-row {
        margin-bottom: 6px;
    }

    .ad-slot-horizontal {
        width: 100%;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 70px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .layout {
        min-height: calc(100vh - 70px);
    }

    .game-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 6px;
        gap: 4px;
    }

    .ad-slot-horizontal {
        height: 70px;
    }
}