﻿@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

.guide-page {
    --guide-ink: #0f172a;
    --guide-muted: #5b677a;
    --guide-surface: #ffffff;
    --guide-soft: #eef2f7;
    --guide-accent: var(--primary-color);
    --guide-accent-dark: var(--primary-dark);
    font-family: 'Work Sans', 'Segoe UI', sans-serif;
    color: var(--guide-ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #ffffff 100%);
}

.guide-page h1,
.guide-page h2,
.guide-page h3,
.guide-page .guide-title {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    letter-spacing: -0.02em;
}

.guide-hero {
    position: relative;
    padding: 4rem 0 3.5rem;
    background: radial-gradient(circle at 15% 20%, rgba(255, 90, 62, 0.12), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 40%),
        linear-gradient(120deg, rgba(15, 23, 42, 0.04), rgba(255, 255, 255, 0.9));
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.guide-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.08;
    pointer-events: none;
}

.guide-hero-inner {
    position: relative;
    z-index: 1;
}

.guide-hero .eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--guide-accent-dark);
}

.guide-hero h1 {
    font-size: clamp(2.3rem, 3vw, 3.4rem);
    margin-bottom: 1rem;
}

.guide-hero p.lead {
    font-size: 1.05rem;
    color: var(--guide-muted);
}

.guide-search {
    background: var(--guide-surface);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.guide-search .form-control {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    padding-left: 1.1rem;
}

.guide-search .btn {
    border-radius: 999px;
}

.guide-stat {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
}

.guide-stat i {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.08);
    color: var(--guide-ink);
}

.guide-panel {
    background: var(--guide-surface);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.guide-panel .badge {
    background: rgba(15, 23, 42, 0.08);
    color: var(--guide-ink);
}

.guide-pill {
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.9rem;
    font-weight: 500;
}

.guide-pill.active,
.guide-pill:hover {
    border-color: var(--guide-accent);
    color: var(--guide-accent);
    background: rgba(255, 255, 255, 1);
}

.guide-pill-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: contain;
    margin-right: 6px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
    background: #fff;
    padding: 2px;
    vertical-align: -3px;
}

.guide-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.guide-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.guide-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.guide-card .card-body {
    padding: 1.25rem 1.3rem 1rem;
}

.guide-card .badge {
    background: rgba(15, 23, 42, 0.08);
    color: var(--guide-ink);
}

.guide-card .guide-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.guide-card .guide-card-desc {
    color: var(--guide-muted);
    font-size: 0.95rem;
}

.guide-topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.guide-topic-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    padding: 1.2rem 1rem 1.1rem;
    text-align: center;
    text-decoration: none;
    color: var(--guide-ink);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.guide-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
    border-color: var(--guide-accent);
}

.guide-topic-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
    font-size: 1.6rem;
    color: var(--guide-ink);
}

.guide-topic-icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}

.guide-topic-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.guide-topic-desc {
    font-size: 0.85rem;
    color: var(--guide-muted);
}

.guide-topic-card[data-topic="telegram"] .guide-topic-icon { color: #0ea5e9; }
.guide-topic-card[data-topic="twitter"] .guide-topic-icon { color: #0f172a; }
.guide-topic-card[data-topic="x"] .guide-topic-icon { color: #0f172a; }
.guide-topic-card[data-topic="google"] .guide-topic-icon { color: #ea4335; }
.guide-topic-card[data-topic="discord"] .guide-topic-icon { color: #4f46e5; }
.guide-topic-card[data-topic="instagram"] .guide-topic-icon { color: #d946ef; }
.guide-topic-card[data-topic="facebook"] .guide-topic-icon { color: #2563eb; }
.guide-topic-card[data-topic="microsoft"] .guide-topic-icon { color: #0f172a; }

.guide-section-title {
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.guide-section-title::before {
    content: '';
    width: 32px;
    height: 4px;
    border-radius: 999px;
    background: var(--guide-accent);
}

.guide-sidebar {
    position: sticky;
    top: 90px;
}

.guide-sidebar .card {
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.guide-sidebar a {
    color: var(--guide-ink);
    text-decoration: none;
}

.guide-content {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--guide-ink);
}

.guide-content h2,
.guide-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-content p {
    color: var(--guide-muted);
}

.guide-content ul,
.guide-content ol {
    padding-left: 1.2rem;
}

.guide-content a {
    text-decoration: underline;
    text-decoration-color: rgba(15, 23, 42, 0.2);
}

.guide-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    color: var(--guide-muted);
    font-size: 0.95rem;
}

.guide-breadcrumb .breadcrumb {
    background: transparent;
    margin-bottom: 1.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: guideFadeUp 0.6s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

@keyframes guideFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .guide-hero {
        padding: 3rem 0 2.5rem;
    }

    .guide-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .guide-search {
        padding: 0.75rem;
    }

    .guide-stat {
        width: 100%;
    }
}
