/**
 * Foxco Premium Tabs Styles
 * Multiple distinctive designs that wow
 */

/* ================================================
   BASE STRUCTURE - Common for all styles
   ================================================ */

.foxco-premium-tabs-wrapper {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --border-radius: 12px;
    --transition-speed: 400ms;
    --spacing: 2rem;
    position: relative;
    width: 100%;
}

.foxco-tabs-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--spacing);
    position: relative;
}

.foxco-tab-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex: 1;
    justify-content: center;
    user-select: none;
    font-weight: 600;
    font-size: 1rem;
}

.foxco-tab-icon {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    transition: transform var(--transition-speed) ease;
}

.foxco-tab-title:hover .foxco-tab-icon {
    transform: scale(1.15) rotate(5deg);
}

.foxco-tab-content {
    padding: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Accordion headers hidden in desktop */
.foxco-accordion-header {
    display: none;
}

.foxco-tab-pane {
    display: none;
    animation: fadeInContent 0.5s ease;
}

.foxco-tab-pane.active {
    display: block;
}

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

/* ================================================
   STYLE 1: FOXCO SIGNATURE
   Bold, professional, with animated underlines
   ================================================ */

.foxco-style-foxco {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
}

.foxco-style-foxco .foxco-tabs-header {
    border-bottom: 3px solid #e0e0e0;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 0.5rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.foxco-style-foxco .foxco-tab-title {
    color: #555;
    border-radius: 8px 8px 0 0;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.foxco-style-foxco .foxco-tab-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(-50%);
}

.foxco-style-foxco .foxco-tab-title:hover::before {
    width: 80%;
}

.foxco-style-foxco .foxco-tab-title.active {
    color: var(--primary-color);
    background: white;
    font-weight: 700;
}

.foxco-style-foxco .foxco-tab-title.active::before {
    width: 100%;
    height: 4px;
}

.foxco-style-foxco .foxco-tab-title.active .foxco-tab-icon {
    color: var(--secondary-color);
    transform: scale(1.2);
}

.foxco-style-foxco .foxco-tabs-content {
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    border-top: none;
}

.foxco-style-foxco .foxco-tab-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* ================================================
   STYLE 2: MODERN GRADIENT
   Vibrant gradients with smooth transitions
   ================================================ */

.foxco-style-modern {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.foxco-style-modern .foxco-tabs-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(126, 34, 206, 0.3);
    gap: 1rem;
}

.foxco-style-modern .foxco-tab-title {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.foxco-style-modern .foxco-tab-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.foxco-style-modern .foxco-tab-title:hover::before {
    left: 100%;
}

.foxco-style-modern .foxco-tab-title:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.foxco-style-modern .foxco-tab-title.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
}

.foxco-style-modern .foxco-tabs-content {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 1.5rem;
}

.foxco-style-modern .foxco-tab-content {
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

/* ================================================
   STYLE 3: GLASSMORPHIC
   Frosted glass effect with depth
   ================================================ */

.foxco-style-glassmorphic {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

.foxco-style-glassmorphic::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 150, 200, 0.3), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(100, 200, 255, 0.3), transparent 50%);
    filter: blur(40px);
    z-index: -1;
    animation: glassAmbient 20s ease-in-out infinite;
}

@keyframes glassAmbient {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.foxco-style-glassmorphic .foxco-tabs-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.foxco-style-glassmorphic .foxco-tab-title {
    background: transparent;
    color: #2d3748;
    border-radius: 8px;
    border: 1px solid transparent;
}

.foxco-style-glassmorphic .foxco-tab-title:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.foxco-style-glassmorphic .foxco-tab-title.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    color: #1a202c;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.foxco-style-glassmorphic .foxco-tabs-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
    margin-top: 1.5rem;
}

.foxco-style-glassmorphic .foxco-tab-content {
    color: #2d3748;
}

/* ================================================
   STYLE 4: NEON CYBER
   Futuristic neon with glow effects
   ================================================ */

.foxco-style-neon {
    --neon-pink: #ff006e;
    --neon-blue: #00f5ff;
    --neon-purple: #8338ec;
}

.foxco-style-neon .foxco-tabs-header {
    background: #0a0e27;
    padding: 1rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    box-shadow: 
        0 0 20px rgba(0, 245, 255, 0.3),
        inset 0 0 20px rgba(0, 245, 255, 0.1);
}

.foxco-style-neon .foxco-tabs-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 245, 255, 0.03) 2px,
            rgba(0, 245, 255, 0.03) 4px
        );
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.foxco-style-neon .foxco-tab-title {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid rgba(0, 245, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    border-radius: 0;
}

.foxco-style-neon .foxco-tab-title::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.foxco-style-neon .foxco-tab-title:hover {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 
        0 0 20px rgba(255, 0, 110, 0.5),
        inset 0 0 20px rgba(255, 0, 110, 0.1);
}

.foxco-style-neon .foxco-tab-title:hover::after {
    opacity: 1;
}

.foxco-style-neon .foxco-tab-title.active {
    background: var(--neon-pink);
    color: #0a0e27;
    border-color: var(--neon-pink);
    box-shadow: 
        0 0 30px rgba(255, 0, 110, 0.8),
        0 0 60px rgba(255, 0, 110, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 0, 110, 0.8),
            0 0 60px rgba(255, 0, 110, 0.4),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 0, 110, 1),
            0 0 80px rgba(255, 0, 110, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

.foxco-style-neon .foxco-tabs-content {
    background: #0a0e27;
    border: 2px solid var(--neon-purple);
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    box-shadow: 
        0 0 20px rgba(131, 56, 236, 0.3),
        inset 0 0 30px rgba(131, 56, 236, 0.05);
    position: relative;
}

.foxco-style-neon .foxco-tab-content {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

/* ================================================
   STYLE 5: ULTRA MINIMAL
   Clean, refined, sophisticated
   ================================================ */

.foxco-style-minimal {
    --minimal-accent: #000000;
    --minimal-bg: #ffffff;
}

.foxco-style-minimal .foxco-tabs-header {
    background: transparent;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
    gap: 0;
}

.foxco-style-minimal .foxco-tab-title {
    padding: 1.5rem 2.5rem;
    color: #999;
    background: transparent;
    border-radius: 0;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.foxco-style-minimal .foxco-tab-icon {
    display: none;
}

.foxco-style-minimal .foxco-tab-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--minimal-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.foxco-style-minimal .foxco-tab-title:hover {
    color: #666;
}

.foxco-style-minimal .foxco-tab-title:hover::after {
    width: 60%;
}

.foxco-style-minimal .foxco-tab-title.active {
    color: var(--minimal-accent);
    font-weight: 500;
}

.foxco-style-minimal .foxco-tab-title.active::after {
    width: 100%;
}

.foxco-style-minimal .foxco-tabs-content {
    background: transparent;
    padding-top: 3rem;
}

.foxco-style-minimal .foxco-tab-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.9;
    padding: 0 1rem;
    max-width: 800px;
}

/* ================================================
   STYLE 6: BRUTALIST BOLD
   Raw, powerful, unapologetic
   ================================================ */

.foxco-style-brutalist {
    --brutalist-black: #000000;
    --brutalist-yellow: #ffff00;
}

.foxco-style-brutalist .foxco-tabs-header {
    background: var(--brutalist-black);
    padding: 0;
    gap: 0;
    border: 4px solid var(--brutalist-black);
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.foxco-style-brutalist .foxco-tab-title {
    background: white;
    color: var(--brutalist-black);
    border: none;
    border-right: 4px solid var(--brutalist-black);
    border-radius: 0;
    padding: 1.5rem 2rem;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.foxco-style-brutalist .foxco-tab-title:last-child {
    border-right: none;
}

.foxco-style-brutalist .foxco-tab-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--brutalist-yellow);
    transition: left 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
}

.foxco-style-brutalist .foxco-tab-title:hover::before {
    left: 0;
}

.foxco-style-brutalist .foxco-tab-title.active {
    background: var(--brutalist-yellow);
    transform: translateY(-4px);
    box-shadow: 0 4px 0 var(--brutalist-black);
}

.foxco-style-brutalist .foxco-tab-title.active::before {
    left: 0;
}

.foxco-style-brutalist .foxco-tabs-content {
    background: white;
    border: 4px solid var(--brutalist-black);
    border-radius: 0;
    margin-top: 2rem;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.foxco-style-brutalist .foxco-tabs-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--brutalist-yellow) 0px,
        var(--brutalist-yellow) 10px,
        var(--brutalist-black) 10px,
        var(--brutalist-black) 20px
    );
}

.foxco-style-brutalist .foxco-tab-content {
    color: var(--brutalist-black);
    font-weight: 600;
    line-height: 1.7;
}

/* ================================================
   RESPONSIVE - ACCORDION MODE
   ================================================ */

@media screen and (max-width: 768px) {
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-tabs-header {
        display: none !important;
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-accordion-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
        cursor: pointer;
        font-weight: 600;
        position: relative;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-accordion-toggle::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        margin-left: auto;
        transition: transform 0.3s ease;
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-tab-pane.active .foxco-accordion-toggle::after {
        content: '−';
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-tab-pane {
        display: block;
        border: 1px solid #e0e0e0;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-accordion-header {
        padding: 1rem 1.25rem;
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-tab-content {
        padding: 1.5rem 1.25rem;
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-tab-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .foxco-premium-tabs-wrapper[data-breakpoint] .foxco-tab-pane.active .foxco-tab-content {
        max-height: 2000px;
    }
    
    /* Style-specific accordion adjustments */
    .foxco-style-modern[data-breakpoint] .foxco-accordion-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
    }
    
    .foxco-style-glassmorphic[data-breakpoint] .foxco-accordion-header {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .foxco-style-neon[data-breakpoint] .foxco-accordion-header {
        background: #0a0e27;
        color: var(--neon-blue);
        border: 2px solid var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    }
    
    .foxco-style-brutalist[data-breakpoint] .foxco-accordion-header {
        background: white;
        border: 4px solid var(--brutalist-black);
        border-radius: 0;
        text-transform: uppercase;
        font-weight: 900;
    }
    
    .foxco-style-brutalist[data-breakpoint] .foxco-tab-pane {
        border: 4px solid var(--brutalist-black);
        border-radius: 0;
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Brutalist Mobile Optimization - Compact Black Design */
@media screen and (max-width: 768px) {
    .foxco-style-brutalist[data-breakpoint] .foxco-tab-pane {
        border: 4px solid var(--brutalist-black);
        border-radius: 0;
        box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
        margin-bottom: 0;
        overflow: visible;
    }
    
    .foxco-style-brutalist[data-breakpoint] .foxco-accordion-header {
        background: var(--brutalist-black);
        color: var(--brutalist-yellow);
        border: none;
        padding: 1rem 1.25rem;
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 0.5px;
        position: relative;
    }
    
    .foxco-style-brutalist[data-breakpoint] .foxco-accordion-toggle::after {
        content: '+';
        color: var(--brutalist-yellow);
        font-size: 1.75rem;
        font-weight: 700;
        line-height: 1;
    }
    
    .foxco-style-brutalist[data-breakpoint] .foxco-tab-pane.active .foxco-accordion-toggle::after {
        content: '−';
    }
    
    .foxco-style-brutalist[data-breakpoint] .foxco-tab-content {
        padding: 1.5rem 1.25rem;
        background: white;
    }
    
    /* Striped pattern on active accordion */
    .foxco-style-brutalist[data-breakpoint] .foxco-tab-pane.active .foxco-accordion-header::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: repeating-linear-gradient(
            90deg,
            var(--brutalist-yellow) 0px,
            var(--brutalist-yellow) 8px,
            var(--brutalist-black) 8px,
            var(--brutalist-black) 16px
        );
    }
    
    /* Remove extra spacing between accordion items */
    .foxco-style-brutalist[data-breakpoint] .foxco-tabs-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Animation utilities */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.foxco-tab-title {
    animation: slideIn 0.4s ease backwards;
}

.foxco-tab-title:nth-child(1) { animation-delay: 0.1s; }
.foxco-tab-title:nth-child(2) { animation-delay: 0.2s; }
.foxco-tab-title:nth-child(3) { animation-delay: 0.3s; }
.foxco-tab-title:nth-child(4) { animation-delay: 0.4s; }
.foxco-tab-title:nth-child(5) { animation-delay: 0.5s; }

/* ================================================
   ELEMENTOR CONTAINER SUPPORT
   ================================================ */

.foxco-elementor-container {
    min-height: 100px;
    position: relative;
}

/* Container placeholder styles (editor only) */
.foxco-container-placeholder {
    border: 2px dashed #d5d8dc;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foxco-container-placeholder:hover {
    border-color: #a0a0a0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.foxco-placeholder-content {
    max-width: 400px;
}

.foxco-placeholder-content svg {
    color: #7e8ba3;
    margin: 0 auto 1rem;
    opacity: 0.6;
}

.foxco-placeholder-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem;
}

.foxco-placeholder-content p {
    font-size: 0.95rem;
    color: #7e8ba3;
    margin: 0 0 0.5rem;
    line-height: 1.5;
}

.foxco-placeholder-tip {
    font-size: 0.85rem !important;
    color: #a0a0a0 !important;
    font-style: italic;
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

/* Make container accept drops in Elementor editor */
.elementor-editor-active .foxco-elementor-container {
    min-height: 150px;
}

/* Hide placeholder when container has content */
.foxco-elementor-container:not(:empty) .foxco-container-placeholder {
    display: none;
}

/* Make sure nested Elementor content displays properly */
.foxco-elementor-container > .elementor-element {
    width: 100%;
}

.foxco-elementor-container .elementor-section,
.foxco-elementor-container .elementor-column,
.foxco-elementor-container .elementor-widget-wrap {
    width: 100%;
}
