/**
 * PC Kompas Guides - Base Styles & Typography
 *
 * Base typography, containers, variables, and utility classes
 */

/* ============================================================================
   ARCHIVE PAGE LAYOUT
   ============================================================================ */

.guides-archive {
    padding: 24px 0 80px !important;
    background: var(--bg-primary);
}

.guides-archive > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px !important;
}

.guides-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    padding-bottom: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: clamp(1.25rem, 2.5vw, 1.5rem);
    border-bottom: 2px solid var(--accent);
}

.guides-header h1,
.guides-header__title {
    font-size: clamp(1.625rem, 3vw + 0.25rem, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.guides-header p,
.guides-header__subtitle {
    font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1.0625rem);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
}

/* Breadcrumb styles are in theme-vars.css */

/* ============================================================================
   SINGLE GUIDE PAGE - CONTAINER
   ============================================================================ */

.guide-single {
    margin: 0;
    padding: 24px 0 80px;
    background: var(--bg-primary);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

[x-cloak] {
    display: none !important;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================================================
   LOADING & EMPTY STATES
   ============================================================================ */

.guides-loading,
.guides-empty {
    text-align: center;
    padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2rem);
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        border-top-color: var(--border);
    }
}

.guides-empty h3 {
    font-size: clamp(1.1rem, 1.5vw + 0.5rem, 1.35rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.guides-empty p {
    margin: 0 0 1.5rem;
    font-size: clamp(0.875rem, 1.25vw + 0.25rem, 1rem);
}
