/* Arcade CMS - Modern Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.5rem;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding-top: 20px;
    overflow-y: scroll;
    overflow-x: hidden;
    margin: 0;
    width: 100%;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

/* Prevent horizontal scrolling and layout shifts */
* {
    box-sizing: border-box;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

/* Main content area */
main {
    padding: 0 !important;
}

main.py-4 {
    padding: 0 !important;
}

main .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Header */
header {
    height: 80px !important;
    max-height: 80px !important;
    min-height: 80px !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 20px 20px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
}

header.py-3 {
    padding: 0 !important;
}

header.shadow {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3) !important;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 15px;
    pointer-events: none;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

header .row {
    width: 100%;
    margin: 0;
    align-items: center !important;
}

/* Navigation styling */
.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px !important;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.logo {
    width: auto;
    max-width: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    z-index: 10;
    position: relative;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* Template-specific header styles */
.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%) !important;
}

.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #dee2e6;
}

/* Dark theme navigation */
.bg-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Colorful theme navigation */
.bg-gradient .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.bg-gradient .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Minimal theme navigation */
.bg-light .navbar-nav .nav-link {
    color: #343a40 !important;
}

.bg-light .navbar-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000 !important;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    body {
        padding-top: 15px;
    }
    
    header {
        height: 60px !important;
        max-height: 60px !important;
        min-height: 60px !important;
        margin: 0 15px 15px 15px;
        border-radius: 12px;
    }
    
    header .container {
        padding: 0 12px;
    }
    
    .logo {
        max-width: 80vw;
        height: auto !important;
    }
    
    header .container {
        overflow: visible;
    }
    
    .navbar-nav .nav-link {
        padding: 6px 12px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 10px;
    }
    
    header {
        height: 50px !important;
        max-height: 50px !important;
        min-height: 50px !important;
        margin: 0 10px 10px 10px;
        border-radius: 10px;
    }
    
    header .container {
        padding: 0 10px;
    }
    
    .logo {
        max-width: 90vw;
    }
    
    .navbar-nav .nav-link {
        padding: 4px 8px !important;
        font-size: 0.8rem;
    }
    
    .navbar-nav {
        gap: 0.25rem;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Game Cards */
.game-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    height: 100%;
    border: none;
    position: relative;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-image-link:hover {
    text-decoration: none;
    color: inherit;
}

.game-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover img {
    transform: scale(1.05);
}

.card-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
}

.game-card .card-body {
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.game-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #2c3e50;
    line-height: 1.3;
}

.game-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.game-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-play {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-play:hover {
    background: linear-gradient(135deg, #218838 0%, #1abc9c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Category Navigation */
.category-nav {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.category-nav .nav-link {
    color: #6c757d;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.category-nav .nav-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.category-nav .nav-link.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

/* Modern Navigation Styles */
.modern-nav-container {
    position: relative;
    z-index: 5;
}

.modern-nav {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-pills-container {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
    padding: 0.25rem;
}

.nav-pill {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-width: fit-content;
    flex-shrink: 0;
}

.nav-pill-content {
    padding: 0.875rem 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-pill-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.nav-pill:hover .nav-pill-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-pill:hover .nav-pill-content::before {
    left: 100%;
}

.nav-pill.active .nav-pill-content {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-pill-content i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.nav-pill-content span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Navigation styles */
.navbar-toggler {
    border: none !important;
    padding: 0.75rem !important;
    background: transparent !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
    outline: none !important;
    box-shadow: none !important;
    min-width: 44px;
    min-height: 44px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force show hamburger on mobile */
@media (max-width: 767.98px) {
    .navbar-toggler.d-md-none {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1050 !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 8px !important;
        padding: 0.75rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
    }
    
    .navbar-nav.d-none.d-md-flex {
        display: none !important;
    }
    
    .navbar-collapse {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 0 !important;
        padding: 5rem 2rem 2rem 2rem !important;
        margin: 0 !important;
        z-index: 1040 !important;
        min-height: 100vh !important;
    }
}

/* Force hide hamburger on desktop */
@media (min-width: 768px) {
    .navbar-toggler.d-md-none {
        display: none !important;
    }
    
    .navbar-nav.d-none.d-md-flex {
        display: flex !important;
    }
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
    border: none !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler i {
    font-size: 1.25rem;
    display: block;
    color: inherit !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    height: 450px !important;
    min-height: 450px !important;
    max-height: 450px !important;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    box-sizing: border-box;
}

.hero-section.py-5 {
    padding: 0 !important;
}

.hero-section.mb-4 {
    margin-bottom: 2rem !important;
}

.hero-section .container {
    width: 100%;
    max-width: 1140px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 0 15px;
    min-width: 100%;
    box-sizing: border-box;
}

.hero-section .container.text-center {
    max-width: 1140px !important;
    width: 100% !important;
}

.hero-section h1 {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-section .lead {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    pointer-events: none;
}

/* Additional text constraints for hero section */
.hero-section * {
    max-width: 100%;
    box-sizing: border-box;
}

.hero-section .row,
.hero-section .col-md-8,
.hero-section .col-lg-6 {
    max-width: 100%;
    box-sizing: border-box;
}

/* Search */
.search-container .input-group-lg .form-control {
    border-radius: 16px 0 0 16px;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.search-container .input-group-lg .btn {
    border-radius: 0 16px 16px 0;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination */
.pagination .page-link {
    border-radius: 12px;
    border: none;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem;
    color: #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: var(--primary-color);
}

.admin-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 0;
    min-height: calc(100vh - 150px);
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

/* Tables */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-card img {
        height: 150px;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin-right: 0 !important;
    }
    
    .admin-sidebar {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .category-nav .nav-link {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .game-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 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); }
}

/* Future Feature Indicators */
.future-feature {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
}

.future-feature:hover {
    opacity: 0.3;
}

.future-feature::after {
    content: "🚧 Fejlesztés alatt";
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.future-feature:hover::after {
    opacity: 1;
}

.nav-link.future-feature::after {
    left: 0;
    transform: none;
    margin-left: 10px;
}

.btn.future-feature::after {
    top: -30px;
    margin-top: 0;
}

/* Disabled form elements for future features */
.future-feature input,
.future-feature textarea,
.future-feature select,
.future-feature button {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Logo height slider custom styling */
.form-range {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #007bff 0%, #007bff var(--range-progress, 50%), #e9ecef var(--range-progress, 50%), #e9ecef 100%);
}

.form-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
    transition: all 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.5);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .navbar-toggler {
        border: none !important;
        padding: 0.75rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1050 !important;
        outline: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 44px;
        min-height: 44px;
    }
    
    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler:focus-visible {
        border: none !important;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
        outline: none !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }
    
    .navbar-toggler:hover {
        background: rgba(0, 0, 0, 0.8) !important;
        transform: scale(1.05);
    }
    
    .navbar-toggler i {
        font-size: 1.25rem;
        display: block;
        color: white !important;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.9);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        font-weight: 500;
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(8px);
    }
    
    .navbar-collapse .nav-link i {
        width: 20px;
        text-align: center;
    }

    .hero-section {
        border-radius: 12px;
        height: auto !important;
        min-height: 280px !important;
        max-height: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1.5rem 0 !important;
        padding: 2rem 0 !important;
        box-sizing: border-box;
    }
    
    .hero-section.py-5 {
        padding: 2rem 0 !important;
    }
    
    .hero-section.mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        max-width: 100%;
        word-wrap: break-word;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
        max-width: 100%;
        word-wrap: break-word;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .d-flex.gap-4 {
        gap: 1.5rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section .text-center > div {
        min-width: 80px;
    }
    
    .category-nav {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .category-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin: 0.15rem;
    }
    
    .game-card {
        margin-bottom: 1.5rem;
    }
    
    .game-card img {
        height: 180px;
    }
    
    .game-card .card-body {
        padding: 1.25rem;
    }
    
    .search-container .input-group-lg .form-control,
    .search-container .input-group-lg .btn {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .pagination {
        justify-content: center;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* Ultra Mobile Navigation */
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem;
    }
    
    .navbar-collapse .nav-link {
        padding: 1rem !important;
        font-size: 1.1rem;
    }

    .hero-section {
        border-radius: 10px;
        height: auto !important;
        min-height: 250px !important;
        max-height: none !important;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0 !important;
        padding: 1.5rem 0 !important;
        box-sizing: border-box;
    }
    
    .hero-section.py-5 {
        padding: 1.5rem 0 !important;
    }
    
    .hero-section.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .hero-section .container {
        padding: 0 12px;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
        max-width: 100%;
        word-wrap: break-word;
        margin-bottom: 0.75rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.9rem !important;
        max-width: 100%;
        word-wrap: break-word;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .d-flex.gap-4 {
        gap: 1rem !important;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section .text-center > div {
        min-width: 70px;
    }
    
    .hero-section .h3 {
        font-size: 1.25rem !important;
    }
    
    .category-nav .nav {
        flex-direction: column;
    }
    
    .category-nav .nav-link {
        text-align: center;
        margin: 0.1rem 0;
    }
    
    .game-card img {
        height: 160px;
    }
    
    .game-card .card-title {
        font-size: 1.1rem;
    }
    
    .search-container .input-group {
        flex-direction: column;
    }
    
    .search-container .input-group-lg .form-control {
        border-radius: 12px !important;
        margin-bottom: 0.5rem;
    }
    
    .search-container .input-group-lg .btn {
        border-radius: 12px !important;
    }
}

.form-range:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category Page Specific Styles */

/* Category hero section */
.category-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    opacity: 0.9;
    font-size: 1.2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modern breadcrumb */
.modern-breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.breadcrumb-link {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.breadcrumb-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

/* Modern pagination styles */
.pagination-section {
    margin: 3rem 0;
}

.modern-pagination .page-link {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    margin: 0 0.2rem;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modern-pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.modern-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.modern-pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color-muted);
    opacity: 0.5;
}

/* Category cards for suggestions */
.other-categories-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 20px;
    margin: 3rem 0;
}

.category-card-link {
    text-decoration: none;
    color: inherit;
}

.category-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.category-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-color-muted);
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 20px;
    margin: 2rem 0;
}

.empty-icon {
    color: var(--text-color-muted);
    opacity: 0.5;
    margin-bottom: 2rem;
}

.empty-title {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-subtitle {
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.empty-actions {
    margin-top: 2rem;
}

/* Mobile responsive adjustments for category page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-item {
        margin: 0.25rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem 0.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* Modern nav mobile styles */
    .modern-nav {
        padding: 0.75rem 1rem;
        border-radius: 16px;
        margin: 0 0.5rem;
    }
    
    .nav-pills-container {
        gap: 0.25rem;
        padding: 0.125rem;
    }
    
    .nav-pill-content {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        gap: 0.375rem;
    }
    
    .nav-pill-content i {
        font-size: 0.9rem;
    }
    
    .nav-pill-content span {
        font-size: 0.8rem;
    }
    
    /* Admin sidebar mobile */
    .admin-sidebar {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 56px);
        background: white;
        z-index: 1045;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 1rem;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-sidebar .nav-link {
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
        border-radius: 8px;
        color: #333;
        font-size: 1.1rem;
    }
    
    .admin-sidebar .nav-link:hover,
    .admin-sidebar .nav-link.active {
        background-color: #007bff;
        color: white;
    }
    
    .admin-content {
        padding: 1rem 0.5rem;
    }
    
    /* Admin stats cards */
    .admin-stats .card {
        margin-bottom: 1rem;
    }
    
    .admin-stats .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Admin tables */
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .modern-nav {
        margin: 0 0.25rem;
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
    }
    
    .nav-pill-content {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.25rem;
        border-radius: 12px;
    }
    
    .nav-pill-content i {
        font-size: 0.8rem;
        width: 14px;
    }
    
    .nav-pill-content span {
        font-size: 0.75rem;
    }
    
    /* Admin mobile improvements */
    .admin-content {
        padding: 0.5rem 0.25rem;
    }
    
    .admin-content h1 {
        font-size: 1.5rem;
    }
    
    .admin-stats .card-body {
        padding: 1rem 0.75rem;
    }
    
    .admin-stats .display-4 {
        font-size: 1.5rem;
    }
    
    .table th,
    .table td {
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.125rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .modal .modal-dialog {
        margin: 0.5rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    /* Touch-friendly form controls */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }
}

/* Page-specific Styles */
.page-container {
    margin: 2rem 0;
}

.page-article {
    padding: 0;
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.page-meta {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.page-content-wrapper {
    padding: 3rem 2rem;
    background: white;
}

.page-content-wrapper h1,
.page-content-wrapper h2,
.page-content-wrapper h3,
.page-content-wrapper h4,
.page-content-wrapper h5,
.page-content-wrapper h6 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content-wrapper p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.page-content-wrapper ul,
.page-content-wrapper ol {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.page-content-wrapper blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: rgba(var(--primary-rgb), 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.page-actions {
    margin: 3rem 0;
}

/* Contact form styles */
.contact-section {
    margin: 3rem 0;
}

.contact-card {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h5 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.modern-input,
.modern-select,
.modern-textarea {
    border: 2px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.modern-input:focus,
.modern-select:focus,
.modern-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-actions {
    text-align: center;
}

.form-notice {
    background: rgba(var(--info-rgb), 0.1);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid var(--info-color);
}

/* Mobile responsive adjustments for pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 2rem 1rem;
    }
    
    .page-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .contact-card {
        padding: 2rem 1rem;
    }
    
    .page-content-wrapper p,
    .page-content-wrapper ul,
    .page-content-wrapper ol {
        font-size: 1rem;
    }
}
