/**
 * Size Table Component Styles
 * 
 * @package Lukuro_Shop_Size_Table
 * @since 1.0.0
 */

/* ==========================================================================
   Size Table Wrapper
   ========================================================================== */

.lukuro-size-table-wrapper {
    font-family: inherit;
    line-height: 1.6;
    margin: 0 0 1.5em;
}

.lukuro-size-table-wrapper .lst-title {
    margin: 0 0 1em;
    font-size: 1.2em;
    font-weight: 400;
    color: var(--bricks-text-dark, #333);
}

/* ==========================================================================
   Tabs Navigation
   ========================================================================== */

.lst-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1.5em;
}

.lst-tab-button {
    background: transparent;
    border: 1px solid var(--bricks-border-light, #e1e5e9);
    color: var(--bricks-text-dark, #333);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 400;
    padding: 0.75em 1.25em;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: -1px;
}

.lst-tab-button:hover {
    background-color: var(--bricks-color-primary-light, #f8f9fa);
    border-color: var(--primary, #007cba);
}

.lst-tab-button.active {
    background-color: var(--primary-ultra-light);
    color: var(--text-dark);
    border-color: var(--primary);
}

/* Tab Style Variants */
.tab-style-pills .lst-tab-button {
    border-radius: 0;
    margin-bottom: 0;
}

.tab-style-pills .lst-tabs {
    border-bottom: none;
}

.tab-style-underline .lst-tab-button {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    margin-bottom: -1px;
}

.tab-style-underline .lst-tab-button.active {
    background: transparent;
    color: var(--primary, #007cba);
    border-bottom-color: var(--primary, #007cba);
}

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

.lst-content {
    position: relative;
}

.lst-content-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.lst-content-panel.active {
    display: block;
}

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

/* ==========================================================================
   Table Styles
   ========================================================================== */

.lst-table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 0;
    overflow: hidden;
    background: white;
}

.lst-table td {
    padding: 0.875em 1em;
    border-bottom: 1px solid var(--bricks-border-light, #e1e5e9);
    vertical-align: top;
}

.lst-table tr:last-child td {
    border-bottom: none;
}

.lst-dimension-name {
    font-weight: 400;
    color: var(--bricks-text-dark, #333);
    width: 60%;
}

.lst-dimension-value {
    font-weight: 400;
    color: var(--primary, #007cba);
    text-align: right;
    width: 40%;
}

/* Zebra striping */
.lst-table tr:nth-child(even) {
    background-color: var(--primary-ultra-light);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.lukuro-size-table-empty {
    padding: 2em;
    text-align: center;
    color: var(--bricks-text-light, #666);
    font-style: italic;
    background: var(--bricks-background-light, #f8f9fa);
    border-radius: 0;
    border: 1px dashed var(--bricks-border-light, #e1e5e9);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 767px) {
    .lst-table td {
        padding: 0.75em 0.875em;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .lukuro-size-table-wrapper {
        margin: 0 0 1em;
    }
    
    .lst-table {
        font-size: 0.85em;
    }
    
    .lst-table td {
        padding: 0.625em 0.75em;
    }
}

@media (max-width: 280px) {
    .lst-tabs {
        flex-direction: column;
        gap: 0.25em;
    }

    .lst-dimension-name,
    .lst-dimension-value {
        width: auto;
        display: block;
    }

    .lst-dimension-value {
        text-align: left;
        margin-top: 0.25em;
    }
}
