/* Global Games CSS */
body {
    background-color: #663d2b;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
}

/* Header Styling */
header {
    width: 100%;
    height: 49px;
    background-color: #4a2b1e;
    display: flex;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#h2_Title1 {
    color: white;
    font-family: "Roboto", sans-serif;
    margin: 0;
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-size: 18px;
}



.navHeader {
    margin-left: auto;
    display: flex;
    height: 100%;
    align-items: center;
}

.navHeader a {
    color: #E6E6E6;
    font-size: 14px;
    text-decoration: none;
    padding: 0 15px;
    border-left: 1px solid #000;
    font-family: "Roboto", sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.navHeader a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navHeader a:first-child {
    border-left: none;
}

/* Title Styling */
#h1Base1 {
    text-align: center;
    color: white;
    font-size: 32px;
    font-family: "Fredoka", sans-serif;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

#h1Base2 {
    text-align: center;
    color: white;
    font-size: 29px;
    font-family: "Fredoka", sans-serif;
    margin: 20px 0 10px 0;
}

#p1Base1 {
    color: white;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    text-align: center;
    margin: 0 0 20px 0;
}

/* Game Container */
#divGames, center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
    flex-direction: column;
}

embed, iframe {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Play Next Section */
.play-next-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.play-next-title {
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Category Titles */
.home-category-title {
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-left: 20px;
    border-left: 5px solid #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#t1Cat1 {
    color: white;
    font-size: 28px;
    font-family: "Fredoka", sans-serif;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px;
    transition: all 0.2s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.game-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.game-card a {
    text-decoration: none;
    display: block;
}

.game-title {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    margin-top: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Blog Specific Styles */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    margin-top: -10px;
}

.blog-posts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.blog-post-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.loading-spinner {
    color: white;
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 20px;
    padding: 50px;
}

.error-message,
.no-posts {
    color: #ff6b6b;
    text-align: center;
    font-family: "Roboto", sans-serif;
    padding: 40px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.bluesky-embed {
    margin: 0 !important;
    width: 100% !important;
}

/* About Us Specific Styles */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.about-text {
    color: rgba(255, 255, 255, 0.9);
    font-family: "Roboto", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Utility */
#headerDivBtn {
    background: transparent;
    font-size: 25px;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
    }

    .navHeader {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
    }

    .navHeader a {
        width: 100%;
        border-left: none;
        border-top: 1px solid #000;
    }

    #h1Base1, #h1Base2 {
        font-size: 24px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .home-category-title {
        font-size: 22px;
        margin-left: 10px;
    }

    .blog-posts-container {
        padding: 10px;
    }

    .about-card {
        padding: 20px;
    }
}

