/*
 * FitnessWell Booking – Frontend Styles
 * public/style.css
 */

/* Ana kutu */
.fwb-wrapper {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 20px 20px 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fwb-primary: #f97373;
    --fwb-primary-dark: #ea5454;
    --fwb-border: #e5e7eb;
    --fwb-text: #111827;
    --fwb-muted: #6b7280;
}

/* Cihaz seçici */
.fwb-wrapper > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fwb-text);
    margin-bottom: 4px;
}

#fwb_device_selector {
    width: 100%;
    max-width: 260px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--fwb-border);
    font-size: 13px;
    color: var(--fwb-text);
    background: #f9fafb;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 14px;
}

#fwb_device_selector:focus {
    border-color: var(--fwb-primary);
    box-shadow: 0 0 0 1px rgba(249, 115, 115, 0.35);
}

/* Takvim ile form arası boşluk */
#fwb-calendar {
    margin-top: 10px;
    margin-bottom: 18px;
}

/* Form alanı */
#fwb-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fwb-text);
}

#fwb-form input[type="text"],
#fwb-form input[type="tel"],
#fwb-form input[type="date"],
#fwb-form input[type="time"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--fwb-border);
    font-size: 13px;
    box-sizing: border-box;
    color: var(--fwb-text);
    background: #ffffff;
}

#fwb-form input[readonly] {
    background: #f9fafb;
    color: #4b5563;
}

#fwb-form input:focus {
    outline: none;
    border-color: var(--fwb-primary);
    box-shadow: 0 0 0 1px rgba(249, 115, 115, 0.35);
}

/* Telefon alanı satırı (+905 + input) */
#fwb-form div[style*="display:flex"][style*="align-items:center"] {
    margin-top: 4px;
}

#fwb-form div[style*="display:flex"] span {
    font-size: 13px;
    color: var(--fwb-text);
    padding: 6px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid var(--fwb-border);
}

/* Kaydet butonu */
#fwb-form button[type="submit"] {
    margin-top: 16px;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: var(--fwb-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease;
}

#fwb-form button[type="submit"]:hover {
    background: var(--fwb-primary-dark);
    transform: translateY(-1px);
}

#fwb-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Mesaj alanı */
.fwb-msg {
    margin-top: 10px;
    font-size: 13px;
    padding: 6px 9px;
    border-radius: 6px;
    display: none; /* JS’te success/error verince display:block yapılabilir */
}

.fwb-msg.fwb-success {
    display: block;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.fwb-msg.fwb-error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ———————————————————————
   FullCalendar görünüm iyileştirmeleri
   ——————————————————————— */

#fwb-calendar .fc {
    font-size: 12px;
}

/* Toolbar */
#fwb-calendar .fc-toolbar.fc-header-toolbar {
    margin-bottom: 0.75rem;
}

#fwb-calendar .fc-toolbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--fwb-text);
}

/* Butonlar */
#fwb-calendar .fc-button-primary {
    background: var(--fwb-primary);
    border-color: var(--fwb-primary);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    text-transform: none;
    box-shadow: none;
}

#fwb-calendar .fc-button-primary:hover {
    background: var(--fwb-primary-dark);
    border-color: var(--fwb-primary-dark);
}

#fwb-calendar .fc-button-primary:disabled {
    opacity: 0.6;
}

/* “Bugün” butonu biraz öne çıksın */
#fwb-calendar .fc-today-button {
    font-weight: 600;
}

/* Gün başlıkları (Pzt 25) */
#fwb-calendar .fc-col-header-cell-cushion {
    padding: 4px 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--fwb-text);
}

/* Bugünün arkaplanı */
#fwb-calendar .fc-day-today {
    background: rgba(249, 115, 115, 0.06);
}

/* Slot yükseklikleri ve etiketler */
#fwb-calendar .fc-timegrid-slot {
    height: 2.3em;
}

#fwb-calendar .fc-timegrid-slot-label {
    font-size: 11px;
    color: var(--fwb-muted);
}

/* Şu an çizgisi */
#fwb-calendar .fc-timegrid-now-indicator-arrow,
#fwb-calendar .fc-timegrid-now-indicator-line {
    border-color: var(--fwb-primary);
}

/* Etkinlikler (Müsait Değil blokları) */
#fwb-calendar .fc-event {
    border-radius: 6px;
    border: none;
    font-size: 11px;
    padding: 2px 4px;
}

/* Olay metni kırpılmasın */
#fwb-calendar .fc-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Month/day grid görünümünde hücre padding’i biraz azalt */
#fwb-calendar .fc-daygrid-day-frame {
    padding: 4px;
}

/* Mobil iyileştirmeleri */
@media (max-width: 768px) {

    .fwb-wrapper {
        padding: 14px 10px 18px;
        margin: 0 auto 24px;
        border-radius: 8px;
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    }

    #fwb-calendar .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    #fwb-calendar .fc-toolbar-chunk {
        text-align: center;
    }

    #fwb-calendar .fc-toolbar-title {
        font-size: 14px;
    }

    #fwb-calendar .fc-button-primary {
        padding: 3px 8px;
        font-size: 11px;
    }
}
