/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #fff;
    --bg-header: #1a1a1a;
    --text-primary: #333;
    --text-secondary: #444;
    --text-muted: #666;
    --text-light: #ccc;
    --border-color: #eaeaea;
    --shadow: rgba(0, 0, 0, 0.06);
    --accent-color: #e67e22;
    --accent-hover: #d35400;
}

html[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-header: #000;
    --text-primary: #e0e0e0;
    --text-secondary: #ccc;
    --text-muted: #999;
    --text-light: #666;
    --border-color: #333;
    --shadow: rgba(0, 0, 0, 0.3);
    --accent-color: #e67e22;
    --accent-hover: #f39c12;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Styles */
.header {
    background: var(--bg-header);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav {
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    color: #fff;
    transform: rotate(15deg);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.search-input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    width: 200px;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #fff;
}

/* Search Results Styling */
.no-results-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-results-message p {
    font-size: 1.1rem;
    margin: 0;
}

mark {
    background: #e67e22;
    color: #fff;
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 600;
}

/* Main Content */
.main {
    background: var(--bg-secondary);
    min-height: calc(100vh - 200px);
    transition: background-color 0.3s ease;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb-current {
    color: #333;
}

/* Game Player Section */
.game-player-section {
    margin-bottom: 2rem;
}

.game-player-wrapper {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.game-player-wrapper:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.game-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.game-loading,
.game-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    z-index: 10;
    border-radius: 12px;
}

.game-loading p,
.game-error p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #fff;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(230, 126, 34, 0.3);
    border-top-color: #e67e22;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #d35400;
}

.game-iframe-container.loaded .game-loading {
    display: none;
}

.game-iframe-container:fullscreen {
    padding-bottom: 0;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
}

.game-iframe-container:-webkit-full-screen {
    padding-bottom: 0;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
}

.game-iframe-container:-ms-fullscreen {
    padding-bottom: 0;
    height: 100vh;
    width: 100vw;
    border-radius: 0;
}

/* Theater Mode / Pseudo-fullscreen for Mobile/iOS */
.pseudo-fullscreen {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
}

.theater-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100000 !important;
    background: #000 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.theater-mode .game-iframe {
    width: 100% !important;
    height: 100% !important;
}

/* Exit button for Theater Mode on mobile */
.theater-exit-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100001;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.theater-exit-btn:hover {
    background: rgba(230, 126, 34, 0.9);
    border-color: #e67e22;
    transform: scale(1.1);
}

.pseudo-fullscreen .theater-exit-btn {
    display: flex;
}

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

.game-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.12);
}

.action-btn.active {
    background: #fffefb;
    border-color: currentColor;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.like-count,
.dislike-count {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1rem;
    text-align: center;
}

.like-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.dislike-btn.active {
    color: #7f8c8d; /* Changed from blue to a neutral dark gray */
    border-color: #7f8c8d;
}

.play-count {
    font-size: 0.9rem;
    color: #666;
    margin-left: auto;
}

/* Description Section */
.description-section {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.game-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.description-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem 0;
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.description-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 2rem 0 1rem 0;
}

.description-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.description-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.description-content li {
    margin-bottom: 0.75rem;
    color: #444;
}

/* FAQ Section Styling */
.faq-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.faq-item {
    margin-bottom: 2rem;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

.faq-answer {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0 !important;
}

.controls-list {
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px dashed var(--accent-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Categories & Tags */
.categories-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.categories-tags h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
}

.tag:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Sidebar */
.sidebar {
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.sidebar-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 0.75rem;
}

.sidebar-game {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.sidebar-game:hover {
    transform: translateY(-5px);
}

.sidebar-game-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sidebar-game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-game-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4em; /* Fixed height for 2 lines */
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.footer-links-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .sidebar {
        margin-top: 1rem;
    }

    .sidebar-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }

    .nav-logo {
        flex: 1;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-right {
        order: 1;
        margin-left: auto;
        gap: 0.5rem;
    }

    .search-box {
        padding: 0.4rem 0.8rem;
    }

    .search-input {
        width: 120px;
        font-size: 0.85rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-header);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        display: block;
        padding: 1.25rem 0;
        width: 100%;
        font-size: 1.1rem;
    }

    .content-wrapper {
        padding: 1rem;
        gap: 1rem;
    }

    .game-player-wrapper {
        padding: 1rem;
        border-radius: 12px;
    }

    .game-actions {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 100px;
    }

    .play-count {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .game-title {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .sidebar-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .search-input {
        width: 100px;
    }

    .game-title {
        font-size: 1.3rem;
    }

    .description-content h2 {
        font-size: 1.3rem;
    }

    .sidebar-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-iframe-container {
        padding-bottom: 56.25%; /* 16:9 aspect ratio for mobile */
        border-radius: 8px;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-game,
.description-section {
    animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus states */
.nav-link:focus,
.tag:focus,
.sidebar-game:focus,
.action-btn:focus,
.search-btn:focus,
.theme-toggle:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .sidebar {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .description-content {
        box-shadow: none;
    }
}
/* Category Pages */
.category-section {
    padding: 20px 0;
}

.category-section h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    border-left: 6px solid var(--accent-color);
    padding-left: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.category-grid .sidebar-game {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    flex-direction: column;
    height: 100%;
}

.category-grid .sidebar-game:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-grid .sidebar-game-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
}

.category-grid .sidebar-game-title {
    padding: 15px;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
    height: auto;
    -webkit-line-clamp: initial;
    display: block;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .category-section h1 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sidebar-game, .category-grid .sidebar-game {
    animation: fadeIn 0.4s ease forwards;
}

/* Stagger animation for grid items */
.sidebar-games-grid a:nth-child(1) { animation-delay: 0.05s; }
.sidebar-games-grid a:nth-child(2) { animation-delay: 0.1s; }
.sidebar-games-grid a:nth-child(3) { animation-delay: 0.15s; }
.sidebar-games-grid a:nth-child(4) { animation-delay: 0.2s; }
.sidebar-games-grid a:nth-child(5) { animation-delay: 0.25s; }

/* Category Grid Improvements */
.category-grid .sidebar-game {
    background: var(--bg-secondary);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.category-grid .sidebar-game:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

/* Scrollbar Polish */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Theme Toggle Animation */
.theme-toggle svg {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
    transform: rotate(45deg);
}

/* Mobile Menu Overlay Polish */
.mobile-menu-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Loading Spinner Accent */
.loading-spinner {
    border-top-color: var(--accent-color) !important;
}

/* No Results Message */
.no-results-message {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 20px 0;
}

/* Related Categories Section */
.related-categories {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-categories h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.category-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid #ddd;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

