/**
 * Frontend CSS for SVG Interactive Tabs
 * File: styles/frontend.css
 */

/* Main Wrapper */
.et_pb_svg_tabs_wrapper {
    width: 100%;
    max-width: 100%;
}

/* Introduction Text Block - In Tabs Column, Above Navigation */
.svg_tabs_intro {
    width: 100%;
    margin-bottom: 30px !important;
    display: block !important;
}

.svg_tabs_intro h1,
.svg_tabs_intro h2 {
    font-size: 2.5em !important;
    font-weight: 700 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    color: #2c3e50 !important;
}

.svg_tabs_intro h3,
.svg_tabs_intro h4 {
    font-size: 1.8em !important;
    font-weight: 600 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

.svg_tabs_intro p {
    font-size: 1.1em !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin-bottom: 15px !important;
}

.svg_tabs_intro p:last-child {
    margin-bottom: 0 !important;
}

.svg_tabs_intro * {
    max-width: 100%;
}

/* Main Container - Side by Side Layout */
.et_pb_svg_tabs_container {
    display: flex;
    gap: 40px;
    width: 100%;
    align-items: flex-start;
}

/* Column Layout */
.svg_column {
    flex-shrink: 0;
}

.tabs_column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* SVG Wrapper */
.svg_wrapper {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.interactive_svg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.overlay_svg {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* SVG Highlights */
.svg-highlight {
    transition: opacity 0.3s ease;
    fill: transparent !important;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    rx: 8;
    ry: 8;
}

/* Remove pulse animation */
.svg-highlight.pulse-animation {
    animation: none;
}

@keyframes pulse {
    /* Keep for backwards compatibility but not used */
}

/* Tab Navigation - Horizontal with connected underline */
.svg-tabs-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    border-bottom: 1px solid #e0e0e0 !important;
    position: relative;
}

.svg-tab-nav-item {
    position: relative;
    flex: 0 0 auto;
    list-style: none !important;
    margin: 0 !important;
}

.svg-tab-nav-item::before {
    display: none !important;
}

.svg-tab-nav-item a {
    display: block !important;
    padding: 15px 25px !important;
    text-decoration: none !important;
    color: #666 !important;
    background: transparent !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -1px !important;
    white-space: nowrap !important;
    position: relative;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.svg-tab-nav-item:hover a {
    color: #3498db !important;
    background: transparent !important;
}

.svg-tab-nav-item.active a {
    color: #3498db !important;
    border-bottom: 3px solid #3498db !important;
    font-weight: 600 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Tab Content Area */
.tabs_wrapper {
    background: transparent;
    padding: 0;
}

/* Remove any Divi list styling that might interfere */
.tabs_wrapper ul.svg-tabs-nav,
.tabs_wrapper .svg-tabs-nav {
    list-style-type: none !important;
    list-style: none !important;
}

.tabs_wrapper ul.svg-tabs-nav li,
.tabs_wrapper .svg-tabs-nav li {
    list-style: none !important;
    background: none !important;
    padding-left: 0 !important;
}

.tabs_wrapper ul.svg-tabs-nav li::before,
.tabs_wrapper .svg-tabs-nav li::before,
.tabs_wrapper ul.svg-tabs-nav li::after,
.tabs_wrapper .svg-tabs-nav li::after {
    content: none !important;
    display: none !important;
}

.svg_tab {
    position: relative;
}

.tab_header {
    display: none; /* Headers are shown in navigation */
}

.tab_content {
    padding: 0;
    line-height: 1.7;
    color: #555;
}

.tab_content h1,
.tab_content h2,
.tab_content h3 {
    font-size: 2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.tab_content h4 {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 15px 0;
}

.tab_content p {
    margin-bottom: 20px;
    font-size: 1em;
    line-height: 1.7;
}

.tab_content ul,
.tab_content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.tab_content li {
    margin-bottom: 10px;
}

/* CTA Button Styling */
.tab_content a.et_pb_button,
.tab_content .et_pb_button_module_wrapper .et_pb_button {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.tab_content a.et_pb_button:hover,
.tab_content .et_pb_button_module_wrapper .et_pb_button:hover {
    background: #2c3e50;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .et_pb_svg_tabs_container {
        gap: 30px;
    }
    
    .svg_tabs_intro h1,
    .svg_tabs_intro h2 {
        font-size: 2em;
    }
    
    .tab_content h1,
    .tab_content h2,
    .tab_content h3 {
        font-size: 1.7em;
    }
    
    .svg-tab-nav-item a {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .et_pb_svg_tabs_container {
        flex-direction: column;
        gap: 30px;
    }
    
    .svg_column,
    .tabs_column {
        width: 100% !important;
    }
    
    .tabs_column .svg_tabs_intro {
        margin-bottom: 20px !important;
    }
    
    .tabs_column .svg_tabs_intro h1,
    .tabs_column .svg_tabs_intro h2 {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    
    .tabs_column .svg_tabs_intro p {
        font-size: 1em !important;
    }
    
    .svg_wrapper {
        margin-bottom: 20px;
    }
    
    .svg-tabs-nav {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    
    .svg-tab-nav-item a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .tab_content h1,
    .tab_content h2,
    .tab_content h3 {
        font-size: 1.5em;
    }
    
    .tab_content p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .svg-tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .svg-tab-nav-item {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .svg-tab-nav-item a {
        padding: 12px 15px;
        border-bottom: none !important;
        width: 100%;
    }
    
    .svg-tab-nav-item.active a {
        background: #f0f8ff;
        border-left: 3px solid #3498db;
    }
}

/* Loading State */
.et_pb_svg_tabs_container.loading .svg_wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility */
.svg-tab-nav-item a:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.svg_tab:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .et_pb_svg_tabs_container {
        display: block;
    }
    
    .svg_column,
    .tabs_column {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .svg-tabs-nav {
        display: none;
    }
    
    .tab_content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .tab_header {
        display: block;
        page-break-after: avoid;
    }
}

/* Hide [object Object] text in Visual Builder */
.et-fb-root-ancestor .et_pb_svg_tabs_container .tabs_wrapper:empty::before,
.et-fb-root-ancestor .et_pb_svg_tabs_container .tabs_wrapper:contains("[object Object]")::before {
    content: "Tabs configured - Save and view page to see them";
    display: block;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    text-align: center;
    color: #666;
}