/* HTML5 Game Portal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1f2e;
    min-height: 100vh;
}

/* Homepage Dark Theme */
.homepage-body {
    background-color: #1a1f2e;
    color: #e2e8f0;
    min-height: 100vh;
}

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

/* Homepage Header */
.homepage-header {
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    padding: 15px 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text h1 {
    font-size: 2rem;
    margin: 0;
    color: #e2e8f0;
}

.logo-text p {
    margin: 5px 0 0 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.header-features {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 60px;
    padding: 5px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: default;
}

.feature-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.feature-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #feb921;
    font-family: 'Pixelify Sans', 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.feature-icon {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: #feb921;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.feature-icon i {
    font-size: inherit;
    color: inherit;
}

.feature-text {
    font-size: 0.65rem;
    color: #68d391;
    margin-top: 4px;
    font-family: 'Pixelify Sans', 'Courier New', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.search-btn, .profile-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #e2e8f0;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.search-btn i, .profile-btn i {
    font-size: inherit;
    color: inherit;
}

.search-btn:hover, .profile-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Homepage Main Content */
.homepage-main {
    padding: 40px 0;
}

.games-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2rem;
    color: #e2e8f0;
    margin: 0;
}

.section-badges {
    display: flex;
    gap: 10px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.hot {
    background: #e53e3e;
    color: white;
}

.badge.new {
    background: #805ad5;
    color: white;
}

.badge.updated {
    background: #3182ce;
    color: white;
}

.admin-link, .admin-link-small {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.admin-link:hover, .admin-link-small:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: #e2e8f0;
}

.admin-link-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Featured Games Layout */
.featured-games-layout {
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 100%;
}

.featured-games-row {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.featured-games-row::-webkit-scrollbar {
    display: none;
}

/* Featured Game Cards */
.featured-game-card {
    flex: 0 0 calc(32% - 12px);
    min-width: 350px;
    max-width: 450px;
    background: transparent;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.featured-game-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.featured-game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

.featured-game-badge .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-game-badge .badge.hot {
    background: #ff6b35;
    color: white;
}

.featured-game-badge .badge.new {
    background: #4ecdc4;
    color: white;
}

.featured-game-badge .badge.updated {
    background: #45b7d1;
    color: white;
}

.featured-game-badge .badge.top-rated {
    background: #f9ca24;
    color: #333;
}

.featured-game-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.featured-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.featured-game-card:hover .featured-image {
    opacity: 0;
}

.featured-game-card:hover .featured-preview {
    opacity: 1;
    display: block;
}

/* Fallback: Show regular image on hover if no preview */
.featured-game-card:not(:has(.featured-preview)):hover .featured-image {
    opacity: 1;
    transform: scale(1.05);
}

.featured-game-card:hover .featured-game-title {
    opacity: 1;
}

.featured-game-title {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    word-wrap: break-word;
    line-height: 1.2;
}

/* Horizontal Game Cards */
.game-card-horizontal {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.game-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
}

.game-image-horizontal {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-info-horizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title-horizontal {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-weight: 600;
}

.game-description-horizontal {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Square Game Cards */
.game-card-square {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.game-card-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
}

.game-image-square {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-info-square {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title-square {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 0;
    font-weight: 600;
    text-align: center;
}

/* Vertical Game Card */
.game-card-vertical {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.game-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
}

.game-image-vertical {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-info-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title-vertical {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-weight: 600;
}

.game-description-vertical {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.game-card-large {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    backdrop-filter: blur(10px);
}

.game-card-large:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.1);
    text-decoration: none;
    color: inherit;
}

.game-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.game-image-container {
    position: relative;
    margin-bottom: 15px;
}

.game-image-large {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    background: #4a5568;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.game-title-large {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin: 0;
    line-height: 1.3;
}

/* All Games Grid - iPhone App Style */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    background: transparent;
    border-radius: 20px;
    overflow: visible;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: none;
    backdrop-filter: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1;
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.05);
    text-decoration: none;
    color: inherit;
}

.game-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    width: 130px;
    height: 130px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #4a5568;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.game-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #4a5568;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
}

/* Only apply hover effect when preview exists */
.game-card:has(.game-preview):hover .game-image {
    opacity: 0;
}

.game-card:has(.game-preview):hover .game-preview {
    opacity: 1;
    display: block;
}

/* Fallback: Show regular image on hover if no preview */
.game-card:not(:has(.game-preview)):hover .game-image {
    transform: scale(1.05);
}

.game-title-overlay {
    margin-top: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.2;
    max-width: 130px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* No Games State */
.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.no-games-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-games h3 {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-games p {
    color: #a0aec0;
    margin-bottom: 20px;
}

/* Game Page Layout */
.game-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 100%;
    overflow: visible;
}

/* Game Page Header Button */
.back-button-header {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 500;
}

.back-button-header:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: #e2e8f0;
}

/* Game Info Section */
.game-info-section {
    margin-top: 0;
}

.game-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-title-bar {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
}

.section-title-bar h3 {
    color: #e2e8f0;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-bar h3 i {
    color: #feb921;
}

/* Game Description */
.game-description-section {
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.description-content {
    color: #a0aec0;
}

.game-description-large {
    font-size: 1.05rem;
    color: #cbd5e0;
    line-height: 1.8;
    margin: 0;
}

/* How to Play Section */
.how-to-play-section {
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.how-to-play-content {
    color: #cbd5e0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.how-to-play-content p {
    margin: 0;
}

/* Game Meta Section (Genres/Tags) */
.game-meta-section {
    margin-bottom: 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
}

.game-genres, .game-tags {
    margin-bottom: 20px;
}

.game-genres:last-child, .game-tags:last-child {
    margin-bottom: 0;
}

.game-genres h4, .game-tags h4 {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.genre-tags, .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-badge-display {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 10px rgba(118, 75, 162, 0.3);
    transition: all 0.2s ease;
    text-decoration: none; /* In case it becomes a link */
}

.genre-badge-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(118, 75, 162, 0.4);
    filter: brightness(1.1);
}

.tag-badge-display {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.tag-badge-display:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.main-content {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.sidebar {
    background: transparent;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    height: fit-content;
    border: none;
    backdrop-filter: none;
    max-width: 100%;
    overflow: visible;
}

.game-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

/* Game Header */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.game-title-section {
    flex: 1;
}

.game-title-large {
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.game-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.game-rating, .game-category, .game-platform {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.game-rating {
    background: #fff3cd;
    color: #856404;
}

.game-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.play-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-btn:hover {
    transform: translateY(-2px);
}

/* Game Description */
.game-description-section {
    margin-bottom: 30px;
}

.game-description-large {
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.6;
}

/* Game Display Area */
.game-display-area {
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.game-iframe-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px 12px 0 0;
}

.game-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    border-radius: 0 0 12px 12px;
    padding: 10px 20px;
    margin: 0 auto;
    max-width: 800px;
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.game-title-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    overflow: hidden;
}

.game-title-inline .game-title-large {
    margin: 0;
    font-size: 1.2rem;
    color: #e2e8f0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.game-controls-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 20px;
}

.control-btn-icon {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn-icon:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.game-social-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #a0aec0;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    transform: translateY(-2px);
}

.social-btn.like-btn {
    color: #68d391;
    background: rgba(104, 211, 145, 0.1);
    border-color: rgba(104, 211, 145, 0.2);
}

.social-btn.like-btn:hover {
    background: rgba(104, 211, 145, 0.2);
    border-color: #68d391;
    color: #fff;
}

.social-btn.dislike-btn:hover {
    background: rgba(252, 129, 129, 0.2);
    border-color: #fc8181;
    color: #fff;
}

.social-btn.heart-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
    color: #fff;
}

/* Removed old how-to-play-section block as it is now redefined above */

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab-btn:hover {
    background: #f8f9fa;
}

.tab-btn.active {
    border-bottom-color: #667eea;
    color: #667eea;
}

.tab-content {
    min-height: 200px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.game-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #a0aec0;
}

.controls-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Sidebar Related Games - App Icon Style */
.sidebar-header h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3 i {
    color: #feb921;
}

.related-games-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    border: none;
    display: block;
    max-width: 100%;
    overflow: visible;
}

.related-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    justify-items: center;
    align-items: stretch;
    width: 100%;
}

.related-game-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 12px;
}

.related-game-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

.related-game-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.related-game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #4a5568;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 12px;
}

.related-game-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #4a5568;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

/* Only apply hover effect when preview exists */
.related-game-card:has(.related-game-preview):hover .related-game-image {
    opacity: 0;
}

.related-game-card:has(.related-game-preview):hover .related-game-preview {
    opacity: 1;
    display: block;
}

/* Fallback: Scale image if no preview */
.related-game-card:not(:has(.related-game-preview)):hover .related-game-image {
    transform: scale(1.1);
}

.related-game-title-overlay {
    margin-top: 5px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em; /* Force 2 lines height (1.3 * 2) */
    display: flex; /* Change to flex for centering if needed, but for line-clamp we need webkit-box. */
    /* To keep line clamp working with fixed height, we keep webkit-box but ensure height limits it */
    display: -webkit-box; 
    /* To center single line text vertically in the 2-line space? 
       Actually top aligned is standard. If we want it centered, it's harder with line-clamp. 
       Let's stick to top aligned but consistent height. 
    */
}

/* Responsive Related Games */
@media (max-width: 1600px) {
    .related-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    .related-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .game-page-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 1;
        padding: 20px 0;
    }
    
    .related-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        max-width: 100%;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .related-game-image-container {
        width: 80px;
        height: 80px;
    }
    
    .related-game-title-overlay {
        font-size: 0.65rem;
        max-width: 80px;
    }
}

@media (max-width: 480px) {
    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .related-game-image-container {
        width: 70px;
        height: 70px;
    }
    
    .related-game-title-overlay {
        font-size: 0.6rem;
        max-width: 70px;
    }
}

.back-button {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.back-button:hover {
    background: #5a6fd8;
}

/* Admin Styles */
.admin-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-title {
    font-size: 2rem;
    color: #333;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: bold;
}

.table tr:hover {
    background: #f5f5f5;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

textarea.form-control {
    height: 100px;
    resize: vertical;
}

/* Genre and Tag Selection */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.genre-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.tag-badge-simple {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: #6c757d;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + .genre-badge,
.checkbox-label input[type="checkbox"]:checked + .tag-badge-simple {
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5), 0 0 0 6px rgba(0,123,255,0.3);
    transform: scale(1.1);
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .genre-badge::after,
.checkbox-label input[type="checkbox"]:checked + .tag-badge-simple::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.checkbox-label:hover .genre-badge,
.checkbox-label:hover .tag-badge-simple {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Admin Management Pages */
.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 20px;
    margin-bottom: 20px;
}

.list-section {
    margin-top: 30px;
}

.list-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Genres Grid */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.genre-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.genre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.genre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.genre-actions {
    display: flex;
    gap: 5px;
}

.genre-info {
    margin: 0;
}

.genre-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.genre-stats {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Tags Grid */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.tag-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tag-actions {
    display: flex;
    gap: 5px;
}

.tag-info {
    margin: 0;
}

.tag-stats {
    color: #999;
    font-size: 0.8rem;
    margin: 0;
    font-style: italic;
}

/* Button Sizes */
.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .genres-grid,
    .tags-grid {
        grid-template-columns: 1fr;
    }

    .genre-header,
    .tag-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .genre-actions,
    .tag-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==================== BLOG STYLES ==================== */

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* Blog Card */
.blog-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(254, 185, 33, 0.3);
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-categories {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.blog-category-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: #718096;
}

.blog-card-author,
.blog-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-author i,
.blog-card-date i {
    color: #feb921;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    background: rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: #feb921;
    color: #1a1f2e;
    text-decoration: none;
}

.pagination-info {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Single Blog Post */
.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-post-header {
    margin-bottom: 30px;
}

.blog-post-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.blog-post-title {
    font-size: 2.5rem;
    color: #e2e8f0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.blog-post-meta {
    display: flex;
    gap: 25px;
    color: #a0aec0;
    font-size: 0.95rem;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-meta-item i {
    color: #feb921;
}

.blog-post-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
}

.blog-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-content {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-post-content h2 {
    color: #feb921;
    font-size: 1.8rem;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(254, 185, 33, 0.3);
}

.blog-post-content h3 {
    color: #e2e8f0;
    font-size: 1.4rem;
    margin: 25px 0 12px;
}

.blog-post-content p {
    margin-bottom: 18px;
    color: #a0aec0;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 18px;
    padding-left: 25px;
    color: #a0aec0;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content a {
    color: #feb921;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-post-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.blog-post-content strong {
    color: #e2e8f0;
}

.blog-post-content blockquote {
    border-left: 4px solid #feb921;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(254, 185, 33, 0.1);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.blog-post-content code {
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95rem;
}

.blog-post-content pre {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

/* Blog Post Footer */
.blog-post-footer {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-label {
    color: #a0aec0;
    font-size: 0.95rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.linkedin {
    background: #0077b5;
}

/* Related Posts */
.related-posts-section {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 30px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    text-decoration: none;
}

.related-post-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-content h3 {
    font-size: 1rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-date {
    color: #718096;
    font-size: 0.8rem;
}

/* Blog CTA */
.blog-cta {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #feb921, #f59e0b);
    color: #1a1f2e;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(254, 185, 33, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 185, 33, 0.4);
    text-decoration: none;
    color: #1a1f2e;
}

/* Blog Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-post-content {
        padding: 25px;
        font-size: 1rem;
    }

    .blog-post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .blog-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-pagination {
        flex-direction: column;
        gap: 15px;
    }
}

/* SEO Content Section */
.seo-content-section {
    margin-top: 40px;
    padding: 0 20px;
}

.seo-content-box {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.8) 0%, rgba(26, 31, 46, 0.9) 100%);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 900px;
    margin: 0 auto;
}

.seo-content-box h2 {
    color: #feb921;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.seo-content-box p {
    color: #a0aec0;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: center;
}

.seo-content-box p:last-child {
    margin-bottom: 0;
}

.seo-content-box strong {
    color: #e2e8f0;
}

.seo-content-box .seo-highlight {
    color: #58cf55;
    font-weight: 500;
    font-size: 1.05rem;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .seo-content-box {
        padding: 25px 20px;
    }

    .seo-content-box h2 {
        font-size: 1.4rem;
    }

    .seo-content-box p {
        font-size: 0.95rem;
        text-align: left;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #feb921;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #feb921;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright p {
    color: #a0aec0;
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-separator {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Privacy Policy Styles */
.privacy-policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.privacy-policy-content h1 {
    color: #e2e8f0;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}

.last-updated {
    color: #a0aec0;
    text-align: center;
    margin-bottom: 40px;
    font-style: italic;
}

.privacy-policy-content section {
    margin-bottom: 30px;
}

.privacy-policy-content h2 {
    color: #feb921;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(254, 185, 33, 0.3);
    padding-bottom: 5px;
}

.privacy-policy-content h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 20px;
}

.privacy-policy-content p {
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 15px;
}

.privacy-policy-content ul {
    color: #a0aec0;
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-policy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-policy-content a {
    color: #feb921;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-policy-content a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .privacy-policy-content {
        padding: 20px 15px;
    }
    
    .privacy-policy-content h1 {
        font-size: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-features {
        justify-content: center;
        gap: 20px;
    }
    
    .feature-item {
        min-width: 50px;
    }
    
    .featured-games-layout {
        gap: 20px;
    }
    
    .featured-game-card {
        flex: 0 0 calc(45% - 8px);
        max-width: 250px;
    }
    
    .featured-game-image {
        aspect-ratio: 4/3;
    }
    
    .game-image-horizontal,
    .game-image-square {
        height: 150px;
    }
    
    .game-image-vertical {
        height: 300px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
        gap: 12px;
    }
    
    .game-image-large {
        height: 150px;
    }
    
    .game-image-container {
        width: 110px;
        height: 110px;
    }
    
    .game-controls-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 12px;
    }
    
    .game-title-inline {
        order: 1;
        justify-content: center;
    }
    
    .game-controls-group {
        order: 2;
        margin: 0;
    }
    
    .game-social-actions {
        order: 3;
        justify-content: center;
    }
    
    .game-title-inline .game-title-large {
        font-size: 1rem;
    }
    
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-badges {
        flex-wrap: wrap;
    }
    
    .logo-image {
        height: 60px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    .game-page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .game-social-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sidebar {
        order: 1;
    }
    
    .game-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .game-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: #667eea;
        border-bottom-color: transparent;
    }
    
    .related-games-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .related-game-item {
        flex-direction: column;
        text-align: center;
    }
    
    .related-game-thumbnail {
        width: 100%;
        height: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
