/* Search Bar Button */
.search-bar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.search-bar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.search-bar-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.search-bar-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}

.search-bar-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
    text-align: left;
}

.search-bar-shortcut {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Legacy search button - hide */
.search-btn {
    display: none;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    backdrop-filter: blur(5px);
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: var(--primary-darker, #0a0a0f);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.search-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#search-input {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    padding: 15px 20px;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: #fff;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.search-result-game {
    display: block;
    font-size: 11px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.search-result-title {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-cyan, #00d4ff);
    color: var(--primary-darker, #0a0a0f);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn-twitter {
    background: #1da1f2;
    color: #fff;
}

.share-btn-twitter:hover {
    background: #0d8bd9;
}

.share-btn-reddit {
    background: #ff4500;
    color: #fff;
}

.share-btn-reddit:hover {
    background: #e03d00;
}

.share-btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.share-btn-copy:hover {
    background: rgba(255, 255, 255, 0.15);
}

.share-btn-copy.copied {
    background: #4caf50;
    border-color: #4caf50;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #00d4ff;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

/* Reading Time */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.reading-time-icon {
    font-size: 14px;
}

/* Table of Contents */
.toc {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.toc-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin: 8px 0;
}

.toc-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.toc-list a:hover {
    color: #00d4ff;
}

.toc-list a::before {
    content: "→";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* Related Posts */
.related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-posts-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
}

.related-post-game {
    font-size: 11px;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Light Theme */
body.light-theme {
    --primary-dark: #f0f0f5;
    --primary-darker: #ffffff;
    --text-white: #1a1a1a;
    --text-gray: #555;
    --text-light: #333;
    background-color: #f5f5f8;
}

body.light-theme header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

body.light-theme .logo-text {
    color: #1a1a1a;
}

body.light-theme nav a {
    color: #444;
}

body.light-theme nav a .en {
    color: #0099cc;
}

body.light-theme nav a .label {
    color: #666;
}

body.light-theme .search-bar-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .search-bar-text {
    color: rgba(0, 0, 0, 0.5);
}

body.light-theme .search-bar-shortcut {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .search-modal-content {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme #search-input {
    color: #1a1a1a;
}

body.light-theme .search-result-title {
    color: #1a1a1a;
}

body.light-theme .search-result-item:hover {
    background: rgba(0, 153, 204, 0.1);
}

/* Light theme - Main sections */
body.light-theme .hero {
    background: linear-gradient(135deg, #e8e8f0 0%, #f5f5f8 100%);
}

body.light-theme .hero-bg {
    opacity: 0.3;
}

body.light-theme .hero-content {
    background: rgba(255, 255, 255, 0.85);
}

body.light-theme .hero-subtitle {
    color: #1a1a1a;
    text-shadow: none;
}

body.light-theme .hero-quote {
    color: #333;
}

body.light-theme .hero-title {
    background: linear-gradient(135deg, #1a1a1a 0%, #0099cc 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.light-theme section {
    background-color: #f5f5f8;
}

body.light-theme .about-section,
body.light-theme .games-section,
body.light-theme .videos-section {
    background: #f5f5f8;
}

body.light-theme .section-title,
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3 {
    color: #1a1a1a;
}

body.light-theme p {
    color: #444;
}

/* Light theme - Cards */
body.light-theme .game-card,
body.light-theme .video-card,
body.light-theme .carousel-card,
body.light-theme .blog-post-card,
body.light-theme .guide-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body.light-theme .game-card:hover,
body.light-theme .video-card:hover,
body.light-theme .carousel-card:hover,
body.light-theme .blog-post-card:hover,
body.light-theme .guide-card:hover {
    border-color: rgba(0, 153, 204, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Light theme - Footer */
body.light-theme footer {
    background: #e8e8f0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .footer-legal a,
body.light-theme .footer-copyright {
    color: #666;
}

/* Light theme - Cookie consent */
body.light-theme .cookie-consent {
    background: rgba(255, 255, 255, 0.98);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .cookie-consent-text h4 {
    color: #1a1a1a;
}

body.light-theme .cookie-consent-text p {
    color: #555;
}

body.light-theme .cookie-btn-decline {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-color: rgba(0, 0, 0, 0.15);
}

/* Light theme - Blog specific */
body.light-theme .blog-hero,
body.light-theme .guides-hero {
    background: linear-gradient(135deg, #e0e0e8 0%, #f5f5f8 100%);
}

body.light-theme .article-content,
body.light-theme .blog-content {
    background: #fff;
}

body.light-theme .toc {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .toc-title {
    color: #1a1a1a;
}

body.light-theme .toc-list a {
    color: #555;
}

body.light-theme .related-posts {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .related-post-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .related-post-title {
    color: #1a1a1a;
}

/* Light theme - Back to top */
body.light-theme .back-to-top {
    background: #0099cc;
    box-shadow: 0 4px 15px rgba(0, 153, 204, 0.3);
}

/* Light theme - Theme toggle */
body.light-theme .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .theme-toggle:hover {
    border-color: rgba(0, 0, 0, 0.4);
}
