/* =========================================
   OG Rehber Sistemi — guide.css
   Hub + Detail + GameHub
   ========================================= */

/* === Hub Genel === */
.guide-hub {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 60px;
    min-height: 100vh;
}

/* Sayfa Arka Planı — Gündüz modunda boşluk hissini almak için hafif bir doku */
body:not([data-theme="dark"]) .guide-hub {
    background: radial-gradient(circle at top right, rgba(55,138,221,0.05) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(255,107,53,0.03) 0%, transparent 40%);
}

/* === Marquee === */
.guide-marquee-container {
    display: flex;
    align-items: center;
    background: var(--og-card-inner-bg);
    border-bottom: 1px solid var(--og-card-border);
    padding: 10px 0;
    margin-bottom: 32px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.guide-marquee-label {
    flex-shrink: 0;
    padding: 0 18px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #ff6b35;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-marquee-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.guide-marquee-track {
    display: flex;
    gap: 32px;
    animation: guideMarqueeScroll 30s linear infinite;
    width: max-content;
}

.guide-marquee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--og-text-secondary);
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s;
}

.guide-marquee-item:hover {
    color: var(--og-text-primary);
}

.guide-marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes guideMarqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === Hero === */
.guide-hero {
    text-align: center;
    padding: 64px 20px 48px;
    margin-bottom: 28px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

/* Gündüz modunda hero arka planını biraz daha belirgin yapalım */
body:not([data-theme="dark"]) .guide-hero {
    background: linear-gradient(135deg, rgba(55,138,221,0.04) 0%, rgba(55,138,221,0.01) 100%);
    border: 1px solid rgba(55,138,221,0.08);
}

.guide-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(55,138,221,0.15);
    color: #378ADD;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.guide-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    color: var(--og-text-primary);
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Başlık gölgesi — Gündüz modunda okunabilirliği artırır */
body:not([data-theme="dark"]) .guide-hero-title {
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-hero-sub {
    color: var(--og-text-secondary);
    font-size: 16px;
    max-width: 650px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.guide-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.guide-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.guide-hero-stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #378ADD;
    line-height: 1;
}

.guide-hero-stat-label {
    font-size: 11px;
    color: var(--og-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* === Arama === */
.guide-search-container {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.guide-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--og-card-bg);
    border: 1px solid var(--og-card-border);
    border-radius: 16px;
    padding: 14px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.guide-search-box:focus-within {
    border-color: #378ADD;
    background: var(--og-card-bg);
    box-shadow: 0 8px 24px rgba(55,138,221,0.12);
    transform: translateY(-2px);
}

.guide-search-box i {
    color: var(--og-text-muted);
    font-size: 16px;
}

.guide-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--og-text-primary);
    font-size: 15px;
}

.guide-search-box input::placeholder {
    color: var(--og-text-muted);
    opacity: 0.6;
}

.guide-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--og-card-bg);
    border: 1px solid var(--og-card-border);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.guide-search-result-item {
    display: block;
    padding: 14px 18px;
    color: var(--og-text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--og-card-border);
    transition: background 0.2s;
}

.guide-search-result-item:hover {
    background: rgba(55,138,221,0.08);
    color: var(--og-text-primary);
}

.guide-search-result-item .guide-sr-title {
    font-weight: 700;
    font-size: 14px;
}

.guide-search-result-item .guide-sr-game {
    font-size: 11px;
    color: var(--og-text-muted);
    margin-top: 4px;
}

/* === Pinned === */
.guide-pinned-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.guide-pinned-card {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.guide-pinned-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    color: #fff;
}

.guide-pinned-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.guide-pinned-card:hover .guide-pinned-bg {
    transform: scale(1.05);
}

.guide-pinned-content {
    position: relative;
    z-index: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.guide-pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,107,53,0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(255,107,53,0.3);
}

.guide-pinned-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.guide-pinned-count {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* === Countdown === */
.guide-countdown {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.guide-countdown-label {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    font-weight: 700;
}

.guide-countdown-timer {
    display: flex;
    align-items: center;
    gap: 6px;
}

.guide-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 52px;
    border: 1px solid rgba(255,255,255,0.1);
}

.guide-cd-num {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.guide-cd-unit small {
    font-size: 9px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 1px;
    margin-top: 2px;
}

.guide-cd-sep {
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    font-weight: 700;
}

/* === Grid === */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.guide-game-card {
    background: var(--og-card-bg);
    border: 1px solid var(--og-card-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--og-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.guide-game-card:hover {
    transform: translateY(-6px);
    border-color: #378ADD;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    color: var(--og-text-primary);
}

.guide-game-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--og-card-inner-bg);
}

.guide-game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: all 0.5s ease;
}

.guide-game-card:hover .guide-game-cover img {
    opacity: 1;
    transform: scale(1.08);
}

.guide-game-letter {
    font-family: 'Oswald', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: var(--og-text-muted);
    opacity: 0.4;
}

.guide-game-info {
    padding: 16px 20px;
}

.guide-game-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--og-text-primary);
}

.guide-game-count {
    font-size: 13px;
    color: var(--og-text-muted);
    font-weight: 500;
}

/* === Empty State === */
.guide-empty {
    text-align: center;
    padding: 100px 20px;
    color: var(--og-text-muted);
}

.guide-empty i {
    font-size: 64px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.3;
}

.guide-empty p {
    font-size: 18px;
    font-weight: 500;
}

/* === Responsive === */
@media (max-width: 768px) {
    .guide-pinned-section {
        grid-template-columns: 1fr;
    }

    .guide-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .guide-hero {
        padding: 48px 16px 32px;
    }

    .guide-hero-title {
        font-size: 32px;
    }

    .guide-hero-stats {
        gap: 24px;
    }

    .guide-marquee-label {
        display: none;
    }
}
