/**
 * TCM Vertical Tabs Styles
 * Colors: #A000FF (purple), #50DCC8 (turquoise), #28293f (dark navy)
 */

/* ===========================
   Elementor Widget Wrapper
   =========================== */

.tcmvt-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Elementor widget container fixes */
.elementor-widget-tcm_vertical_tabs {
    width: 100%;
}

.elementor-widget-tcm_vertical_tabs .elementor-widget-container {
    width: 100%;
    max-width: 100%;
}

/* ===========================
   Container & Layout
   =========================== */

.tcmvt-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.tcmvt-header {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    background-color: transparent;
    padding: 6% 6% 10% 6%;
    border: 1px solid #A000FF;
    border-radius: 30px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    width: 93%;
    margin-left: 0;
    margin-right: auto;
}

.tcmvt-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: inherit;
    line-height: 1.2;
    flex: 0 0 auto;
    max-width: 400px;
}

.tcmvt-intro {
    font-size: 24px;
    line-height: 30px;
    margin: 0;
    color: inherit;
    flex: 1;
}

/* ===========================
   Mobile Dropdown (Hidden on Desktop)
   =========================== */

.tcmvt-mobile-select {
    display: none;
    margin-bottom: 30px;
}

.tcmvt-dropdown {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    color: #50DCC8;
    background-color: #28293f;
    border: 1px solid #50DCC8;
    border-radius: 30px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%2350DCC8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 24px;
    padding-right: 60px;
}

.tcmvt-dropdown:focus {
    outline: none;
}

/* ===========================
   Tabs Wrapper
   =========================== */

.tcmvt-tabs-wrapper {
    display: flex;
    gap: 0;
    border: 1px solid #50DCC8;
    border-radius: 30px;
    background-color: #28293f;
    padding: 10% 6% 6% 6%;
    min-height: 400px;
    margin-top: -60px;
    position: relative;
    z-index: 1;
    width: 93%;
    margin-left: auto;
    margin-right: 0;
}

/* ===========================
   Tab Buttons (Desktop Vertical)
   =========================== */

.tcmvt-tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 0 0 50%;
    padding-right: 0;
}

.tcmvt-tab-button {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 24px;
    font-size: 21px;
    line-height: 30px;
    font-family: inherit;
    font-weight: 500;
    text-align: left;
    color: #50DCC8;
    background-color: transparent;
    border: none;
    border-radius: 15px 0 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    width: 106%;
}

.tcmvt-tab-button:last-child {
    margin-bottom: 0;
}

.tcmvt-tab-button:hover {
    background-color: rgba(80, 220, 200, 0.1);
}

.tcmvt-tab-button.active {
    background-color: #50DCC8;
    color: #000000;
    font-weight: 700;
}

.tcmvt-tab-button.active .tcmvt-tab-number {
    font-weight: 700;
}

.tcmvt-tab-button:focus {
    outline: none;
}

.tcmvt-tab-number {
    font-weight: 500;
    font-size: 21px;
    line-height: 30px;
    flex-shrink: 0;
}

.tcmvt-tab-text {
    flex: 1;
    text-align: left;
    max-width: 90%;
}

/* ===========================
   Content Panels
   =========================== */

.tcmvt-panels-container {
    flex: 0 0 50%;
    position: relative;
}

.tcmvt-panel {
    background-color: #50DCC8;
    color: #000000;
    padding: 50px;
    border-radius: 30px;
    min-height: 400px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tcmvt-panel[hidden] {
    display: none;
}

.tcmvt-panel:not(.active) {
    opacity: 0;
    pointer-events: none;
}

/* ===========================
   WYSIWYG Content Area
   =========================== */

.tcmvt-panel-image {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 20px;
}

.tcmvt-panel-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.tcmvt-panel-content {
    color: #000000;
}

.tcmvt-panel-content h1,
.tcmvt-panel-content h2,
.tcmvt-panel-content h3,
.tcmvt-panel-content h4,
.tcmvt-panel-content h5,
.tcmvt-panel-content h6 {
    color: #000000;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tcmvt-panel-content h3 {
    font-size: 1.5rem;
}

.tcmvt-panel-content p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #000000;
}

.tcmvt-panel-content p:last-child {
    margin-bottom: 0;
}

.tcmvt-panel-content strong,
.tcmvt-panel-content b {
    font-weight: 700;
    color: #000000;
}

.tcmvt-panel-content ul,
.tcmvt-panel-content ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.tcmvt-panel-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.tcmvt-panel-content a {
    color: #A000FF;
    text-decoration: underline;
}

.tcmvt-panel-content a:hover {
    color: #6b00b3;
}

/* ===========================
   Content Sections
   =========================== */

.tcmvt-example,
.tcmvt-explanation {
    margin-bottom: 25px;
}

.tcmvt-example:last-of-type {
    margin-bottom: 25px;
}

.tcmvt-example-label,
.tcmvt-explanation-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
}

.tcmvt-example p,
.tcmvt-explanation p {
    margin: 0;
    line-height: 1.6;
    color: #000000;
}

/* ===========================
   Read More Button (Gradient Border with Icon Style)
   =========================== */

.tcmvt-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 20px;
    margin-top: 30px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    font-family: inherit;
    color: #ffffff;
    background: #232328;
    border: 1px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-image: linear-gradient(#232328, #232328), linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.tcmvt-read-more:hover {
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    color: #ffffff;
}

.tcmvt-read-more:focus {
    outline: none;
}

/* Icon circle */
.tcmvt-read-more svg {
    width: 30px;
    height: 30px;
    background: #A000FF;
    border-radius: 50%;
    padding: 6px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.tcmvt-read-more:hover svg {
    background: #A000FF;
}

.tcmvt-read-more svg polyline,
.tcmvt-read-more svg path {
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
}

/* ===========================
   Tablet Breakpoint
   =========================== */

@media (max-width: 968px) {
    .tcmvt-header {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding: 6% 6% 10% 6%;
    }
    
    .tcmvt-title {
        max-width: 100%;
    }
    
    .tcmvt-intro {
        font-size: 18px;
        line-height: 26px;
    }
    
    .tcmvt-tabs-wrapper {
        flex-direction: column;
        padding: 10% 6% 6% 6%;
        margin-top: -40px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tcmvt-tabs-list {
        flex: 1;
        min-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .tcmvt-tab-button {
        font-size: 20px;
        line-height: 26px;
    }
    
    .tcmvt-tab-number {
        font-size: 20px;
        line-height: 26px;
        font-weight: 500;
    }
    
    .tcmvt-tab-button.active .tcmvt-tab-number {
        font-weight: 700;
    }
    
    .tcmvt-panels-container {
        flex: 1;
    }
    
    .tcmvt-panel {
        padding: 40px;
    }
}

/* ===========================
   Mobile Breakpoint
   =========================== */

@media (max-width: 768px) {
    .tcmvt-container {
        padding: 0;
    }

    .tcmvt-header {
        flex-direction: column;
        gap: 20px;
        padding: 6% 6% 10% 6%;
        margin-bottom: 0;
        border-radius: 30px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tcmvt-title {
        font-size: 2rem;
        max-width: 100%;
    }
    
    .tcmvt-intro {
        font-size: 16px;
        line-height: 24px;
    }

    /* Show mobile dropdown inside header */
    .tcmvt-mobile-select {
        display: block;
        margin: 20px 0 0 0;
        padding: 0;
    }
    
    /* Hide desktop tabs */
    .tcmvt-tabs-list {
        display: none;
    }
    
    .tcmvt-tabs-wrapper {
        border: none;
        background-color: transparent;
        padding: 0;
        margin-top: 30px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .tcmvt-panels-container {
        width: 100%;
        flex: 1;
    }
    
    .tcmvt-panel {
        padding: 35px 30px;
        border-radius: 30px;
        min-height: auto;
        border: 1px solid #50DCC8;
    }
    
    .tcmvt-panel-content h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .tcmvt-read-more {
        font-size: 16px;
        line-height: 20px;
        padding: 10px;
    }
    
    .tcmvt-read-more svg {
        width: 26px;
        height: 26px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .tcmvt-header {
        padding: 6% 6% 10% 6%;
        border-radius: 30px;
    }
    
    .tcmvt-title {
        font-size: 1.75rem;
    }
    
    .tcmvt-panel {
        padding: 30px 25px;
        border-radius: 30px;
    }
    
    .tcmvt-panel-content h3 {
        font-size: 1.35rem;
    }
    
    .tcmvt-read-more {
        padding: 8px 5px 8px 16px;
        min-width: 130px;
    }
    
    .tcmvt-read-more svg {
        width: 30px;
        height: 30px;
        padding: 6px;
    }
}

/* ===========================
   Accessibility
   =========================== */

.tcmvt-tab-button:focus-visible,
.tcmvt-dropdown:focus-visible,
.tcmvt-read-more:focus-visible {
    outline: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .tcmvt-tab-button,
    .tcmvt-panel,
    .tcmvt-read-more {
        transition: none;
    }
}
