:root {
    --primary: #B37EFF;
    --primary-dark: #9458d9;
    --secondary: #ff6b6b;
    --dark: #1a1a2e;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: var(--light);
    text-align: center;
}

.header {
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.nav a {
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 60px 20px 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.mobile-menu-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-section {
    margin-bottom: 20px;
}

.mobile-menu-section-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: 0.3s;
}

.mobile-menu-section-title:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-section-title::after {
    content: '+';
    font-size: 1.2rem;
    transition: 0.3s;
}

.mobile-menu-section-title.active::after {
    content: '-';
}

.mobile-menu-links {
    display: none;
    padding: 10px 0 0 10px;
}

.mobile-menu-links.active {
    display: block;
}

.mobile-menu-links a {
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
    margin-bottom: 5px;
}

.mobile-menu-links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-actions button {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Fredoka', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1;
}

.mobile-search-btn {
    background: white;
    color: var(--primary);
}

.mobile-settings-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.mobile-settings-btn svg,
.mobile-search-btn svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.mobile-search-btn svg {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.hero {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px 35px;
    color: white;
    border-radius: 16px;
    margin: 0px 20px;
    margin-top: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.search {
    width: 100%;
    max-width: 600px;
    padding: 14px 50px 14px 22px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 25px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.stat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.stat-content {
    text-align: left;
}

.stat span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 45px 8px;
}

.section {
    margin-bottom: 30px;
}

.section h2 {
    font-size: 1.4rem;
    color: #2d3436;
    margin-bottom: 15px;
}

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

.cat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.cat-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.games-grid, .category-row-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 12px;
    padding: 0;
    grid-auto-flow: dense;
}

@media (min-width: 1150px) {
    .games-grid, .category-row-games {
        grid-template-columns: repeat(9, 1fr);
    }
}

.large-promo-card {
    grid-column: span 2;
    grid-row: span 2;
}

.large-promo-card .thumb-container {
    height: 100% !important;
}
.large-promo-card .game-thumb {
    height: 100% !important;
    object-fit: cover !important;
}

.large-promo-card .game-info {
    padding: 16px;
}

.large-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2ecc71;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

@media (max-width: 768px) {
    .large-promo-card {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .large-promo-card .thumb-container {
        aspect-ratio: 1.8 / 1 !important;
    }
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.game-card:hover .game-info {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(0);
}

.game-card:hover .thumb-container {
    box-shadow: inset 0 -60px 30px -20px rgba(0, 0, 0, 0.5);
}

.game-card .thumb-container {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: box-shadow, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.game-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.thumb-container.loaded img {
    opacity: 1;
}

.thumb-container .skeleton-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: inherit;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.thumb-container.loaded .skeleton-shimmer {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.dark-theme .thumb-container .skeleton-shimmer {
    background: linear-gradient(90deg, #2a2a2a 25%, #1e1e1e 50%, #2a2a2a 75%);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--secondary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge.new {
    background: #2ecc71;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
    pointer-events: none;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.game-title {
    font-weight: 600;
    font-size: 0.95rem;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
}

.category-card-emoji {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.category-card-emoji span {
    text-decoration: none;
}

/* SEO Line */
.seo-line {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
}

/* Featured Cards in Grid */
.featured-card-in-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    grid-column: span 2;
    grid-row: span 1;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.featured-card-in-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.featured-card-in-grid .thumb-container {
    aspect-ratio: 2.1/1 !important;
}

.featured-card-in-grid img,
.featured-card-in-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.featured-card-in-grid video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.featured-card-in-grid:hover video {
    opacity: 1;
}

.featured-card-in-grid:hover .thumb-container > img {
    opacity: 0;
}

.featured-card-in-grid:hover .thumb-container > img.show-image {
    opacity: 1 !important;
}

.featured-card-in-grid video.video-fading {
    opacity: 0 !important;
    transition: opacity 0.8s ease-out;
}

.featured-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    text-align: left;
}

.featured-card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-card-desc {
    font-size: 0.8rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Grid Carousel Card */
.grid-carousel {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    grid-column: span 1;
    grid-row: span 1;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

.grid-carousel:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.grid-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #1a1a2e;
}

.grid-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.grid-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.grid-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    text-align: center;
}

.grid-carousel-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.grid-carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.grid-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.grid-carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.grid-carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.grid-carousel-arrow {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: white;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.grid-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.grid-carousel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
}

/* Mobile styles for featured and carousel cards */
@media (max-width: 768px) {
    .featured-card-in-grid {
        grid-column: span 2;
        grid-row: span 1;
    }
    .featured-card-in-grid .thumb-container {
        aspect-ratio: 1.8/1;
    }
    .featured-card-in-grid .featured-card-title {
        font-size: 0.9rem;
    }
    .featured-card-in-grid .featured-card-desc {
        font-size: 0.7rem;
    }
    .featured-card-in-grid .featured-card-info {
        padding: 8px 12px;
    }
    .grid-carousel {
        grid-column: span 1;
        grid-row: span 1;
    }
    .grid-carousel-slides {
        aspect-ratio: 1;
    }
    .grid-carousel-title {
        font-size: 0.9rem;
    }
    .grid-carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .grid-carousel-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .featured-card-in-grid .thumb-container {
        aspect-ratio: 1.4/1;
    }
    .featured-card-in-grid .featured-card-title {
        font-size: 0.85rem;
    }
    .featured-card-in-grid .featured-card-info {
        padding: 6px 10px;
    }
    .grid-carousel-slides {
        aspect-ratio: 1;
    }
    .grid-carousel-title {
        font-size: 0.85rem;
    }
    .grid-carousel-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .stats {
        gap: 30px;
    }
    .stat span {
        font-size: 1.8rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    .topbar,
    .topbar-menu {
        display: none;
    }
    .header {
        padding: 12px 15px;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 50px 15px;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .stat span {
        font-size: 1.5rem;
    }
    .stat {
        font-size: 0.9rem;
    }

    /* Games Grid Mobile */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        margin: 0 -5px;
    }
    .game-card {
        border-radius: 10px;
    }
    .game-info {
        padding: 10px;
    }
    .game-title {
        font-size: 0.85rem;
    }

    /* Featured Section Mobile */
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
    }
    .featured-card {
        height: 120px;
    }
    .featured-title {
        font-size: 0.85rem;
    }
    .featured-desc {
        font-size: 0.7rem;
    }

    /* Carousel Mobile */
    .carousel-section {
        width: 100%;
        min-height: 180px;
    }
    .carousel {
        height: 180px;
    }
    .carousel-title {
        font-size: 0.9rem;
    }
    .carousel-desc {
        font-size: 0.7rem;
    }

    /* Section Titles */
    .section h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    .logo img {
        width: 35px;
        height: 35px;
    }
    .hero {
        padding: 40px 12px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .stats {
        gap: 15px;
    }
    .stat span {
        font-size: 1.2rem;
    }
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .game-card .thumb-container {
        aspect-ratio: 1;
    }
    .game-title {
        font-size: 0.8rem;
    }
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .featured-card {
        height: 100px;
    }
    .carousel {
        height: 160px;
    }
    .main-content {
        padding: 25px 12px;
    }
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 2001;
    display: none;
    flex-direction: column;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-overlay.open {
    display: flex;
}

.mobile-search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-search-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.mobile-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Fredoka', sans-serif;
    outline: none;
    transition: 0.3s;
}

.mobile-search-input:focus {
    border-color: var(--primary);
}

.mobile-search-results {
    padding: 20px 0;
    flex-grow: 1;
    overflow-y: auto;
}

.mobile-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-search-result img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.mobile-search-result span {
    font-weight: 600;
    color: var(--dark);
}

/* Mobile Settings Overlay */
.mobile-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    z-index: 2001;
    display: none;
    flex-direction: column;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.mobile-settings-overlay.active {
    display: flex;
}

.mobile-settings-overlay.open {
    display: flex;
}

.mobile-settings-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

.mobile-settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.mobile-settings-group {
    margin-bottom: 25px;
}

.mobile-settings-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-theme-toggle {
    display: flex;
    background: #eee;
    border-radius: 25px;
    padding: 4px;
    position: relative;
    cursor: pointer;
}

.mobile-theme-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 22px;
    font-weight: 600;
    transition: 0.3s;
    z-index: 1;
}

.mobile-theme-option.light {
    color: var(--dark);
}

.mobile-theme-option.dark {
    color: white;
}

.mobile-theme-option.active {
    background: var(--primary);
    color: white;
}

.mobile-theme-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 22px;
    transition: 0.3s;
}

.mobile-theme-slider.dark {
    left: calc(50% - 4px);
}

/* Dark Theme for Mobile Overlays */
body.dark-theme .mobile-search-overlay,
body.dark-theme .mobile-settings-overlay {
    background: #1a1a2e;
    color: #f5f5f5;
}

body.dark-theme .mobile-search-title,
body.dark-theme .mobile-settings-title {
    color: #f5f5f5;
}

body.dark-theme .mobile-search-close,
body.dark-theme .mobile-settings-close {
    color: #f5f5f5;
}

body.dark-theme .mobile-search-input {
    background: #2a2a2a;
    border-color: #444;
    color: #f5f5f5;
}

body.dark-theme .mobile-search-input::placeholder {
    color: #888;
}

body.dark-theme .mobile-search-result {
    background: #2a2a2a;
}

body.dark-theme .mobile-search-result span {
    color: #f5f5f5;
}

body.dark-theme .mobile-settings-label {
    color: #aaa;
}

body.dark-theme .mobile-theme-toggle {
    background: #2a2a2a;
}

body.dark-theme .mobile-theme-option {
    color: #f5f5f5;
}

body.dark-theme .mobile-theme-option.active {
    background: var(--primary);
    color: white;
}

/* Category Sidebar - CrazyGames style */
.category-sidebar {
    position: fixed;
    left: 0;
    top: 70px; /* Height of your topbar */
    height: calc(100vh - 70px); /* Subtract topbar height */
    width: 60px;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    z-index: 1001;
    overflow: hidden;
    transition: width 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.category-sidebar:hover {
    width: 220px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 60px;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-brand {
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.category-sidebar:hover .sidebar-brand {
    opacity: 1;
}

.category-sidebar:hover .sidebar-header {
    padding: 15px 15px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.sidebar-menu-item {
    position: relative;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.sidebar-menu-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-menu-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-menu-text {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
    margin-left: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-sidebar:hover .sidebar-menu-text {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-settings {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

.sidebar-settings-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 0;
}

.sidebar-settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-settings-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-settings-icon svg {
    width: 20px;
    height: 20px;
}

.sidebar-settings-text {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
    margin-left: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.category-sidebar:hover .sidebar-settings-text {
    opacity: 1;
    transform: translateX(0);
}

/* Adjust main content when sidebar is present */
body.sidebar-open {
    padding-left: 60px;
}

body.sidebar-open .header {
    left: 0;
}

/* Header adjustments for sidebar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    padding: 15px 0;
    z-index: 1002; /* Higher than sidebar */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hide desktop topbar menu when using sidebar */
.topbar {
    display: none;
}

/* Mobile: hide sidebar, use hamburger menu */
@media (max-width: 768px) {
    .category-sidebar {
        display: none;
    }

    body.sidebar-open {
        padding-left: 0;
    }

    body.sidebar-open .header {
        left: 0;
    }

    .header {
        left: 0 !important;
    }
}

/* Dropdown Menu */
.topbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    padding: 10px 0;
    z-index: 1000;
}

.topbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.topbar-menu>li {
    position: relative;
}

.topbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    display: inline-block;
}

.topbar-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.topbar-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Settings Button */
.settings-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Search Button */
.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.moon-icon {
    width: 22px;
    height: 22px;
    color: white;
    transition: all 0.3s ease;
}

body.dark-theme .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

body:not(.dark-theme) .moon-icon {
    stroke: #888;
}

.inline-search {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-btn.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Search Button Location - Next to logo */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .header-content {
        justify-content: space-between;
        padding: 0 15px;
    }
    .logo {
        font-size: 1.4rem;
    }
    .logo img {
        width: 35px;
        height: 35px;
    }
}

/* Inline Search Bar */
.inline-search {
    position: relative;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.inline-search input {
    width: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-family: 'Fredoka', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.inline-search input:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.inline-search.open input {
    width: 200px;
    opacity: 1;
    pointer-events: auto;
}

/* Browse by Category Section */
.browse-categories {
    margin-bottom: 30px;
}

.browse-categories .section h2 {
    margin-bottom: 20px;
}

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

.category-btn-rect {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 80px;
}

.category-btn-rect:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-btn-rect:hover {
    background: var(--primary);
}

.category-btn-rect:hover .cat-btn-icon {
    background: var(--primary-dark);
}

.category-btn-rect .cat-btn-icon {
    width: 80px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.category-btn-rect .cat-btn-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-btn-rect .cat-btn-text {
    flex: 1;
    padding: 0 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    transition: 0.3s;
}

.category-btn-rect:hover .cat-btn-text {
    color: white;
}

body.dark-theme .category-btn-rect {
    background: #1e1e1e;
}

body.dark-theme .category-btn-rect .cat-btn-text {
    color: #f5f5f5;
}

/* Mobile styles for categories */
@media (max-width: 480px) {
    .category-btn-rect {
        height: 65px;
    }
    .category-btn-rect .cat-btn-icon {
        width: 65px;
    }
    .category-btn-rect .cat-btn-text {
        font-size: 1rem;
        padding: 0 15px;
    }
    .category-btn-rect .cat-btn-icon span {
        font-size: 1.6rem;
    }
    .category-grid {
        gap: 12px;
    }
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: var(--light);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.settings-panel.open {
    right: 0;
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.settings-overlay.open {
    opacity: 1;
    visibility: visible;
}

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

.settings-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
}

.close-settings {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
    transition: 0.2s;
}

.close-settings:hover {
    color: var(--secondary);
}

.setting-group {
    margin-bottom: 25px;
}

.setting-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-toggle {
    display: flex;
    background: #eee;
    border-radius: 25px;
    padding: 4px;
    position: relative;
    cursor: pointer;
}

.theme-option {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 22px;
    font-weight: 600;
    transition: 0.3s;
    z-index: 1;
}

.theme-option.light {
    color: var(--dark);
}

.theme-option.dark {
    color: white;
}

.theme-option.active {
    background: var(--primary);
    color: white;
}

.theme-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary);
    border-radius: 22px;
    transition: 0.3s;
}

.theme-slider.dark {
    left: calc(50% - 4px);
}

.domain-section {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
}

.domain-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
}

.domain-btn:last-child {
    margin-bottom: 0;
}

.domain-btn.sub {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.domain-btn.sub:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.domain-btn.main {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.domain-btn.main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}

.domain-label {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
    margin-top: 3px;
}

/* Dark Theme */
body.dark-theme {
    background: #121212;
    color: #f5f5f5;
}

body.dark-theme .section h2 {
    color: #f5f5f5;
}

body.dark-theme .cat-card {
    background: #1e1e1e;
    color: #f5f5f5;
}

body.dark-theme .game-card {
    background: #1e1e1e;
}

body.dark-theme .game-info {
    background: #1e1e1e;
}

body.dark-theme .game-title {
    color: #f5f5f5;
}

body.dark-theme .featured-card-in-grid {
    background: #1e1e1e;
}

body.dark-theme .featured-card-info {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

body.dark-theme .featured-card-title {
    color: #f5f5f5;
}

body.dark-theme .featured-card-desc {
    color: #ddd;
}

body.dark-theme .grid-carousel {
    background: #1e1e1e;
}

body.dark-theme .grid-carousel-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
}

body.dark-theme .grid-carousel-title {
    color: #f5f5f5;
}

body.dark-theme .settings-panel {
    background: #1e1e1e;
    color: #f5f5f5;
}

body.dark-theme .settings-title {
    color: #f5f5f5;
}

body.dark-theme .close-settings {
    color: #f5f5f5;
}

body.dark-theme .setting-label {
    color: #aaa;
}

body.dark-theme .domain-section {
    background: #2a2a2a;
}

body.dark-theme .theme-toggle {
    background: #2a2a2a;
}

body.dark-theme .settings-header {
    border-bottom-color: #333;
}

body.dark-theme .theme-option {
    color: #f5f5f5;
}

body.dark-theme .theme-option.active {
    background: var(--primary);
    color: white;
}

body.dark-theme .hero {
    background: linear-gradient(135deg, #6c5ce7 0%, #a55eea 50%, #5f27cd 100%);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

body.dark-theme .stat-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

body:not(.dark-theme) .theme-option.dark {
    color: var(--dark);
}

@media (max-width: 768px) {
    .settings-panel {
        width: 100%;
        right: -100%;
    }
}

/* Category Rows on Home Page */
.category-row {
    margin-bottom: 35px;
}

.category-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px;
}

.category-row-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

body.dark-theme .category-row-title {
    color: #f5f5f5;
}

.category-row-view-all {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-row-view-all:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

body.dark-theme .category-row-view-all {
    color: var(--primary);
}

body.dark-theme .category-row-view-all:hover {
    color: #dbc2ff;
}

.category-row-games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 15px;
}

.category-row-games .game-card {
    margin: 0;
}

/* Horizontal scroll for category rows on mobile */
.category-row-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.category-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-row-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.category-row-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.category-row-scroll .game-card {
    flex: 0 0 155px;
    scroll-snap-align: start;
}

/* Make games in horizontal scroll show info on hover */
.category-row-scroll .game-card .game-info {
    opacity: 0;
    transform: translateY(8px);
}

.category-row-scroll .game-card:hover .game-info {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile styles for category rows */
@media (max-width: 768px) {
    .category-row-games {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .category-row-title {
        font-size: 1.2rem;
    }

    .category-row-view-all {
        font-size: 0.85rem;
    }

    .category-row-scroll .game-card {
        flex: 0 0 140px;
    }
}

@media (max-width: 480px) {
    .category-row-games {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-row-scroll .game-card {
        flex: 0 0 130px;
    }

    .category-row {
        margin-bottom: 25px;
    }
}

/* Request Game Button */
.request-game-button {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Fredoka', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.request-game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Request Game Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: transparent;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    background: transparent;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 2001;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal::before {
    content: "×";
    color: white;
    font-size: 22px;
    font-weight: bold;
    display: block;
    line-height: 1;
    margin-top: -3px;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Q&A Section Styles */
.qa-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.qa-container {
    max-width: 800px;
    margin: 0 auto;
}

.qa-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 20px;
}

body.dark-theme .qa-title {
    color: white;
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.dark-theme .qa-item {
    background: #1e1e2e;
}

.qa-item:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.qa-question {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

body.dark-theme .qa-question {
    color: white;
}

.qa-question:hover {
    background: rgba(179, 126, 255, 0.06);
}

.qa-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    color: var(--primary);
    flex-shrink: 0;
    margin-left: 12px;
}

.qa-item.qa-open .qa-arrow {
    transform: rotate(180deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

body.dark-theme .qa-answer {
    background: rgba(255, 255, 255, 0.02);
}

.qa-item.qa-open .qa-answer {
    max-height: 150px;
}

.qa-answer p {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

body.dark-theme .qa-answer p {
    color: #bbb;
}

@media (max-width: 768px) {
    .qa-section {
        padding: 25px 15px 15px;
    }

    .qa-title {
        font-size: 1.25rem;
        margin-bottom: 18px;
    }

    .qa-question {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .qa-answer p {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Info Card Section Styles */
.info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 20px;
}

.info-container {
    max-width: 900px;
    margin: 0 auto;
}

.info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: 25px;
}

body.dark-theme .info-title {
    color: white;
}

.info-description-card {
    background: white;
    border-radius: 12px;
    padding: 25px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

body.dark-theme .info-description-card {
    background: #1e1e2e;
}

.info-description-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-description-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    margin: 0;
    text-align: left;
}

body.dark-theme .info-description-text {
    color: #bbb;
}

.info-section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 30px 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(179, 126, 255, 0.2);
    line-height: 1.4;
}

body.dark-theme .info-section-heading {
    color: var(--primary);
}

.info-section-heading:first-child {
    margin-top: 0;
}

.info-description-text p {
    margin-bottom: 20px;
    text-indent: 30px;
}

.info-cta {
    margin-top: 35px !important;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    border-radius: 10px;
    color: white !important;
    font-size: 1.15rem;
    text-align: center !important;
    text-indent: 0 !important;
    font-weight: 500;
}

body.dark-theme .info-cta {
    color: white !important;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    padding: 0px 38px;
}

.info-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

body.dark-theme .info-card {
    background: #1e1e2e;
}

.info-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    color: white;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.info-card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.02);
}

body.dark-theme .info-card-content {
    background: rgba(255, 255, 255, 0.02);
}

.info-card.info-open .info-card-content {
    max-height: 120px;
}

.info-card-content p {
    padding: 14px 18px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

body.dark-theme .info-card-content p {
    color: #bbb;
}

@media (max-width: 768px) {
    .info-section {
        padding: 25px 15px 15px;
    }

    .info-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .info-description-card {
        padding: 22px 24px;
        border-radius: 10px;
    }

    .info-description-text {
        font-size: 1.05rem;
        line-height: 1.85;
    }

    .info-section-heading {
        font-size: 1.15rem;
        margin: 25px 0 14px 0;
        padding-bottom: 8px;
    }

    .info-description-text p {
        margin-bottom: 18px;
        text-indent: 25px;
    }

    .info-cta {
        margin-top: 28px !important;
        padding: 18px 22px;
        font-size: 1.05rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .info-card-header {
        padding: 14px 16px;
    }

    .info-icon {
        font-size: 1.3rem;
    }

    .info-card-title {
        font-size: 0.95rem;
    }

    .info-card-content p {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* Cookie Consent Popup */
.cookie-consent-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), #dbc2ff);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    font-family: 'Fredoka', sans-serif;
}

.cookie-consent-popup.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cookie-consent-text {
    flex: 0 1 auto;
    min-width: 200px;
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-consent-text strong {
    font-size: 1rem;
    display: inline;
    margin-right: 5px;
}

.cookie-consent-buttons {
    flex-shrink: 0;
}

.cookie-consent-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Fredoka', sans-serif;
}

.cookie-consent-btn-accept {
    background: white;
    color: var(--primary);
}

.cookie-consent-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .cookie-consent-popup {
    background: linear-gradient(135deg, var(--primary-dark), #7b4db8);
}

/* I know it's not a good spot but category title header 👇 */
.category-title-simple {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: left;
    margin-top: 100px; /* Add space below the fixed header */
    padding: 0 20px; /* Add horizontal padding */
}

body.dark-theme .category-title-simple {
    color: #f5f5f5;
}

@media (max-width: 600px) {
    .cookie-consent-popup {
        padding: 15px;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}