/* Photography Booking System - Frontend Styles */

.pbs-booking-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.pbs-no-subscription {
    text-align: center;
    padding: 40px 20px;
}

.pbs-no-subscription .woocommerce-message {
    margin: 20px 0;
    padding: 20px;
    background: #f7f7f7;
    border-left: 4px solid #2ea2cc;
}

/* Current Booking Styles */
.pbs-current-booking {
    margin-bottom: 30px;
}

.pbs-booking-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pbs-booking-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.pbs-booking-details {
    margin: 20px 0;
}

.pbs-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.pbs-detail-item:last-child {
    border-bottom: none;
}

.pbs-detail-item strong {
    color: #2c3e50;
    min-width: 100px;
}

.pbs-booking-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pbs-change-notice {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.pbs-no-change-notice {
    margin-top: 10px;
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
}

/* User bookings styles */
.pbs-user-bookings {
    margin-bottom: 30px;
}

.pbs-user-bookings h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.pbs-booking-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.pbs-booking-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.pbs-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.pbs-booking-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.pbs-booking-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.pbs-status-upcoming {
    background: #e8f5e8;
    color: #2e7d32;
}

.pbs-status-imminent {
    background: #fff3cd;
    color: #856404;
}

.pbs-status-past {
    background: #f8f9fa;
    color: #6c757d;
}

.pbs-booking-past {
    opacity: 0.7;
}

/* Booking Form Styles */
.pbs-booking-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.pbs-form-step {
    margin-bottom: 30px;
}

.pbs-form-step h4 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Location Selection */
.pbs-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pbs-location-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pbs-location-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pbs-location-card.selected {
    border-color: #27ae60;
    background-color: #f8fff8;
}

.pbs-location-card h5 {
    margin-top: 0;
    color: #2c3e50;
}

.pbs-location-address {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.pbs-location-description {
    color: #555;
    font-size: 14px;
    margin: 10px 0;
}

.pbs-location-card .button {
    width: 100%;
    margin-top: 15px;
}

/* Date/Time Selection */
.pbs-selected-location {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pbs-selected-location strong {
    color: #2c3e50;
}

.pbs-selected-location .button-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.pbs-month-selector {
    margin-bottom: 20px;
}

.pbs-month-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

.pbs-month-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Sessions Button Layout Styles */
.pbs-sessions-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pbs-sessions-header {
    background: #3498db;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.pbs-sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px;
}

.pbs-no-sessions {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.pbs-session-button {
    background: #fff;
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.pbs-session-button:hover {
    border-color: #229954;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
    transform: translateY(-2px);
}

.pbs-session-button.selected {
    border-color: #e74c3c;
    background: #fff5f5;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.pbs-session-button.fully-booked {
    background: #f8f9fa;
    border-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.pbs-session-button.fully-booked:hover {
    transform: none;
    box-shadow: none;
}

.pbs-session-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pbs-session-day {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.pbs-session-date-num {
    color: #666;
    font-size: 14px;
}

.pbs-session-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pbs-session-time-text {
    font-weight: bold;
    color: #27ae60;
    font-size: 18px;
}

.pbs-session-button.fully-booked .pbs-session-time-text {
    color: #95a5a6;
}

.pbs-session-duration {
    color: #666;
    font-size: 14px;
}

.pbs-session-status {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.pbs-session-button.fully-booked .pbs-session-status {
    color: #e74c3c;
    font-weight: bold;
}

/* Confirmation Step */
.pbs-booking-summary {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.pbs-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.pbs-summary-item:last-child {
    border-bottom: none;
}

.pbs-summary-item strong {
    color: #2c3e50;
}

/* Booking form actions (confirmation step) */
.pbs-form-step .pbs-booking-actions {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading States */
.pbs-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.pbs-loading:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Status Indicators */
.status-active, .status-confirmed, .status-available {
    color: #27ae60;
    font-weight: bold;
}

.status-inactive, .status-cancelled {
    color: #e74c3c;
    font-weight: bold;
}

.status-full, .status-completed {
    color: #f39c12;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pbs-booking-container {
        padding: 10px;
    }
    
    .pbs-locations-grid {
        grid-template-columns: 1fr;
    }
    
    .pbs-sessions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .pbs-session-button {
        padding: 12px;
    }
    
    .pbs-session-day {
        font-size: 14px;
    }
    
    .pbs-session-time-text {
        font-size: 16px;
    }
    
    .pbs-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .pbs-booking-actions {
        flex-direction: column;
    }
    
    .pbs-selected-location {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Calendar dropdown mobile adjustments */
    .psb-calendar-options {
        left: 50%;
        transform: translateX(-50%);
        min-width: 180px;
    }
    
    .psb-calendar-toggle {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Calendar Integration Styles */
.psb-calendar-buttons {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.psb-calendar-dropdown {
    position: relative;
    display: inline-block;
}

.psb-calendar-toggle {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.psb-calendar-toggle:hover {
    background: #229954;
}

.psb-dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.psb-calendar-dropdown.open .psb-dropdown-arrow {
    transform: rotate(180deg);
}

.psb-calendar-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.psb-calendar-dropdown.open .psb-calendar-options {
    display: block;
}

.psb-calendar-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.psb-calendar-option:last-child {
    border-bottom: none;
}

.psb-calendar-option:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.psb-calendar-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Accessibility */
.pbs-location-card:focus,
.pbs-session-button:focus,
.psb-calendar-toggle:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
}
