/* Guide Center Specific Styles */
.guide-center {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.guide-center header {
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.guide-center .container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar (Desktop) */
.sidebar {
    width: 300px;
    background: #0f0f0f;
    border-right: 1px solid var(--border);
    padding: 2.5rem 2rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 3rem;
}

.sidebar-section h4 {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    font-size: 0.95rem;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.sidebar li:hover {
    color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
}

.sidebar li.active {
    color: var(--accent);
    background: rgba(0, 242, 255, 0.1);
    border-color: rgba(0, 242, 255, 0.2);
    font-weight: 600;
}

/* Search bar in header */
.search-container {
    position: relative;
    flex: 0 1 500px;
    margin: 0 2rem;
}

.search-container::before {
    content: "🔍";
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.4;
    pointer-events: none;
}

#guideSearch {
    width: 100%;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

#guideSearch:focus {
    border-color: var(--accent);
    background: #222;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.15);
}

#guideSearch::placeholder {
    color: #555;
}

/* Content Area */
.content-area {
    flex: 1;
    padding: 4rem;
    background: var(--bg-dark);
    min-width: 0;
}

.hero-mini {
    text-align: left;
    margin-bottom: 4rem;
}

.hero-mini h1 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    letter-spacing: -1.5px;
}

/* Flash Cards */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    background: #161616;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.guide-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: #1c1c1c;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.guide-card:hover::after {
    transform: translateY(0);
}

.card-content h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.card-footer {
    display: flex;
    align-items: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Breadcrumb */
.breadcrumb {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb span:first-child {
    color: var(--accent);
    font-weight: 700;
}

/* Guide Content Styling */
.guide-content {
    max-width: 850px;
    margin: 0 auto;
}

.guide-header {
    margin-bottom: 4rem;
}

.guide-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

#guideBody {
    font-size: 1.15rem;
    color: #d1d1d1;
    line-height: 1.8;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .sidebar { width: 260px; }
    .content-area { padding: 3rem; }
}

@media (max-width: 768px) {
    .guide-center .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        background: #0a0a0a;
    }

    .sidebar-section:last-child {
        display: none; /* Hide the vertical list on mobile */
    }

    .sidebar-section {
        margin-bottom: 0;
    }

    #categoryList {
        display: flex;
        overflow-x: auto;
        gap: 0.8rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    #categoryList::-webkit-scrollbar {
        display: none;
    }

    #categoryList li {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.6rem 1.2rem;
        background: #161616;
        border: 1px solid var(--border);
        margin-bottom: 0;
    }

    .content-area {
        padding: 2rem 1.5rem;
    }

    .hero-mini h1 {
        font-size: 2.2rem;
    }

    .guide-header h1 {
        font-size: 2.5rem;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    header nav {
        flex-wrap: wrap;
        padding: 1rem 1.5rem;
    }

    .search-container {
        margin: 1rem 0 0;
        order: 3;
        width: 100%;
    }
}
