/**
 * Shared Button Components
 *
 * Centralized button styles used by: hero, cta, pricing, features, and all blocks.
 * Uses CSS vars from block-themes.css for theme-awareness.
 *
 * @package BoostThemeFramework\Components
 */

/* /assets/css/components/buttons.css */

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

.boost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.boost-btn:focus-visible {
    outline: 2px solid var(--boost-btn-primary-bg, #7C3AED);
    outline-offset: 2px;
}

/* =============================================================================
   PRIMARY BUTTON
   ============================================================================= */

.boost-btn--primary {
    background: var(--boost-btn-primary-bg, linear-gradient(135deg, #7C3AED, #EC4899));
    color: var(--boost-btn-primary-text, #ffffff);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
}

.boost-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.boost-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

/* =============================================================================
   SECONDARY BUTTON
   ============================================================================= */

.boost-btn--secondary {
    background: var(--boost-btn-secondary-bg, transparent);
    color: var(--boost-btn-secondary-text, #7C3AED);
    border: 2px solid var(--boost-btn-secondary-border, #7C3AED);
}

.boost-btn--secondary:hover {
    transform: translateY(-2px);
    background: var(--boost-btn-secondary-border, #7C3AED);
    color: var(--boost-btn-primary-text, #ffffff);
}

.boost-btn--secondary:active {
    transform: translateY(0);
}

/* =============================================================================
   GHOST BUTTON (text only)
   ============================================================================= */

.boost-btn--ghost {
    background: transparent;
    color: var(--boost-text, #0f172a);
    padding: 0.75rem 1rem;
}

.boost-btn--ghost:hover {
    background: var(--boost-card-bg, rgba(0,0,0,0.05));
}

/* =============================================================================
   SIZE VARIANTS
   ============================================================================= */

.boost-btn--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

.boost-btn--lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

.boost-btn--xl {
    padding: 1.5rem 3rem;
    font-size: 1.25rem;
    border-radius: 16px;
}

/* =============================================================================
   FULL WIDTH
   ============================================================================= */

.boost-btn--full {
    width: 100%;
}

/* =============================================================================
   WITH ICON
   ============================================================================= */

.boost-btn svg,
.boost-btn .boost-icon-svg {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

.boost-btn--icon-only {
    padding: 1rem;
    aspect-ratio: 1;
}

/* =============================================================================
   BUTTON GROUP
   ============================================================================= */

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

.boost-btn-group--center {
    justify-content: center;
}

.boost-btn-group--stack {
    flex-direction: column;
}

@media (max-width: 640px) {
    .boost-btn-group--stack-mobile {
        flex-direction: column;
    }
    
    .boost-btn-group--stack-mobile .boost-btn {
        width: 100%;
    }
}

/* =============================================================================
   LOADING STATE
   ============================================================================= */

.boost-btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.boost-btn--loading::after {
    content: '';
    position: absolute;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: boost-btn-spin 0.6s linear infinite;
}

@keyframes boost-btn-spin {
    to { transform: rotate(360deg); }
}

/* =============================================================================
   DISABLED STATE
   ============================================================================= */

.boost-btn:disabled,
.boost-btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
/**
 * Shared Badge Components
 *
 * Centralized badge/pill styles used by: hero, features, cta, announcement, etc.
 * Uses CSS vars from block-themes.css for theme-awareness.
 *
 * @package BoostThemeFramework\Components
 */

/* /assets/css/components/badges.css */

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

.boost-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    background: var(--boost-badge-bg, rgba(124, 58, 237, 0.1));
    color: var(--boost-badge-text, #7C3AED);
    border-radius: 50px;
    white-space: nowrap;
}

/* =============================================================================
   SIZE VARIANTS
   ============================================================================= */

.boost-badge--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.boost-badge--lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
}

/* =============================================================================
   STYLE VARIANTS
   ============================================================================= */

/* Solid background */
.boost-badge--solid {
    background: var(--boost-btn-primary-bg, linear-gradient(135deg, #7C3AED, #EC4899));
    color: #ffffff;
}

/* Outlined */
.boost-badge--outlined {
    background: transparent;
    border: 1px solid var(--boost-badge-text, #7C3AED);
}

/* Glass effect */
.boost-badge--glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--boost-text, #ffffff);
}

/* =============================================================================
   STATUS COLORS
   ============================================================================= */

.boost-badge--success {
    --boost-badge-bg: rgba(16, 185, 129, 0.1);
    --boost-badge-text: #10b981;
}

.boost-badge--warning {
    --boost-badge-bg: rgba(245, 158, 11, 0.1);
    --boost-badge-text: #f59e0b;
}

.boost-badge--error {
    --boost-badge-bg: rgba(239, 68, 68, 0.1);
    --boost-badge-text: #ef4444;
}

.boost-badge--info {
    --boost-badge-bg: rgba(59, 130, 246, 0.1);
    --boost-badge-text: #3b82f6;
}

/* =============================================================================
   WITH ICON
   ============================================================================= */

.boost-badge svg,
.boost-badge .boost-icon-svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* =============================================================================
   ANIMATED DOT (pulse indicator)
   ============================================================================= */

.boost-badge--dot::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: currentColor;
    border-radius: 50%;
    animation: boost-badge-pulse 2s ease-in-out infinite;
}

@keyframes boost-badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* =============================================================================
   BADGE GROUP
   ============================================================================= */

.boost-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
/**
 * Shared Card Components
 *
 * Centralized card styles used by: features, pricing, team, testimonials, etc.
 * Uses CSS vars from block-themes.css for theme-awareness.
 *
 * @package BoostThemeFramework\Components
 */

/* /assets/css/components/cards.css */

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

.boost-card {
    position: relative;
    background: var(--boost-card-bg, #ffffff);
    border: 1px solid var(--boost-card-border, #e2e8f0);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* =============================================================================
   HOVER EFFECTS
   ============================================================================= */

.boost-card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--boost-card-shadow, 0 10px 40px rgba(0, 0, 0, 0.1));
}

.boost-card--hover-glow:hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
}

.boost-card--hover-scale:hover {
    transform: scale(1.02);
}

/* =============================================================================
   SIZE VARIANTS
   ============================================================================= */

.boost-card--sm {
    padding: 1.5rem;
    border-radius: 12px;
}

.boost-card--lg {
    padding: 2.5rem;
    border-radius: 20px;
}

.boost-card--xl {
    padding: 3rem;
    border-radius: 24px;
}

/* =============================================================================
   STYLE VARIANTS
   ============================================================================= */

/* No border, shadow only */
.boost-card--elevated {
    border: none;
    box-shadow: var(--boost-card-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
}

/* Minimal - border only, no bg */
.boost-card--minimal {
    background: transparent;
}

/* Glass effect */
.boost-card--glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Bordered with visible border */
.boost-card--bordered {
    border-width: 2px;
}

/* =============================================================================
   CARD HEADER
   ============================================================================= */

.boost-card__header {
    margin-bottom: 1.5rem;
}

.boost-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--boost-icon-bg, linear-gradient(135deg, #7C3AED, #EC4899));
    color: var(--boost-icon-color, #ffffff);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.boost-card__icon svg,
.boost-card__icon .boost-icon-svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Icon style variants */
.boost-card__icon--outlined {
    background: var(--boost-icon-outlined-bg, transparent);
    border: 2px solid var(--boost-icon-outlined-border, #7C3AED);
    color: var(--boost-icon-outlined-color, #7C3AED);
}

.boost-card__icon--filled {
    background: var(--boost-icon-filled-bg, rgba(124, 58, 237, 0.1));
    color: var(--boost-icon-filled-color, #7C3AED);
}

.boost-card__icon--none {
    display: none;
}

/* =============================================================================
   CARD BODY
   ============================================================================= */

.boost-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--boost-text, #0f172a);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.boost-card__description {
    font-size: 1rem;
    color: var(--boost-muted, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   CARD FOOTER
   ============================================================================= */

.boost-card__footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--boost-divider, #e2e8f0);
}

/* =============================================================================
   CARD LINK (full clickable)
   ============================================================================= */

.boost-card--link {
    cursor: pointer;
}

.boost-card--link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* =============================================================================
   FEATURED/HIGHLIGHTED
   ============================================================================= */

.boost-card--featured {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.boost-card--featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--boost-btn-primary-bg, linear-gradient(135deg, #7C3AED, #EC4899));
    border-radius: 16px 16px 0 0;
}

/* =============================================================================
   CARD GRID
   ============================================================================= */

.boost-card-grid {
    display: grid;
    gap: 1.5rem;
}

.boost-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.boost-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.boost-card-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .boost-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .boost-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .boost-card-grid--4,
    .boost-card-grid--3,
    .boost-card-grid--2 { 
        grid-template-columns: 1fr; 
    }
}

/* =============================================================================
   TEXT ALIGNMENT
   ============================================================================= */

.boost-card--center {
    text-align: center;
}

.boost-card--center .boost-card__icon {
    margin-left: auto;
    margin-right: auto;
}

.boost-card--left {
    text-align: left;
}
/**
 * Shared Section Header Components
 *
 * Centralized section header pattern (badge + title + subtitle).
 * Used by: features, stats, pricing, team, testimonials, faq, gallery, and 15+ blocks.
 * Uses CSS vars from block-themes.css for theme-awareness.
 *
 * @package BoostThemeFramework\Components
 */

/* /assets/css/components/section-header.css */

/* =============================================================================
   BASE SECTION HEADER
   ============================================================================= */

.boost-section-header {
    max-width: var(--boost-container-narrow, 700px);
    margin-bottom: 3rem;
}

/* =============================================================================
   ALIGNMENT VARIANTS
   ============================================================================= */

.boost-section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.boost-section-header--left {
    text-align: left;
}

.boost-section-header--right {
    text-align: right;
    margin-left: auto;
}

/* =============================================================================
   BADGE
   ============================================================================= */

.boost-section-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    background: var(--boost-badge-bg, rgba(124, 58, 237, 0.1));
    color: var(--boost-badge-text, #7C3AED);
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* =============================================================================
   TITLE
   ============================================================================= */

.boost-section-header__title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--boost-text, #0f172a);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

/* Size variants */
.boost-section-header--sm .boost-section-header__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.boost-section-header--lg .boost-section-header__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

/* =============================================================================
   SUBTITLE
   ============================================================================= */

.boost-section-header__subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--boost-muted, #64748b);
    margin: 0;
}

/* Size variants */
.boost-section-header--sm .boost-section-header__subtitle {
    font-size: 1rem;
}

.boost-section-header--lg .boost-section-header__subtitle {
    font-size: 1.25rem;
}

/* =============================================================================
   NARROW/WIDE VARIANTS
   ============================================================================= */

.boost-section-header--narrow {
    max-width: 600px;
}

.boost-section-header--wide {
    max-width: 900px;
}

.boost-section-header--full {
    max-width: none;
}

/* =============================================================================
   SPACING VARIANTS
   ============================================================================= */

.boost-section-header--compact {
    margin-bottom: 2rem;
}

.boost-section-header--spacious {
    margin-bottom: 4rem;
}

/* =============================================================================
   WITH DIVIDER
   ============================================================================= */

.boost-section-header--divider::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--boost-btn-primary-bg, linear-gradient(135deg, #7C3AED, #EC4899));
    border-radius: 2px;
    margin-top: 1.5rem;
}

.boost-section-header--center.boost-section-header--divider::after {
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   WITH ACTIONS (button alongside header)
   ============================================================================= */

.boost-section-header--with-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: none;
}

.boost-section-header--with-actions .boost-section-header__content {
    flex: 1;
}

.boost-section-header--with-actions .boost-section-header__actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .boost-section-header--with-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================================================
   HERO VARIANT (larger, more prominent)
   ============================================================================= */

.boost-section-header--hero .boost-section-header__title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.boost-section-header--hero .boost-section-header__subtitle {
    font-size: 1.25rem;
    max-width: 600px;
}

.boost-section-header--hero.boost-section-header--center .boost-section-header__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* =============================================================================
   INLINE ICONS - for :icon: syntax in boost_rich() text fields
   ============================================================================= */

.boost-inline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    margin: 0 0.1em;
}

.boost-inline-icon svg {
    width: 0.9em;
    height: 0.9em;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    vertical-align: -0.1em;
}

.boost-inline-icon i {
    font-size: 0.9em;
    line-height: 1;
}

.boost-inline-icon .material-symbols-outlined {
    font-size: 0.9em;
    line-height: 1;
}
