/* ============================================
   INDUSTRIES TABS/PILLS SECTION - PROFESSIONAL DESIGN
   Inspired by n8n.io layout patterns
   Only Lucide icons, no emojis
   ============================================ */

.industries-tabs-section {
    padding: var(--spacing-5xl) 0 var(--spacing-3xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.industries-tabs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 30%,
        rgba(0, 255, 170, 0.06) 0%,
        rgba(0, 255, 170, 0.03) 30%,
        rgba(0, 255, 170, 0.01) 60%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 1;
}

.industries-tabs-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Header */
.industries-tabs-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.industries-tabs-section h2 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
    font-weight: var(--font-black);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.industries-tabs-section h2 .accent {
    background: linear-gradient(
        90deg,
        var(--neon-green) 0%,
        #00FFD4 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.industries-tabs-subtitle {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: var(--gray-light);
    font-weight: var(--font-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Pills Navigation - Professional Toggle Style */
.industries-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 10;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 14px 28px;
    font-size: var(--text-base);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tab-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 170, 0.15) 0%,
        rgba(0, 255, 170, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 170, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.tab-button:hover::before {
    opacity: 1;
}

.tab-button.active {
    background: var(--neon-green);
    border-color: var(--neon-green);
    color: var(--bg-primary);
    box-shadow:
        0 4px 20px rgba(0, 255, 170, 0.3),
        0 0 40px rgba(0, 255, 170, 0.15);
}

.tab-button.active::before {
    opacity: 0;
}

.tab-icon {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    stroke-width: 2;
}

.tab-button span {
    position: relative;
    z-index: 1;
}

/* Tab Content Container */
.industries-tabs-content {
    position: relative;
    min-height: 350px;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.tab-panel {
    display: none;
    opacity: 0;
    animation: fadeOut 0.3s ease;
}

.tab-panel.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Panel Inner Content */
.tab-panel-inner {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: visible;
}

.tab-panel-inner::before {
    display: none;
}

.tab-panel-inner > * {
    position: relative;
    z-index: 1;
}

/* Panel Icon */
.panel-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    color: var(--neon-green);
}

.panel-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--neon-green);
    stroke-width: 2;
}

/* Panel Title */
.panel-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-black);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

/* Panel Sections */
.panel-section {
    margin-bottom: var(--spacing-xl);
}

.panel-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--neon-green);
    border-radius: 2px;
}

/* Challenge and Solution Lists */
.challenge-list,
.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.challenge-list li,
.solution-list li {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    padding-left: var(--spacing-xl);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Challenge icon - alert-circle via SVG data URI */
.challenge-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,87,87,0.9)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Solution icon - check-circle via SVG data URI */
.solution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(0,255,170,0.9)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Desktop Large (≥1280px) */
@media (min-width: 1280px) {
    .industries-tabs-nav {
        gap: var(--spacing-lg);
    }

    .tab-button {
        padding: 16px 32px;
        font-size: 1.0625rem;
    }

    .tab-icon {
        width: 22px;
        height: 22px;
    }

    .tab-panel-inner {
        padding: var(--spacing-2xl) 0;
    }

    .panel-icon {
        width: 48px;
        height: 48px;
    }

    .panel-icon svg {
        width: 28px;
        height: 28px;
    }

    .panel-title {
        font-size: var(--text-3xl);
        margin-bottom: var(--spacing-xl);
    }

    .section-title {
        font-size: 1.125rem;
    }

    .challenge-list li,
    .solution-list li {
        font-size: var(--text-base);
        line-height: 1.55;
    }
}

/* Tablet (768-1279px) */
@media (min-width: 768px) and (max-width: 1279px) {
    .industries-tabs-nav {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .tab-button {
        padding: 13px 24px;
        font-size: 0.9375rem;
    }

    .tab-panel-inner {
        padding: var(--spacing-xl) 0;
    }
}

/* Mobile (<768px) - 2x2 Grid Pills */
@media (max-width: 767px) {
    .industries-tabs-section {
        padding: var(--spacing-4xl) 0 var(--spacing-2xl) 0;
    }

    .industries-tabs-header {
        margin-bottom: var(--spacing-xl);
        padding: var(--spacing-xl) var(--spacing-md) 0;
    }

    .industries-tabs-content {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }

    .industries-tabs-section h2 {
        font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl));
        margin-bottom: var(--spacing-md);
    }

    .industries-tabs-subtitle {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    /* 2x2 Grid Layout */
    .industries-tabs-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    .tab-button {
        padding: 11px 14px;
        font-size: 0.8125rem;
        justify-content: center;
        width: 100%;
    }

    .tab-icon {
        width: 17px;
        height: 17px;
    }

    .industries-tabs-content {
        min-height: auto;
        padding: 0 var(--spacing-md);
    }

    .tab-panel-inner {
        padding: var(--spacing-lg) 0;
        border-radius: 0;
    }

    .panel-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .panel-icon svg {
        width: 22px;
        height: 22px;
    }

    .panel-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-md);
    }

    .panel-section {
        margin-bottom: var(--spacing-lg);
    }

    .section-title {
        font-size: 0.9375rem;
        margin-bottom: 10px;
    }

    .section-title::before {
        width: 3px;
        height: 16px;
    }

    .challenge-list,
    .solution-list {
        gap: 8px;
    }

    .challenge-list li,
    .solution-list li {
        font-size: 0.875rem;
        padding-left: var(--spacing-lg);
        line-height: 1.45;
    }

    .challenge-list li::before,
    .solution-list li::before {
        width: 17px;
        height: 17px;
        top: 2px;
    }
}

/* Extra Small Mobile (<480px) */
@media (max-width: 479px) {
    .tab-button {
        padding: 10px 12px;
        font-size: 0.8125rem;
        gap: 6px;
    }

    .tab-icon {
        width: 16px;
        height: 16px;
    }

    .tab-panel-inner {
        padding: var(--spacing-md) 0;
    }

    .panel-title {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 0.875rem;
    }

    .challenge-list li,
    .solution-list li {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .tab-button,
    .tab-panel,
    .tab-button::before {
        transition: none;
        animation: none;
    }

    .tab-button:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .tab-button {
        border-width: 2px;
    }

    .tab-button.active {
        border-width: 3px;
    }

    .tab-panel-inner {
        border-width: 2px;
    }
}

/* Focus states for accessibility */
.tab-button:focus-visible {
    outline: 3px solid var(--neon-green);
    outline-offset: 3px;
}

/* ============================================
   TRANSITION CTA SECTION (Moved to separate file)
   ============================================ */
