:root {
    --primary-green: #2ECC71;
    --primary-red: #e74c3c;
    --dark-green: #27AE60;
    --light-green: #58D68D;
    --bg-color: #1A1A1A;
    --darker-bg: #0F0F0F;
    --card-bg: rgba(30, 30, 30, 0.8);
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
}
body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
    scroll-behavior: smooth;
}

.theme-light {
    --bg-color: #F8F9FA;
    --darker-bg: #E9ECEF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-light: rgba(0, 0, 0, 0.9);
    --text-muted: rgba(0, 0, 0, 0.6);
    --border-color: rgba(0, 0, 0, 0.1);
}
.theme-light .navbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 250, 240, 0.9) 100%);
    border-bottom: 1px solid var(--primary-green);
}
.theme-light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-toggle:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--primary-green);
}
.theme-light .search-input {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}
.theme-light .search-input:focus {
    background: rgba(0, 0, 0, 0.08);
} 
.theme-light .footer p {
    color: rgba(0, 0, 0, 0.9);
}
.theme-light .footer a {
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}
.theme-light .footer a:hover {
    color: rgba(0, 0, 0, 0.9);
}
.theme-light .footer .text-muted {
    color: rgba(0, 0, 0, 0.6) !important;
}
.theme-light .footer .text-muted:hover {
    color: rgba(0, 0, 0, 0.9) !important;
}
.theme-light .subscribe {
    background: rgba(255, 255, 255, 0.8);
}   
.theme-light .game-form input {
    background: rgba(0, 0, 0, 0.05);
}
.theme-light .game-form input:focus {
    background: rgba(0, 0, 0, 0.08);
}

.navbar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 30, 20, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-green);
    transition: all 0.5s ease;
    overflow: hidden;
}
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    animation: scanline 3s linear infinite;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-green) !important;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 10px;
}
.navbar-brand::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--primary-green);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-green);
}
.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    overflow: hidden;
}
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.2), transparent);
    transition: left 0.5s ease;
}
.nav-link:hover::before, .nav-link.active::before {
    left: 100%;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-green) !important;
    text-shadow: 0 0 8px var(--primary-green);
    background: rgba(46, 204, 113, 0.1);
}

.carousel {
    position: relative;
    margin-bottom: 2rem;
}
.carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 30, 20, 0.8) 100%);
}
.carousel-item.active .carousel-title,
.carousel-item.active .carousel-subtitle {
    opacity: 1;
    transform: translateY(0);
}
.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
}
.carousel-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.2s;
    opacity: 0.9;
}
.carousel-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.search {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.35rem 1rem 0.35rem 3rem;
    border-radius: 50px;
    width: 300px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}       
.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.25rem rgba(46, 204, 113, 0.25);
    color: var(--text-light);
    width: 350px;
    outline: none;
}
.search-icon {
    position: absolute;
    left: 1rem;
    z-index: 3;
    color: var(--text-muted);
    transition: all 0.3s ease;
}
.search-input:focus + .search-icon {
    color: var(--primary-green);
}

.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.channel-section {
    scroll-margin-top: 120px;
    transition: all 0.5s ease;
    margin-bottom: 2rem;
}
.channel-section:target {
    background: rgba(46, 204, 113, 0.05);
    border-radius: 12px;
    padding: 3rem 2rem;
    animation: sectionHighlight 1s ease;
}
.channel-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.channel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}

.footer {
    background-color: var(--darker-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
}

.subscribe {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(46, 204, 113, 0.3);
}
.game-form input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 50px;
    padding: 0.75rem 1rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.game-form input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
    box-shadow: 0 0  0 0.25rem rgba(46, 204, 113, 0.25);
    outline: none;
}
.game-form button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.game-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.game-form button:hover::before {
    left: 100%;
}
.game-form button:hover {
    transform: translateY(-2px);
}

.back-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-green);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}
.back-button.visible {
    opacity: 1;
    visibility: visible;
}
.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.category-button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.2rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.2), transparent);
    transition: left 0.5s ease;
}
.category-button:hover::before, .category-button.active::before {
    left: 100%;
}
.category-button:hover, .category-button.active {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.game-button {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 0.35rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: 0.5rem;
}
.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}
.game-button:hover::before {
    left: 100%;
}
.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.section-body {
    scroll-margin-top: 120px;
    transition: all 0.5s ease;
    margin-bottom: 2rem;
}
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 2px;
}          
.section-body:target {
    background: rgba(46, 204, 113, 0.05);
    border-radius: 12px;
    padding: 3rem 2rem;
    animation: sectionHighlight 1s ease;
}

.sidebar-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1rem 1rem 0.5rem 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(46, 204, 113, 0.2);
}
.sidebar-title {
    font-weight: 600;
    color: var(--primary-green);
}
.sidebar-body {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-item {
    padding: 0.5rem 0 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-item:last-child {
    border-bottom: none;
}
.sidebar-link {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}
.sidebar-link:hover {
    color: var(--primary-green);
}
.sidebar-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-align: right;
}

.card {
    display: flex;
    flex-direction: column;            
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);         
    border-color: var(--primary-green);
    text-decoration: none;
    color: inherit;
}
.card-image {
    height: 150px;
    object-fit: cover;
    width: 100%;
}
.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}
.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.card-body {
    padding: 0.5rem 0.5rem 0 0.5rem;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 1rem 0.5rem 0 0.5rem;
}
.card-header {
    margin-top: auto;
}
.card-footer {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.icon-tag .fa-clock {
    color: green;
}   
.icon-tag .fa-user {
    color: green;
}           
.icon-tag .fa-eye {
    color: yellowgreen;
} 
.icon-tag .fa-comment {
    color: #9b59b6;
}  
.icon-tag .fa-star {
    color: green;
}
.icon-tag .fa-thumbs-up {
    color: var(--primary-green);
}          
.icon-tag .fa-thumbs-down {
    color: var(--primary-red);
}
.icon-qty {
    color: silver;
}

@media (max-width: 768px) {
    .search-input {
        width: 200px;
    }
    .search-input:focus {
        width: 250px;
    }
}
@keyframes sectionHighlight {
    0% { background: rgba(46, 204, 113, 0); }
    50% { background: rgba(46, 204, 113, 0.1); }
    100% { background: rgba(46, 204, 113, 0.05); }
}        
@keyframes scanline {
    0% { left: -100%; }
    100% { left: 100%; }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}