/**
 * Pros & Cons Shortcode Styles
 *
 * Comparison boxes with green (pros) and red (cons) theming.
 * BEM naming: .oe-pros-cons (block), __element, --modifier
 *
 * @since 1.0.0
 */

/* ==========================================================================
   Container
   ========================================================================== */

.oe-pros-cons {
    margin: 1.5em 0;
}

/* ==========================================================================
   Main Title
   ========================================================================== */

.oe-pros-cons__main-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--oe-color-text-dark);
}

/* ==========================================================================
   Sections Container
   ========================================================================== */

.oe-pros-cons__sections {
    display: grid;
    gap: 1rem;
}

/* Side-by-side layout */
.oe-pros-cons--side-by-side .oe-pros-cons__sections {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
    .oe-pros-cons--side-by-side .oe-pros-cons__sections {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Section (Pros or Cons)
   ========================================================================== */

.oe-pros-cons__section {
    padding: 1.25rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--oe-color-border);
}

/* ==========================================================================
   Pros Section
   ========================================================================== */

.oe-pros-cons__section--pros {
    background: linear-gradient(135deg, var(--oe-color-primary-tint) 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.oe-pros-cons__section--pros .oe-pros-cons__title {
    color: var(--oe-color-primary-dark);
}

.oe-pros-cons__section--pros .oe-pros-cons__icon {
    color: var(--oe-color-success);
}

.oe-pros-cons__section--pros .oe-pros-cons__item-icon {
    color: var(--oe-color-success);
}

/* ==========================================================================
   Cons Section
   ========================================================================== */

.oe-pros-cons__section--cons {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
}

.oe-pros-cons__section--cons .oe-pros-cons__title {
    color: #991b1b;
}

.oe-pros-cons__section--cons .oe-pros-cons__icon {
    color: var(--oe-color-error);
}

.oe-pros-cons__section--cons .oe-pros-cons__item-icon {
    color: var(--oe-color-error);
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.oe-pros-cons__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.oe-pros-cons__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   List
   ========================================================================== */

.oe-pros-cons__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.oe-pros-cons__item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: var(--oe-color-text);
    line-height: 1.5;
}

.oe-pros-cons__item:last-child {
    margin-bottom: 0;
}

.oe-pros-cons__item-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.125rem;
}

/* ==========================================================================
   Verdict Section
   ========================================================================== */

.oe-pros-cons__verdict {
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 10px;
}

.oe-pros-cons__verdict-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.oe-pros-cons__verdict .oe-pros-cons__icon {
    color: #f59e0b;
}

.oe-pros-cons__verdict-text {
    margin: 0;
    font-size: 0.9375rem;
    color: #78350f;
    line-height: 1.6;
}

/* ==========================================================================
   Icon Styles
   ========================================================================== */

/* Default style - circle icons in title */
.oe-pros-cons--default .oe-pros-cons__icon {
    /* Uses the default circle check/x icons */
}

/* Thumbs style - thumbs up/down in title */
.oe-pros-cons--thumbs .oe-pros-cons__title {
    /* Thumbs icons used in title */
}

/* Minimal style - no background gradients */
.oe-pros-cons--minimal .oe-pros-cons__section {
    background: transparent;
    border: none;
    padding: 0;
}

.oe-pros-cons--minimal .oe-pros-cons__section--pros {
    border-left: 3px solid var(--oe-color-success);
    padding-left: 1rem;
}

.oe-pros-cons--minimal .oe-pros-cons__section--cons {
    border-left: 3px solid var(--oe-color-error);
    padding-left: 1rem;
}

.oe-pros-cons--minimal .oe-pros-cons__verdict {
    background: transparent;
    border: none;
    border-left: 3px solid #f59e0b;
    padding: 0 0 0 1rem;
    border-radius: 0;
}

/* ==========================================================================
   Compact Style
   ========================================================================== */

.oe-pros-cons--compact .oe-pros-cons__section {
    padding: 1rem;
}

.oe-pros-cons--compact .oe-pros-cons__title {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.oe-pros-cons--compact .oe-pros-cons__item {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.oe-pros-cons--compact .oe-pros-cons__verdict {
    padding: 1rem;
}

.oe-pros-cons--compact .oe-pros-cons__verdict-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.oe-pros-cons--compact .oe-pros-cons__verdict-text {
    font-size: 0.875rem;
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .oe-pros-cons__section {
        break-inside: avoid;
        border: 1px solid #ccc;
        background: #fff !important;
    }

    .oe-pros-cons__section--pros {
        border-left: 4px solid var(--oe-color-success);
    }

    .oe-pros-cons__section--cons {
        border-left: 4px solid var(--oe-color-error);
    }

    .oe-pros-cons__verdict {
        break-inside: avoid;
        border: 1px solid #ccc;
        border-left: 4px solid #f59e0b;
        background: #fff !important;
    }
}
