/* ========================================
   IMPERIAL CUTS BOOKING - FRONTEND STYLES
   ======================================== */

/* Component styles are enqueued separately in class-frontend.php
   (with ICB_PLUGIN_VERSION) so browsers cache-bust correctly. */

/* ========================================
   LEGACY STYLES (to be removed gradually)
   ======================================== */

/* Keep existing styles that haven't been moved to components yet */
/* These will be gradually moved to appropriate component files */

/* Service Selection Styles */
.icb-selection-section {
    margin-bottom: 20px;
}

.icb-selection-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.icb-selection-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

/* Inline Selects */
.icb-inline-selects {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.icb-select-half {
    flex: 1;
}

.icb-select-half label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.icb-select-container {
    position: relative;
}

.icb-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    line-height: 1.4;
}

.icb-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.icb-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 12px;
}

/* Custom Barber Select */
.icb-custom-select-container {
    position: relative;
}

.icb-custom-select {
    position: relative;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icb-custom-select:hover {
    border-color: #3b82f6;
}

.icb-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
}

.icb-custom-select-placeholder {
    color: #9ca3af;
}

.icb-custom-select-arrow {
    color: #6b7280;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.icb-custom-select.open .icb-custom-select-arrow {
    transform: rotate(180deg);
}

.icb-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.icb-custom-select.open .icb-custom-select-options {
    display: block;
}

.icb-custom-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.icb-custom-select-option:hover {
    background: #f8fafc;
}

.icb-custom-select-option.selected {
    background: #e0f2fe;
    color: #0369a1;
}

.icb-barber-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.icb-barber-info-text {
    flex: 1;
}

.icb-barber-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.icb-barber-title {
    font-size: 12px;
    color: #6b7280;
}

/* Service Info */
.icb-service-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
}

.icb-service-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Time Slots (Legacy) */
.icb-time-slots-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.icb-time-slots-section h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.icb-time-slots-container {
    position: relative;
}

.icb-loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.icb-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.icb-time-slot {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.icb-time-slot:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
    transform: translateY(-1px);
}

.icb-time-slot.selected {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
    font-weight: 600;
}

.icb-time {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .icb-inline-selects {
        flex-direction: column;
        gap: 15px;
    }
    
    .icb-selection-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .icb-time-slots-section {
        padding: 15px;
    }
}
