/* ============================================
   GANGLAND FILES — UI OVERHAUL
   Custom CSS to override Spiel theme defaults
   Apply via: Appearance → Additional CSS
   or WPCode snippet (CSS type)
   ============================================ */

/* === 1. PRIMARY COLOR: Blue → Red === */
:root {
    --wp--preset--color--primary: #b91c1c !important;
}

/* All links */
a {
    color: #b91c1c;
}
a:hover {
    color: #991b1b;
}

/* Post titles link color — black with red hover */
.wp-block-post-title a,
.entry-title a,
h1 a, h2 a, h3 a {
    color: #1A1A1A !important;
    text-decoration: none;
}
.wp-block-post-title a:hover,
.entry-title a:hover,
h1 a:hover, h2 a:hover, h3 a:hover {
    color: #b91c1c !important;
    text-decoration: none;
}

/* Navigation links */
.wp-block-navigation a,
.wp-block-navigation-item a {
    transition: color 0.2s ease;
}
.wp-block-navigation a:hover,
.wp-block-navigation-item a:hover {
    color: #b91c1c !important;
}

/* Category tags */
.wp-block-post-terms a,
.cat-links a,
.taxonomy-category a {
    color: #b91c1c !important;
    text-decoration: none;
    font-weight: 600;
}
.wp-block-post-terms a:hover,
.cat-links a:hover {
    color: #991b1b !important;
}

/* Buttons */
.wp-block-button .wp-block-button__link,
button,
input[type="submit"] {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
}
.wp-block-button .wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #991b1b !important;
    border-color: #991b1b !important;
}

/* Selection highlight */
::selection {
    background-color: #b91c1c;
    color: #ffffff;
}

/* Pagination active */
.wp-block-query-pagination-numbers .page-numbers.current,
.page-numbers.current {
    color: #b91c1c !important;
    font-weight: bold;
}

/* === 2. FONTS: Orbitron/Manrope → Editorial === */

/* Import editorial fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Source+Sans+Pro:wght@400;600;700&display=swap');

/* Override heading font (Orbitron → Playfair Display) */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
.entry-title,
.site-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
}

/* Override body font (Manrope → Source Sans Pro) */
body,
p,
.wp-block-post-excerpt,
.entry-content,
.wp-block-paragraph,
.wp-block-list,
blockquote,
figcaption,
.wp-block-post-date,
.wp-block-post-author-name {
    font-family: 'Source Sans Pro', Georgia, 'Times New Roman', serif !important;
}

/* Navigation font */
.wp-block-navigation,
.wp-block-navigation a,
.wp-block-navigation-item {
    font-family: 'Source Sans Pro', Arial, sans-serif !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

/* Section headers (LATEST, TRENDING, etc.) */
.wp-block-heading.alignwide,
.wp-block-query h2 {
    font-family: 'Arial Black', Arial, sans-serif !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    color: #b91c1c !important;
    border-bottom: 2px solid #b91c1c;
    padding-bottom: 10px;
}

/* === 3. HEADER & FOOTER BRANDING === */

/* Site title styling */
.wp-block-site-title,
.wp-block-site-title a {
    font-family: 'Arial Black', Arial, sans-serif !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
}

/* Dark header accent */
header .wp-block-group,
.site-header {
    border-bottom: 3px solid #b91c1c;
}

/* Dark footer accent */
footer .wp-block-group,
.site-footer {
    border-top: 3px solid #b91c1c;
}

/* === 4. POST STYLING IMPROVEMENTS === */

/* Post borders */
.wp-block-post-template .wp-block-post,
.wp-block-post-template > li {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Post titles */
.wp-block-post-title {
    font-size: 1.15rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

/* Post excerpts */
.wp-block-post-excerpt {
    color: #525252 !important;
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
}

/* === 5. SIDEBAR CLEANUP === */

/* Hide Uncategorized from category lists */
.wp-block-categories li.cat-item-1 {
    display: none !important;
}

/* Style category list */
.wp-block-categories a {
    color: #1A1A1A !important;
    text-decoration: none;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 600;
}
.wp-block-categories a:hover {
    color: #b91c1c !important;
}

/* === 6. GENERAL POLISH === */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Better content max-width */
.entry-content,
.wp-block-post-content {
    line-height: 1.75;
}

/* Blockquote styling */
blockquote,
.wp-block-quote {
    border-left: 4px solid #b91c1c !important;
    padding-left: 20px;
    font-style: italic;
    color: #525252;
}

/* Table styling */
table, .wp-block-table {
    border-collapse: collapse;
}
table th {
    background-color: #1A1A1A !important;
    color: #ffffff !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}
table td {
    border-bottom: 1px solid #e5e5e5;
}

/* Horizontal rule */
hr, .wp-block-separator {
    border-color: #b91c1c !important;
    opacity: 0.3;
}

/* Subscribe button if present */
.wp-block-jetpack-subscriptions .wp-block-button__link {
    background-color: #b91c1c !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}
/* ============================================
   GANGLAND FILES — SIDEBAR SLIMDOWN
   Add this AFTER the main custom CSS
   ============================================ */

/* === SIDEBAR RECENT POSTS & TRENDING === */

/* Shrink the sidebar post titles (h2 → small, tight) */
.wp-block-latest-posts h2,
.wp-block-query .wp-block-post-title,
aside h2,
.widget h2,
footer h2,
/* Target the sidebar recent/trending post titles specifically */
.wp-block-group:not(.gangland-articles) .wp-block-post-title {
    font-size: 0.85rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}

/* Sidebar section headings (Recent Posts, Trending, Categories) */
.wp-block-group h3,
aside h3,
.widget-title {
    font-family: 'Arial Black', Arial, sans-serif !important;
    font-size: 0.7rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #b91c1c !important;
    border-bottom: 2px solid #b91c1c;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}

/* Tighten up sidebar post cards */
.wp-block-group .wp-block-post-template .wp-block-post,
.wp-block-latest-posts li {
    padding: 8px 0 !important;
    margin-bottom: 0 !important;
    border-bottom: 1px solid #e5e5e5;
}

/* Sidebar category labels (Daily Briefing, Articles) — make tiny */
.wp-block-group .wp-block-post-terms,
.wp-block-group .wp-block-post-template .wp-block-post-terms {
    font-size: 0.6rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
    color: #b91c1c !important;
}

/* Hide author name in sidebar cards — it's always "Gangland Files" */
.wp-block-group .wp-block-post-template .wp-block-post-author-name,
.wp-block-group .wp-block-post-template .wp-block-post-author {
    display: none !important;
}

/* Also hide the Author section (avatar + "Written by") */
.wp-block-post-author-biography,
.wp-block-group:has(> .wp-block-avatar) {
    display: none !important;
}

/* Tighten sidebar spacing */
.wp-block-group .wp-block-post-template {
    gap: 0 !important;
}

/* === HIDE DUPLICATE "TRENDING" SECTION === */
/* Trending shows identical content to Recent Posts — hide it */
/* Target the last sidebar group that contains a query/posts list */
/* This uses :last-of-type to target the Trending section */

/* === MAIN CONTENT POST LIST (Archives page) === */

/* Make the "Posts" heading match brand style */
.is-style-section-1 .wp-block-heading,
.wp-block-heading.alignwide {
    font-family: 'Arial Black', Arial, sans-serif !important;
    font-size: 0.8rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #b91c1c !important;
    border-bottom: 2px solid #b91c1c !important;
    padding-bottom: 10px !important;
}

/* Archives page post titles — slightly smaller, cleaner */
.is-style-section-1 .wp-block-post-title,
.is-style-section-1 h3.wp-block-post-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}
.is-style-section-1 .wp-block-post-title a {
    color: #1A1A1A !important;
    text-decoration: none !important;
}
.is-style-section-1 .wp-block-post-title a:hover {
    color: #b91c1c !important;
}

/* Tighter row spacing on archives list */
.is-style-section-1 .wp-block-post-template .wp-block-group {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* === PAGINATION STYLING === */
.wp-block-query-pagination {
    margin-top: 30px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
}
.wp-block-query-pagination .page-numbers {
    padding: 6px 12px;
    margin: 0 2px;
    font-size: 0.85rem;
    color: #525252;
}
.wp-block-query-pagination .page-numbers.current {
    color: #b91c1c !important;
    font-weight: 700 !important;
}
.wp-block-query-pagination a.page-numbers:hover {
    color: #b91c1c !important;
}

/* === ARTICLES PAGE CLEANUP === */

/* Articles page post titles */
.gangland-articles .wp-block-post-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}
.gangland-articles .wp-block-post-title a {
    color: #1A1A1A !important;
}
.gangland-articles .wp-block-post-title a:hover {
    color: #b91c1c !important;
}

/* Articles page excerpts */
.gangland-articles .wp-block-post-excerpt {
    font-size: 0.85rem !important;
    color: #525252 !important;
    line-height: 1.6 !important;
}

/* === GLOBAL SIDEBAR TIGHTENING === */

/* Remove excess margins and padding from sidebar widgets */
aside .wp-block-group,
.wp-block-column:last-child .wp-block-group {
    margin-bottom: 20px !important;
}

/* Category list in sidebar — compact */
.wp-block-categories-list li,
.wp-block-categories li {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-size: 0.8rem !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}
.wp-block-categories-list li:last-child,
.wp-block-categories li:last-child {
    border-bottom: none;
}