/**
 * Lebasino Size Guides - Frontend Styles
 * Version: 4.1.0 (Multi-Tab Support)
 */

/* --- Standard Button Style --- */
.lebasino-sg-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 18px;
    margin: 15px 0;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1.2;
    width: fit-content;
}
.lebasino-sg-open-btn:hover {
    background-color: #e9e9e9;
    border-color: #ccc;
}

/* --- Floating Button Styles --- */
.woocommerce-product-gallery {
    position: relative;
}

.lebasino-sg-floating-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 10;
    margin: 0; 
    background-color: var(--lebasino-sg-floating-btn-bg, #2d3748); 
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    font-size: 14px;
    transition: filter 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lebasino-sg-floating-btn:hover {
    background-color: var(--lebasino-sg-floating-btn-bg, #2d3748); 
    color: #fff;
    filter: brightness(90%); 
}
.lebasino-sg-floating-btn:focus {
    color: #fff;
}

/* --- Modal Overlay --- */
.lebasino-sg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); display: flex; justify-content: center;
    align-items: center; padding: 20px; box-sizing: border-box;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease; z-index: 99999;
}
.lebasino-sg-overlay.active { opacity: 1; visibility: visible; }

/* --- Modal Container --- */
.lebasino-sg-container.lebasino-sg-context-modal {
    background: #fff; padding: 0; border-radius: 12px; width: 100%;
    max-width: 800px; max-height: 90vh; overflow: hidden; display: flex;
    flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.lebasino-sg-overlay.active .lebasino-sg-container.lebasino-sg-context-modal { transform: scale(1); }

/* --- Modal Header --- */
.lebasino-sg-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 25px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.lebasino-sg-header h2 { margin: 0; font-size: 20px; }
.lebasino-sg-close-btn { background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: #999; padding: 5px; }

/* --- Shared Content & Multi-Tab Styles --- */
.lebasino-sg-container h2 { font-size: 22px; margin-top: 0; margin-bottom: 25px; }
.lebasino-sg-content { display: grid; grid-template-columns: 1fr; padding: 25px; gap: 30px; overflow-y: auto; }
@media (min-width: 768px) { .lebasino-sg-content { grid-template-columns: 250px 1fr; } }
.lebasino-sg-visual-guide img { width: 100%; border-radius: 8px; border: 1px solid #eee; }

.lebasino-sg-table-wrapper { overflow-x: auto; }

/* Tabs Navigation Bar */
.lebasino-sg-tabs-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.lebasino-sg-tab-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lebasino-sg-tab-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}
.lebasino-sg-tab-btn.active {
    background: #2b6cb0;
    color: #ffffff;
    border-color: #2b6cb0;
    font-weight: 600;
}

/* Tab Panes */
.lebasino-sg-tab-pane {
    display: none;
}
.lebasino-sg-tab-pane.active {
    display: block;
}

/* Size Table */
.lebasino-sg-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.lebasino-sg-table th, .lebasino-sg-table td { padding: 12px 10px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.lebasino-sg-table thead { background-color: #f7fafc; }
.lebasino-sg-table th { font-weight: 600; color: #4a5568; font-size: 13px; vertical-align: middle; }
.lebasino-sg-table th span { display: block; font-size: 11px; font-weight: normal; color: #2271b1; margin-top: 2px; }
.lebasino-sg-table tbody tr:last-child td { border-bottom: none; }
