/* =========================================
   СОКОРР Кузница — Custom CSS overrides
   Minimal — most styling via Tailwind
   ========================================= */

/* WordPress pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #9ca3af;
    background: #0e1526;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers.current {
    background: #fcc511;
    color: #070a13;
    border-color: transparent;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    width: auto;
    padding: 0 1rem;
}

/* WordPress admin bar fix */
body.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
}

/* Prose overrides for dark theme */
.prose a,
.prose-invert a,
.prose a.text-brand-yellow,
a.text-brand-yellow.hover\:underline {
    color: #fcc511 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(252, 197, 17, 0.4);
    transition: all 0.2s;
}

.prose a:hover,
.prose-invert a:hover,
a.text-brand-yellow.hover\:underline:hover {
    color: #fff !important;
    text-decoration-color: #fcc511;
    background: rgba(252, 197, 17, 0.1);
    border-radius: 2px;
    padding: 0 2px;
    margin: 0 -2px;
}

.prose-invert table {
    border-color: rgba(255, 255, 255, 0.05);
}

.prose-invert th {
    background: #0e1526;
    color: #f3f4f6;
}

.prose-invert td {
    border-color: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Missing Tailwind grid utilities
   ========================================= */
@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-8 { grid-column: span 8 / span 8; }
    .lg\:col-span-4 { grid-column: span 4 / span 4; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-9 { grid-column: span 9 / span 9; }
}

/* =========================================
   Prose base (Tailwind Typography not compiled)
   ========================================= */
.prose {
    color: #9ca3af;
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
}
.prose > * + * { margin-top: 1.25em; }
.prose p { margin-bottom: 1em; }
.prose h2, .prose h3, .prose h4 { color: #f3f4f6; font-weight: 700; }
.prose a { color: #fcc511; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: #f3f4f6; font-weight: 700; }
.prose ul { list-style: disc; padding-left: 1.5em; }
.prose ol { list-style: decimal; padding-left: 1.5em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { border-left: 4px solid #fcc511; padding-left: 1em; font-style: italic; color: #9ca3af; }
.prose img { border-radius: 0.75rem; max-width: 100%; height: auto; }
.prose-invert { color: #9ca3af; }
.prose.max-w-none { max-width: none; }
.prose.max-w-3xl { max-width: 48rem; }

/* =========================================
   Service/Product content typography
   ========================================= */

/* H2 in service/product content — yellow left border */
.prose-invert h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #fcc511;
    line-height: 1.3;
}

.prose-invert h2:first-child {
    margin-top: 0;
}

/* H3 in content */
.prose-invert h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Lists with yellow markers */
.prose-invert ul {
    list-style: none;
    padding-left: 0;
}

.prose-invert ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose-invert ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: #fcc511;
    border-radius: 2px;
    transform: rotate(45deg);
}

/* Bold text in lists stands out */
.prose-invert ul li strong,
.prose-invert ol li strong {
    color: #f3f4f6;
    font-weight: 700;
}

/* Paragraphs spacing */
.prose-invert p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* Last H2 (CTA section) — special accent */
.prose-invert h2:last-of-type {
    background: rgba(252, 197, 17, 0.05);
    border-left: 4px solid #fcc511;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 0.75rem 1rem;
}

/* =========================================
   Category Hero H1 — fluid responsive
   ========================================= */
.cat-hero-h1 {
    font-size: clamp(2rem, 5.5vw, 3.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    word-break: break-word;
}

/* =========================================
   Section titles — responsive sizing
   ========================================= */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.2;
    word-break: break-word;
}

/* Gallery thumb active state */
.gallery-thumb.border-brand-yellow {
    border-color: #fcc511 !important;
}

/* Print styles */
@media print {
    header, footer, .sokorr-modal, .fab, button {
        display: none !important;
    }
    main {
        padding-top: 0 !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
