/* ============================================================================
   Shared Styles for SEO New Blocks (bobex-seo-new-blocks-handoff-1)
   
   Design tokens and shared components for all premium blocks in this set.
   ============================================================================ */

/* ─── Typography ─────────────────────────────────────────────────────────── */
/* Montserrat: headings, titles, labels, step numbers, CTA buttons */
/* Roboto: body copy, descriptions, list items, intro text */
/* Both loaded site-wide via theme */

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
    /* Brand colors */
    --bobex-color-primary: #2878C8;
    --bobex-color-primary-dark: #0D4785;
    --bobex-color-primary-light: #f0f7fc;
    --bobex-color-surface-blue: #e8f4fc;
    
    /* NEW ORANGE - Updated accent color */
    --bobex-color-accent: #e55a2b;
    --bobex-color-accent-dark: #e13c0e;
    
    /* Pros/Cons colors */
    --bobex-color-pros-badge: #22c55e;
    --bobex-color-pros-bg: #f0fdf4;
    --bobex-color-pros-title: #166534;
    
    --bobex-color-cons-badge: #ef4444;
    --bobex-color-cons-bg: #fef2f2;
    --bobex-color-cons-title: #991b1b;
    
    /* Text & UI */
    --bobex-color-heading: #1A1A1A;
    --bobex-color-body: #4b5563;
    --bobex-color-border: #e5e7eb;
    --bobex-color-link-on-tint: #1e6bb8;
    
    /* Border radius */
    --bobex-radius-md: 12px;
    --bobex-radius-sm: 8px;
    --bobex-radius-full: 9999px;
    
    /* Shadows */
    --bobex-shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
    --bobex-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --bobex-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --bobex-shadow-accent: 0 4px 15px rgba(229, 90, 43, 0.4);
    --bobex-shadow-accent-hover: 0 6px 20px rgba(229, 90, 43, 0.5);
    
    /* Gradients */
    --bobex-gradient-brand-blue: linear-gradient(to right, #2878C8, #0D4785);
    --bobex-gradient-brand: linear-gradient(to right, #2878C8, #0D4785); /* Alias */
    --bobex-gradient-light: linear-gradient(to right, #f0f7fc, #e8f4fc);
    --bobex-gradient-cta-button: linear-gradient(to right, #e55a2b, #e13c0e);
    
    /* Color aliases for easier use */
    --bobex-brand-blue: #2878C8;
    --bobex-text-primary: #4b5563;
    
    /* Fonts */
    --bobex-font-heading: 'Montserrat', sans-serif;
    --bobex-font-body: 'Roboto', sans-serif;
}

/* ─── Utility Classes ──────────────────────────────────────────────────────── */

.bobex-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;
}

/* ─── Orange Button (New Accent) ───────────────────────────────────────────── */

.bobex-orange-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bobex-gradient-cta-button);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: var(--bobex-radius-full);
    box-shadow: var(--bobex-shadow-accent);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.bobex-orange-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--bobex-shadow-accent-hover);
    color: #fff;
    text-decoration: none;
}

.bobex-orange-button:focus-visible {
    outline: none;
    box-shadow: var(--bobex-shadow-accent), 0 0 0 2px #fff, 0 0 0 4px var(--bobex-color-primary-dark);
}

/* Button sizes */
.bobex-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.bobex-btn-md {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.bobex-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .bobex-btn-md {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .bobex-btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Disable transitions when prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .bobex-orange-button {
        transition: none;
    }
    
    .bobex-orange-button:hover {
        transform: none;
    }
}

/* ─── Icon Sizing ──────────────────────────────────────────────────────────── */

.bobex-icon {
    width: 2.5rem;
    height: 2.5rem;
}

.bobex-icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.bobex-icon-xs {
    width: 1rem;
    height: 1rem;
}

/* ─── Tag-Agnostic Title Styling ──────────────────────────────────────────── */
/* All titles (p/h2/h3/h4) must look pixel-identical */

.bobex-block-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--bobex-color-heading) !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

@media (min-width: 768px) {
    .bobex-block-title {
        font-size: 1.75rem !important;
    }
}

/* Title on gradient backgrounds */
.bobex-block-title--on-gradient {
    color: #fff !important;
}

/* Inline label for light variants */
.bobex-inline-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline;
}

/* ─── Body Text Styling ────────────────────────────────────────────────────── */

.bobex-body-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--bobex-color-body);
}

.bobex-body-text--on-gradient {
    color: rgba(255, 255, 255, 0.85);
}

.bobex-body-text strong {
    font-weight: 700;
}

.bobex-body-text a {
    color: inherit;
    text-decoration: underline;
}

.bobex-body-text a:hover {
    text-decoration: none;
}

/* Links on gradient backgrounds */
.bobex-body-text--on-gradient a {
    color: #fff;
}

/* Links on light tints (pros/cons/light variants) */
.bobex-body-text--on-tint a {
    color: var(--bobex-color-link-on-tint);
}

/* ─── Card Container Base ──────────────────────────────────────────────────── */

.bobex-card {
    background: #fff;
    border-radius: var(--bobex-radius-md);
    box-shadow: var(--bobex-shadow-card);
    overflow: hidden;
}

/* ─── Number Circles ───────────────────────────────────────────────────────── */

.bobex-number-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--bobex-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Number circle with gradient background */
.bobex-number-circle--gradient {
    background: var(--bobex-gradient-brand-blue);
    color: #fff;
}

/* Number circle on gradient (white/15 background) */
.bobex-number-circle--on-gradient {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ─── Icon Badge (Pros/Cons) ───────────────────────────────────────────────── */

.bobex-icon-badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--bobex-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .bobex-icon-badge {
        width: 2rem;
        height: 2rem;
    }
}

.bobex-icon-badge--pros {
    background: var(--bobex-color-pros-badge);
    color: #fff;
}

.bobex-icon-badge--cons {
    background: var(--bobex-color-cons-badge);
    color: #fff;
}

/* ─── List Styling ─────────────────────────────────────────────────────────── */

.bobex-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bobex-list-item {
    display: flex;
    gap: 0.75rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.bobex-list-item:not(:last-child) {
    margin-bottom: 1rem;
}

/* ─── Responsive Helpers ───────────────────────────────────────────────────── */

@media (max-width: 767px) {
    .bobex-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .bobex-hide-desktop {
        display: none !important;
    }
}
