/* Asobi Game Hub - Japanese Style */

:root {
    /* Minimalist Japanese Colors */
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9ff;
    --bg-accent: #fff5f5;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --border-color: #e1e8ed;
    --shadow-color: rgba(116, 185, 255, 0.1);
    
    /* Japanese Typography */
    --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --font-accent: 'M PLUS Rounded 1c', cursive;
}

/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8f9fa;
    color: var(--text-dark);
    font-family: var(--font-main);
    min-height: 100vh;
    line-height: 1.7;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container.has-padding {
    padding: 0 1rem;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Navigation - Minimalist Japanese Style */
.navbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5px 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-toggler {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    width: 24px;
    height: 3px;
    background: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

/* Animated hamburger to X */
.navbar-toggler.active .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler.active .navbar-toggler-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.navbar-collapse {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-item {
    margin: 0;
}

.search-form {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 25px;
    padding: 0.25rem;
    align-items: center;
}

.search-input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--text-dark);
    min-width: 200px;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--accent-color);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-family: var(--font-accent);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 0 0.25rem;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
    background: rgba(231, 76, 60, 0.1);
}

/* Game Cards - Japanese Kawaii Style */
.game-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.game-card .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 15px 15px 0 0;
}

.game-card:hover .card-img-top {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.game-card .card-body {
    padding: 1.5rem;
    background: var(--bg-primary);
}

.game-card .card-title {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-accent);
    font-size: 1.1rem;
}

.game-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Games Grid Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.game-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px var(--shadow-color);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 1;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.game-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.game-card:hover .play-btn {
    transform: scale(1);
}

.play-btn:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    color: var(--text-dark);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.game-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.rating {
    color: var(--warning-color) !important;
}

.plays {
    color: var(--success-color) !important;
}

/* Hero Section - Japanese Style */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    border-radius: 25px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    animation: twinkle 20s linear infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    font-family: var(--font-accent);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    font-family: var(--font-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    align-items: center;
}

.search-icon {
    color: var(--text-muted);
    margin: 0 1rem;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-dark);
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 40px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-family: var(--font-accent);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-family: var(--font-accent);
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.title-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.section-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sort-select {
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    color: var(--text-dark);
    font-weight: 500;
    min-width: 180px;
}

.view-toggle-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Game Actions */
.game-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-play-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-play-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary-action {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-action:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.btn-load-more {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .game-card {
        border-radius: 15px;
    }
    
    .game-image {
        height: 150px;
    }
    
    .game-info {
        padding: 1rem;
    }
    
    .game-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .game-meta span {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.5rem;
    }
    
    .game-image {
        height: 120px;
    }
    
    .game-title {
        font-size: 0.9rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Game Meta */
.game-meta .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Game Page Specific */
.game-header {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(13, 110, 253, 0.05) 100%);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.game-image img {
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.game-image img:hover {
    transform: scale(1.02);
}

.game-links .btn {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.game-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features List */
.game-features ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.game-features ul li:last-child {
    border-bottom: none;
}

/* Instructions Card */
.game-instructions .card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
}

.game-instructions .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(13, 110, 253, 0.8) 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar .card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.sidebar .card-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, rgba(33, 37, 41, 0.8) 100%);
    border-bottom: 1px solid var(--border-color);
}

/* Category Cards */
.category-card {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: inherit;
    text-decoration: none;
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(13, 110, 253, 0.8) 100%);
    border-radius: 1rem;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-box .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1rem;
}

.search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left h5 {
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
    font-weight: 700;
}

.footer-left h5 i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-left p {
    margin: 0;
    opacity: 0.9;
}

.footer-left a {
    color: white;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .game-header {
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Button Animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Social Share Buttons */
.social-share .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Game Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Game Page Styles */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
}

.game-main {
    min-height: 600px;
}

.game-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
}

.game-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-title {
    font-weight: 700;
    font-family: var(--font-accent);
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-category { background: rgba(52, 152, 219, 0.3); }
.meta-rating { background: rgba(241, 196, 15, 0.3); }
.meta-plays { background: rgba(46, 204, 113, 0.3); }

.share-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.game-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.game-image-section .game-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.game-info h3, .game-info h4 {
    color: var(--primary-color);
    font-family: var(--font-accent);
    margin-bottom: 1rem;
}

.game-info p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.game-features h5 {
    color: var(--primary-color);
    font-family: var(--font-accent);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.feature-item {
    padding: 0.5rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.game-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.play-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-family: var(--font-accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    justify-content: center;
}

.play-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    color: white;
    text-decoration: none;
}

.instructions-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 2rem;
}

.instructions-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
}

.instructions-header h4 {
    margin: 0;
    font-family: var(--font-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.instructions-content {
    padding: 1.5rem;
}

.instructions-text {
    color: var(--text-dark);
    line-height: 1.7;
}

.game-sidebar {
    height: fit-content;
}

.sidebar-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 1rem 1.5rem;
}

.sidebar-header h5 {
    margin: 0;
    font-family: var(--font-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-content {
    padding: 1.5rem;
}

.placeholder-text {
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

.no-links {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

/* Error Page Styles */
.error-page-wrapper {
    display: flex;
    justify-content: center;
    min-height: 60vh;
    align-items: center;
}

.error-page {
    text-align: center;
    padding: 3rem 2rem;
}

.error-icon {
    margin-bottom: 2rem;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    font-family: var(--font-accent);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-accent);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.popular-games-section {
    margin-top: 3rem;
}

.popular-games-section h4 {
    color: var(--primary-color);
    font-family: var(--font-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.popular-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 0 1rem;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        display: flex;
    }
    
    .navbar-collapse.show {
        max-height: 300px;
        padding: 1rem;
    }
    
    /* Ensure navbar container has relative positioning for dropdown */
    .navbar {
        position: relative;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-form {
        margin-top: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
  
    .social-links {
        margin-bottom: 1rem;
    }
    
    .social-link {
        margin: 0 0.5rem;
    }
    
    .game-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-content-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-header {
        padding: 1.5rem;
    }
    
    .game-header-content {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, rgba(13, 110, 253, 0.8) 100%);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--info-color)) 1;
}

/* Page Styles */
.page-header {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    margin-bottom: 2rem;
    border-radius: 12px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.about-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.category-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

/* Contact Page Styles */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.contact-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.inquiry-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.inquiry-type {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
}

.inquiry-type h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-notes {
    list-style: none;
    padding: 0;
}

.contact-notes li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-notes li:last-child {
    border-bottom: none;
}

/* Contact Form Styles */
.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #c0392b;
}

/* Privacy and Terms Page Styles */
.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section,
.terms-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.privacy-section h2,
.terms-section h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.privacy-section p,
.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.privacy-section ul,
.terms-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-section li,
.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    margin-bottom: 3rem;
    border-radius: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Mobile Responsive for New Pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .about-section,
    .contact-section,
    .privacy-section,
    .terms-section {
        padding: 1.5rem;
    }
}
.intro-content {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.intro-wrapper {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intro-title {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007bff;
}

.intro-text {
    margin-bottom: 40px;
    line-height: 1.9;
    color: #555;
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.game-intro h3,
.features-simple h3 {
    font-size: 1.4rem;
    color: #007bff;
    font-weight: 700;
    margin: 35px 0 20px 0;
}

.simple-game-list,
.feature-list {
    list-style: none;
    padding: 0;
}

.simple-game-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.7;
    color: #555;
}

.simple-game-list li:last-child {
    border-bottom: none;
}

.simple-game-list strong {
    color: #333;
    font-weight: 700;
}

.feature-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    line-height: 1.7;
    color: #555;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 1.2rem;
}

.cta-simple {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.cta-simple p {
    margin: 0;
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .intro-wrapper {
        padding: 25px 20px;
    }

    .intro-title {
        font-size: 1.4rem;
    }

    .game-intro h3,
    .features-simple h3 {
        font-size: 1.2rem;
    }

    .intro-text p,
    .simple-game-list li,
    .feature-list li {
        font-size: 0.95rem;
    }
}