/**
 * BornCity Child Theme - Custom Styles
 *
 * Color palette overrides and custom component styling
 */

/* ========================================
   COLOR PALETTE OVERRIDES
   ======================================== */
:root {
    --theme-palette-color-1: #0066FF !important;
    --theme-palette-color-2: #1A1A2E !important;
    --theme-palette-color-3: #16213E !important;
    --theme-palette-color-4: #4A5568 !important;
    --theme-palette-color-5: #718096 !important;
    --theme-palette-color-6: #E2E8F0 !important;
    --theme-palette-color-7: #F7FAFC !important;
    --theme-palette-color-8: #FFFFFF !important;
}

/* ========================================
   ARCHIVE HERO - Light Design Override
   Targets Greenshift blocks on category/author pages
   ======================================== */

/* Override Greenshift dark hero blocks on archive pages */
body.archive .wp-block-greenshift-blocks-row.alignfull,
body.category .wp-block-greenshift-blocks-row.alignfull,
body.author .wp-block-greenshift-blocks-row.alignfull {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

/* Text colors for light background */
body.archive .wp-block-greenshift-blocks-row.alignfull h1,
body.archive .wp-block-greenshift-blocks-row.alignfull h2,
body.archive .wp-block-greenshift-blocks-row.alignfull h3,
body.category .wp-block-greenshift-blocks-row.alignfull h1,
body.category .wp-block-greenshift-blocks-row.alignfull h2,
body.category .wp-block-greenshift-blocks-row.alignfull h3,
body.author .wp-block-greenshift-blocks-row.alignfull h1,
body.author .wp-block-greenshift-blocks-row.alignfull h2,
body.author .wp-block-greenshift-blocks-row.alignfull h3 {
    color: var(--theme-palette-color-2) !important;
}

body.archive .wp-block-greenshift-blocks-row.alignfull p,
body.archive .wp-block-greenshift-blocks-row.alignfull span,
body.category .wp-block-greenshift-blocks-row.alignfull p,
body.category .wp-block-greenshift-blocks-row.alignfull span,
body.author .wp-block-greenshift-blocks-row.alignfull p,
body.author .wp-block-greenshift-blocks-row.alignfull span {
    color: var(--theme-palette-color-4) !important;
}

/* Breadcrumbs styling */
body.archive .wp-block-greenshift-blocks-row.alignfull .ct-breadcrumbs a,
body.archive .wp-block-greenshift-blocks-row.alignfull nav a,
body.category .wp-block-greenshift-blocks-row.alignfull .ct-breadcrumbs a,
body.category .wp-block-greenshift-blocks-row.alignfull nav a,
body.author .wp-block-greenshift-blocks-row.alignfull .ct-breadcrumbs a,
body.author .wp-block-greenshift-blocks-row.alignfull nav a {
    color: var(--theme-palette-color-4) !important;
}

body.archive .wp-block-greenshift-blocks-row.alignfull .ct-breadcrumbs a:hover,
body.archive .wp-block-greenshift-blocks-row.alignfull nav a:hover,
body.category .wp-block-greenshift-blocks-row.alignfull .ct-breadcrumbs a:hover,
body.category .wp-block-greenshift-blocks-row.alignfull nav a:hover,
body.author .wp-block-greenshift-blocks-row.alignfull .ct-breadcrumbs a:hover,
body.author .wp-block-greenshift-blocks-row.alignfull nav a:hover {
    color: var(--theme-palette-color-1) !important;
}

/* Hide redundant Blocksy hero-section on category pages */
body.category .hero-section {
    display: none !important;
}

/* Hide share buttons and "Teilen" section on archive pages */
body.archive .ct-share-box,
body.category .ct-share-box,
body.author .ct-share-box,
body.archive [class*="gspb_col-id-gsbp-702ebdd5"],
body.category [class*="gspb_col-id-gsbp-702ebdd5"],
body.author [class*="gspb_col-id-gsbp-702ebdd5"] {
    display: none !important;
}

/* Mobile responsive adjustments */
@media (max-width: 689.98px) {
    /* Fix Blocksy grid overflow on single posts with sidebar */
    /* Blocksy incorrectly calculates grid column width > container width */
    [data-prefix="single_blog_post"] .ct-container[data-sidebar] {
        display: block !important;
    }

    /* Ensure article respects container width */
    [data-prefix="single_blog_post"] article.bc-article {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px;
    }

    /* Hide sidebar on mobile single posts (Blocksy default behavior) */
    [data-prefix="single_blog_post"] .ct-container[data-sidebar] > .ct-sidebar {
        display: none !important;
    }

     :root {
        --theme-content-vertical-spacing: 20px;
        --theme-container-edge-spacing: 95vw;
    }
}