/**
 * Specifications Table Widget Styles.
 *
 * @package EWP_Ventto
 * @since 1.0.0
 */

/* Widget Container */
.ewp-ventto-specs-widget {
    margin: 0;
    padding: 0;
}

.ewp-ventto-widget-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-align: left;
}

/* Specifications Table */
.ewp-ventto-specs-table {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tabs Navigation */
.ewp-ventto-tab-nav {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e1e1e1;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

.ewp-ventto-tab-nav::-webkit-scrollbar {
    height: 6px;
}

.ewp-ventto-tab-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ewp-ventto-tab-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
}

.ewp-ventto-tab-nav::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.ewp-ventto-tab-nav .nav-tab {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ewp-ventto-tab-nav .nav-tab:hover {
    background: #e9ecef;
    color: #333333;
}

.ewp-ventto-tab-nav .nav-tab.active {
    background: #000000;
    color: #ffffff;
    font-weight: 600;
}

.ewp-ventto-tab-nav .nav-tab i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Content */
.ewp-ventto-tab-content {
    display: none;
    padding: 20px;
}

.ewp-ventto-tab-content.active {
    display: block;
}

/* Specifications List */
.ewp-ventto-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ewp-ventto-spec-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e1e1e1;
    align-items: flex-start;
}

.ewp-ventto-spec-row:last-child {
    border-bottom: none;
}

.ewp-ventto-spec-row:hover {
    background: #f8f9fa;
}

/* Specification Label */
.ewp-ventto-spec-label {
    font-weight: 600;
    color: #333333;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.ewp-ventto-spec-label i {
    color: #0073aa;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Specification Value */
.ewp-ventto-spec-value {
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.ewp-ventto-spec-value p {
    margin: 0 0 8px 0;
}

.ewp-ventto-spec-value p:last-child {
    margin-bottom: 0;
}

/* No Specifications */
.ewp-ventto-no-specs {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
}

.ewp-ventto-no-specs p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ewp-ventto-tab-nav {
        flex-wrap: wrap;
    }
    
    .ewp-ventto-tab-nav .nav-tab {
        flex: 1 1 calc(50% - 1px);
        min-width: 120px;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .ewp-ventto-tab-nav .nav-tab i {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
    
    .ewp-ventto-spec-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 0;
    }
    
    .ewp-ventto-spec-label {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .ewp-ventto-spec-value {
        font-size: 13px;
    }
    
    .ewp-ventto-tab-content {
        padding: 15px;
    }
    
    .ewp-ventto-spec-row:hover {
        margin: 0 -15px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .ewp-ventto-tab-nav .nav-tab {
        flex: 1 1 100%;
        min-width: 100px;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .ewp-ventto-widget-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .ewp-ventto-tab-content {
        padding: 12px;
    }
    
    .ewp-ventto-spec-row {
        padding: 10px 0;
    }
    
    .ewp-ventto-spec-row:hover {
        margin: 0 -12px;
        padding: 10px 12px;
    }
}

/* Animation for tab switching */
.ewp-ventto-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Loading state */
.ewp-ventto-specs-widget.loading {
    position: relative;
    min-height: 200px;
}

.ewp-ventto-specs-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Print styles */
@media print {
    .ewp-ventto-tab-nav {
        display: none;
    }
    
    .ewp-ventto-tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
    
    .ewp-ventto-specs-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .ewp-ventto-spec-row {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ewp-ventto-specs-table {
        border: 2px solid #000;
    }
    
    .ewp-ventto-tab-nav .nav-tab {
        border: 1px solid #000;
    }
    
    .ewp-ventto-tab-nav .nav-tab.active {
        border-bottom: 3px solid #000;
        background: #000;
        color: #fff;
    }
    
    .ewp-ventto-spec-row {
        border-bottom: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ewp-ventto-tab-content {
        animation: none;
    }
    
    .ewp-ventto-tab-nav .nav-tab {
        transition: none;
    }
    
    .ewp-ventto-spec-row {
        transition: none;
    }
} 
