/**
 * Public CSS
 *
 * @package Event_Booking_Manager
 * @since 1.0.0
 */

/* ===================================
   SINGLE EVENT
   =================================== */

.ebm-single-event {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ebm-event-image {
    margin: 20px 0;
}

.ebm-event-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ebm-event-meta {
    background: #f5f5f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.ebm-event-meta p {
    margin: 10px 0;
}

.ebm-event-calendar-section {
    margin: 40px 0;
}

.ebm-event-calendar-section h2 {
    margin-bottom: 20px;
}

.ebm-no-dates {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    text-align: center;
}

/* ===================================
   CALENDAR
   =================================== */

.ebm-calendar-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

#ebm-calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fc-event-slots {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.fc-event-full {
    background-color: #dc3232 !important;
    border-color: #dc3232 !important;
    opacity: 0.6;
}

/* ===================================
   MODAL
   =================================== */

.ebm-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.ebm-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ebm-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.ebm-close:hover {
    color: #000;
}

.ebm-booking-details {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ebm-booking-details p {
    margin: 8px 0;
}

/* ===================================
   BOOKING FORM
   =================================== */

.ebm-booking-form {
    margin-top: 20px;
}

.ebm-form-group {
    margin-bottom: 20px;
}

.ebm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ebm-form-group input[type="text"],
.ebm-form-group input[type="email"],
.ebm-form-group input[type="tel"],
.ebm-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ebm-form-group input:focus,
.ebm-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.ebm-form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.ebm-privacy-checkbox {
    display: flex;
    align-items: flex-start;
}

.ebm-privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.ebm-privacy-checkbox input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.ebm-available-slots {
    background: #d1f0d1;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* Buttons */
.ebm-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ebm-button:hover {
    background: #005177;
}

.ebm-button-primary {
    background: #0073aa;
}

.ebm-button-primary:hover {
    background: #005177;
}

.ebm-form-group button[type="submit"] {
    width: 100%;
}

.ebm-form-group button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.ebm-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
}

.ebm-message-success {
    background: #d1f0d1;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ebm-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ebm-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.ebm-alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.required {
    color: #dc3232;
}

/* ===================================
   EVENTS GRID
   =================================== */

.ebm-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ebm-event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ebm-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ebm-card-image {
    overflow: hidden;
}

.ebm-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.ebm-event-card:hover .ebm-card-image img {
    transform: scale(1.05);
}

.ebm-card-content {
    padding: 20px;
}

.ebm-card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.ebm-card-title a {
    color: #333;
    text-decoration: none;
}

.ebm-card-title a:hover {
    color: #0073aa;
}

.ebm-card-professional {
    color: #666;
    margin: 0 0 10px 0;
}

.ebm-card-excerpt {
    color: #555;
    margin: 10px 0;
    line-height: 1.6;
}

.ebm-card-next-date {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
}

.ebm-card-footer {
    margin-top: 15px;
    text-align: center;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .ebm-single-event {
        padding: 10px;
    }
    
    .ebm-modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .ebm-events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
