/* Feature Showcase Section Plugin – ITSWEBER CMS
   Vertical feature cards with SVG icons in a multi-column grid.
   Demo-identical: icon in rounded square, top accent bar on hover, centered text. */

.feature-showcase-section {
    padding: 4rem 0;
}

.feature-showcase-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.fss-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.fss-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-primary, #C62828);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.fss-label::before,
.fss-label::after {
    content: '';
    width: 20px;
    height: 1.5px;
    background: var(--theme-primary, #C62828);
    border-radius: 1px;
}

.fss-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */

.fss-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.fss--cols-2 .fss-grid { grid-template-columns: repeat(2, 1fr); }
.fss--cols-4 .fss-grid { grid-template-columns: repeat(4, 1fr); }

/* ── Card ───────────────────────────────────────────────────────────────── */

.fss-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Top accent bar on hover */
.fss-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme-primary, #C62828);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fss-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    border-color: rgba(198, 40, 40, 0.2);
}

.fss-card:hover::before {
    transform: scaleX(1);
}

/* ── Card Icon ──────────────────────────────────────────────────────────── */

.fss-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(198, 40, 40, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fss-card:hover .fss-card-icon {
    background: var(--theme-primary, #C62828);
}

.fss-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--theme-primary, #C62828);
    fill: none;
    transition: stroke 0.3s ease;
}

.fss-card:hover .fss-card-icon svg {
    stroke: #fff;
}

/* Handle SVGs with fill instead of stroke */
.fss-card-icon svg[fill="currentColor"] {
    fill: var(--theme-primary, #C62828);
    stroke: none;
}

.fss-card:hover .fss-card-icon svg[fill="currentColor"] {
    fill: #fff;
}

/* ── Card Content ───────────────────────────────────────────────────────── */

.fss-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 0.625rem;
    color: #1a1a2e;
}

.fss-card-text {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.fss-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-primary, #C62828);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
    text-decoration: none;
}

.fss-card-link:hover {
    gap: 8px;
    color: var(--theme-primary, #C62828);
}

/* ── Card Style Variants ────────────────────────────────────────────────── */

.fss--card-bordered .fss-card {
    border: 1px solid #e5e7eb;
}

.fss--card-flat .fss-card {
    border: none;
    box-shadow: none;
}

.fss--card-flat .fss-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.fss--card-shadow .fss-card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ── Color Scheme Variants ──────────────────────────────────────────────── */

.feature-showcase-section.section--scheme-alt {
    background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
}

.feature-showcase-section.section--scheme-primary {
    background: var(--theme-primary, #C62828);
}

.feature-showcase-section.section--scheme-primary .fss-title,
.feature-showcase-section.section--scheme-primary .fss-label {
    color: #fff;
}

.feature-showcase-section.section--scheme-primary .fss-label::before,
.feature-showcase-section.section--scheme-primary .fss-label::after {
    background: rgba(255, 255, 255, 0.5);
}

.feature-showcase-section.section--scheme-dark {
    background: #1e293b;
}

.feature-showcase-section.section--scheme-dark .fss-title {
    color: #fff;
}

.feature-showcase-section.section--scheme-dark .fss-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Section Text Color Overrides ───────────────────────────────────────── */

.feature-showcase-section.section--text-black .fss-title,
.feature-showcase-section.section--text-black .fss-card-title {
    color: #1a1a2e !important;
}

.feature-showcase-section.section--text-black .fss-card-text {
    color: #374151 !important;
}

.feature-showcase-section.section--text-white .fss-title,
.feature-showcase-section.section--text-white .fss-card-title {
    color: #fff !important;
}

.feature-showcase-section.section--text-white .fss-card-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

.feature-showcase-section.section--text-theme .fss-title,
.feature-showcase-section.section--text-theme .fss-card-title {
    color: var(--theme-primary, #C62828) !important;
}

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

@media (max-width: 768px) {
    .feature-showcase-section {
        padding: 2.5rem 0;
    }

    .fss-title {
        font-size: 1.5rem;
    }

    .fss-grid,
    .fss--cols-4 .fss-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fss-card {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 520px) {
    .fss-grid,
    .fss--cols-2 .fss-grid,
    .fss--cols-4 .fss-grid {
        grid-template-columns: 1fr;
    }

    .fss-card-icon {
        width: 48px;
        height: 48px;
    }

    .fss-card-icon svg {
        width: 24px;
        height: 24px;
    }
}
