/**
 * Content Block — Static Styles v3.6.
 *
 * Layout, typography, media styles (cacheable).
 * Dynamic CSS (preset, color scheme, buttons) in render.php.
 *
 * @package Boost Theme Framework
 * @since 3.6.0
 */

/* /blocks/content/style.css */

/* =============================================================================
   BASE
   ============================================================================= */

.boost-content {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

.boost-content__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* =============================================================================
   LAYOUT: GRID (two-column)
   ============================================================================= */

.boost-content__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* =============================================================================
   CONTENT STYLES (BEM Modifiers)
   ============================================================================= */

/* Boxed Style */
.boost-content--style-boxed .boost-content__container {
    background: var(--boost-card-bg);
    border-radius: 20px;
    padding: 3.5rem 4rem;
    box-shadow: 0 10px 40px var(--boost-shadow-color, rgba(0, 0, 0, 0.08));
}

/* Boxed + media grid: move box styling to text column only, free the image. */
.boost-content--style-boxed:has(.boost-content__grid) .boost-content__container {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.boost-content--style-boxed .boost-content__grid .boost-content__text {
    background: var(--boost-card-bg);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 10px 40px var(--boost-shadow-color, rgba(0, 0, 0, 0.08));
}

/* Split Style */
.boost-content--style-split .boost-content__container {
    padding: 4rem 3rem 4rem 3.5rem;
    border-left: 4px solid var(--boost-primary, var(--boost-accent));
    background: linear-gradient(90deg, rgba(var(--boost-primary-rgb, var(--boost-accent-rgb, 59, 130, 246)), 0.04) 0%, transparent 40%);
    border-radius: 0 16px 16px 0;
}

/* Split + media grid: move split styling to text column only, free the image. */
.boost-content--style-split:has(.boost-content__grid) .boost-content__container {
    border-left: none;
    background: none;
    border-radius: 0;
    padding: 0;
}

.boost-content--style-split .boost-content__grid .boost-content__text {
    padding: 2.5rem 2rem 2.5rem 2.5rem;
    border-left: 4px solid var(--boost-primary, var(--boost-accent));
    background: linear-gradient(180deg, rgba(var(--boost-primary-rgb, var(--boost-accent-rgb, 59, 130, 246)), 0.04) 0%, transparent 60%);
    border-radius: 0 16px 16px 0;
}

/* Overlap Style - decorative element */
.boost-content--style-overlap::before {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(var(--boost-accent-rgb, 37, 99, 235), 0.12), rgba(var(--boost-accent-rgb, 37, 99, 235), 0.05));
    border-radius: 50%;
    pointer-events: none;
}

.boost-content--style-overlap.boost-content--layout-centered::before {
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
}

.boost-content--style-overlap.boost-content--layout-left::before,
.boost-content--style-overlap.boost-content--layout-right::before {
    top: -20%;
    width: 70%;
    height: 140%;
}

.boost-content--style-overlap.boost-content--layout-left::before {
    right: -20%;
}

.boost-content--style-overlap.boost-content--layout-right::before {
    left: -20%;
}

/* =============================================================================
   TEXT CONTENT
   ============================================================================= */

.boost-content__text {
    position: relative;
}

.boost-content--layout-centered .boost-content__text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Badge - uses standard .boost-badge component */
.boost-content .boost-badge {
    margin-bottom: 1rem;
}

/* Title */
.boost-content__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--boost-text);
    margin: 0 0 1rem;
}

/* Subtitle */
.boost-content__subtitle {
    font-size: 1.125rem;
    color: var(--boost-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.boost-content--layout-centered .boost-content__subtitle {
    color: var(--boost-accent, var(--boost-primary));
    font-weight: 600;
}

/* Body Text */
.boost-content__body {
    font-size: 1rem;
    color: var(--boost-text);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

/* =============================================================================
   LIST ITEMS
   ============================================================================= */

.boost-content__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.boost-content__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--boost-text);
}

.boost-content__list-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Default simple icon container */
    width: 24px;
    height: 24px;
    background: rgba(var(--boost-accent-rgb, 37, 99, 235), 0.1);
    color: var(--boost-accent, var(--boost-primary));
    border-radius: 50%;
    
    /* Override styled icon dimensions - keep compact in list */
    --boost-icon-circle-size: 28px;
    --boost-icon-circle-icon-size: 14px;
    --icon-container-size: 28px;
    --icon-size: 14px;
}

/* Reset background when using styled icon (it has its own) */
.boost-content__list-icon:has(.boost-icon-circle),
.boost-content__list-icon:has(.boost-styled-icon) {
    background: transparent;
    width: auto;
    height: auto;
}

/* Force compact size for styled icons in list */
.boost-content__list-icon .boost-styled-icon {
    --icon-container-size: 28px !important;
    --icon-size: 14px !important;
}

/* Centered layout list (replaced inline style). */
.boost-content__list--centered {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.boost-content__items {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.boost-content__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--boost-text);
}

.boost-content__item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--boost-accent, var(--boost-primary));
}

.boost-content__item-icon svg {
    width: 100%;
    height: 100%;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.boost-content__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.boost-content--layout-centered .boost-content__buttons {
    justify-content: center;
}

/* Buttons - use standard .boost-btn component */

/* =============================================================================
   MEDIA
   ============================================================================= */

.boost-content__media {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.boost-content--layout-centered .boost-content__media {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.boost-content__media img,
.boost-content__media video,
.boost-content__media iframe {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .boost-content {
        padding: 2.5rem 1rem;
    }

    .boost-content__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .boost-content--style-boxed .boost-content__container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    /* Boxed + grid: adjust text-column box on mobile. */
    .boost-content--style-boxed .boost-content__grid .boost-content__text {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .boost-content--style-split .boost-content__container {
        padding: 2rem 1.5rem 2rem 2rem;
    }

    /* Split + grid: adjust text-column split on mobile. */
    .boost-content--style-split .boost-content__grid .boost-content__text {
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }
    
    .boost-content__buttons {
        flex-direction: column;
    }
    
    .boost-content .boost-btn {
        justify-content: center;
    }
    
    .boost-content--layout-centered .boost-content__media {
        margin-top: 2rem;
    }
}