/* ============================================
   Star Kuaf�r Booking - Premium Dark & Gold CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Color Palette (reference) ──
   Primary/Gold:   #C8A97E
   Background:     #0A0A0A
   Surface:        #1A1A1A
   Surface Light:  #2A2A2A
   Text:           #F5F5F5
   Text Muted:     #888888
   Error/Booked:   #E74C3C
   Available:      #2ECC71
   Selected:       #3498DB
   Past:           #333333
   ───────────────────────────── */

/* ── Base / Wrapper ── */

*[class^="bk-"],
*[class*=" bk-"] {
    box-sizing: border-box;
}

.bk-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: 'Inter', sans-serif;
}

/* ── Week Navigation ── */

.bk-week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.bk-nav-btn {
    background: transparent;
    border: 1px solid #C8A97E;
    color: #C8A97E;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bk-nav-btn:hover {
    background: #C8A97E;
    color: #0A0A0A;
    transform: translateY(-1px);
}

.bk-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.bk-nav-icon { display: none; }

.bk-week-title {
    font-family: 'Playfair Display', serif;
    color: #C8A97E;
    font-size: 1.5rem;
    text-align: center;
    margin: 0;
}

/* ── Legend ── */

.bk-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.bk-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888888;
}

.bk-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.bk-legend-dot.bk-available {
    background: #2ECC71;
}

.bk-legend-dot.bk-booked {
    background: #E74C3C;
}

.bk-legend-dot.bk-selected {
    background: #3498DB;
}

.bk-legend-dot.bk-past {
    background: #333333;
}

/* ── Calendar Grid ── */

.bk-calendar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* ── Day Column ── */

.bk-day-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bk-day-header {
    text-align: center;
    padding: 12px 8px;
    background: #1A1A1A;
    border-radius: 12px;
    border: 1px solid #2A2A2A;
    margin-bottom: 4px;
}

.bk-day-name {
    display: block;
    font-weight: 600;
    color: #F5F5F5;
    font-size: 14px;
}

.bk-day-date {
    display: block;
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
}

/* ── Slots ── */

.bk-slot {
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    gap: 2px;
}

.bk-slot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Available */
.bk-slot--available {
    background: #1A1A1A;
    border-color: #2ECC71;
}

.bk-slot--available::before {
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, transparent 70%);
}

.bk-slot--available:hover {
    background: rgba(46, 204, 113, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.bk-slot--available:hover::before {
    opacity: 1;
}

.bk-slot--available .bk-slot-status {
    color: #2ECC71;
}

/* Booked */
.bk-slot--booked {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.4);
    cursor: not-allowed;
    opacity: 0.8;
}

.bk-slot--booked .bk-slot-status {
    color: #E74C3C;
    font-size: 11px;
}

.bk-slot--booked .bk-slot-time {
    color: #888888;
}

/* Selected */
.bk-slot--selected {
    background: rgba(52, 152, 219, 0.2);
    border: 2px solid #3498DB;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.bk-slot--selected .bk-slot-status {
    color: #3498DB;
}

/* Past */
.bk-slot--past {
    background: #1A1A1A;
    border-color: #333333;
    opacity: 0.4;
    cursor: not-allowed;
}

.bk-slot--past .bk-slot-status {
    color: #555555;
}

.bk-slot--past .bk-slot-time {
    color: #555555;
}

/* Slot inner elements */
.bk-slot-time {
    font-weight: 600;
    font-size: 14px;
    color: #F5F5F5;
    position: relative;
    z-index: 1;
}

.bk-slot-status {
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* ── Modal ── */

.bk-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.bk-modal.active {
    display: flex;
}

.bk-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.bk-modal-content {
    position: relative;
    background: #1A1A1A;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(200, 169, 126, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s ease-out;
}

.bk-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #C8A97E;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.bk-modal-close:hover {
    transform: rotate(90deg);
}

.bk-modal-content h3 {
    font-family: 'Playfair Display', serif;
    color: #C8A97E;
    font-size: 1.5rem;
    margin: 0 0 10px;
    text-align: center;
}

.bk-selected-info {
    text-align: center;
    color: #888888;
    font-size: 14px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2A2A2A;
}

/* ── Form ── */

.bk-form-group {
    margin-bottom: 20px;
}

.bk-form-group label {
    display: block;
    color: #C8A97E;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.bk-form-group input {
    background: #0A0A0A;
    border: 1px solid #333333;
    border-radius: 10px;
    padding: 12px 16px;
    color: #F5F5F5;
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.bk-form-group input::placeholder {
    color: #555555;
}

.bk-form-group input:focus {
    border-color: #C8A97E;
    outline: none;
    box-shadow: 0 0 10px rgba(200, 169, 126, 0.2);
}

.bk-form-group .bk-input-error {
    border-color: #E74C3C;
}

.bk-error-text {
    color: #E74C3C;
    font-size: 12px;
    margin-top: 4px;
}

/* ── Submit Button ── */

.bk-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #C8A97E 0%, #A8895E 100%);
    color: #0A0A0A;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.bk-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 126, 0.4);
}

.bk-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bk-submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

/* ── Toast Notifications ── */

.bk-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    z-index: 1001;
    transform: translateX(120%);
    transition: transform 0.4s ease;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bk-toast.show {
    transform: translateX(0);
}

.bk-toast.success,
.bk-toast.bk-toast--success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ECC71;
    color: #2ECC71;
}

.bk-toast.error,
.bk-toast.bk-toast--error {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid #E74C3C;
    color: #E74C3C;
}

/* ── Loading ── */

.bk-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    grid-column: 1 / -1;
}

.bk-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #2A2A2A;
    border-top-color: #C8A97E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ── Empty State ── */

.bk-empty-state,
.bk-no-slots {
    text-align: center;
    padding: 40px;
    color: #888888;
    grid-column: 1 / -1;
    font-size: 14px;
}

/* Shop Header */
.bk-shop-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.bk-shop-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.bk-shop-name {
    font-family: 'Playfair Display', serif;
    color: #C8A97E;
    font-size: 2rem;
    margin: 0 0 5px;
}

.bk-shop-subtitle {
    color: #888888;
    font-size: 14px;
    margin: 0;
}

/* Modal Header */
.bk-modal-header {
    text-align: center;
    margin-bottom: 10px;
}

.bk-modal-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

/* Slot label */
.bk-slot-label {
    font-size: 11px;
    margin-left: 2px;
}

/* ============================================
   Keyframe Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet landscape */
@media (max-width: 1024px) {
    .bk-calendar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .bk-calendar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .bk-slot {
        height: 50px;
    }

    .bk-week-title {
        font-size: 1.2rem;
    }

    .bk-modal-content {
        padding: 25px;
    }

    .bk-nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .bk-calendar {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding: 10px 10% 30px 10%; /* Yanlardan %10 boşluk bırakarak kartı ortalıyoruz */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        position: relative;
    }

    /* Kaydırma İpucu (Scroll Hint) */
    .bk-calendar::after {
        content: '← Sola Kaydırın →';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 10px;
        color: #C8A97E;
        opacity: 0.6;
        letter-spacing: 1px;
        text-transform: uppercase;
        pointer-events: none;
    }

    .bk-calendar::-webkit-scrollbar {
        display: none;
    }

    .bk-day-column {
        flex: 0 0 80%; /* Kart genişliğini %80 yaparak sağdaki kartın %20'sinin görünmesini sağlıyoruz */
        min-width: 250px;
        scroll-snap-align: center;
        background: rgba(26, 26, 26, 0.5);
        padding: 15px;
        border-radius: 20px;
        border: 1px solid #2A2A2A;
        transition: all 0.4s ease;
        opacity: 0.5;
        transform: scale(0.95);
        filter: grayscale(0.5);
    }

    /* Aktif Gün */
    .bk-day-column.bk-active-day {
        opacity: 1;
        transform: scale(1);
        background: rgba(30, 30, 30, 0.9);
        border-color: #C8A97E;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        filter: grayscale(0);
    }

    .bk-day-header {
        background: #C8A97E;
        border: none;
    }

    .bk-day-name {
        color: #0A0A0A;
    }

    .bk-day-date {
        color: rgba(0,0,0,0.6);
    }

    .bk-week-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 5px;
    }

    .bk-nav-btn {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bk-nav-text { display: none; }
    .bk-nav-icon { display: block; font-size: 18px; line-height: 1; }

    .bk-week-title {
        font-size: 1rem;
        flex: 1;
    }

    .bk-slot {
        height: 52px;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 16px;
        background: #0A0A0A;
        border-color: #2A2A2A;
    }

    .bk-slot--available {
        border-color: #2ECC71;
    }

    .bk-slot-time {
        font-size: 15px;
    }

    .bk-toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .bk-modal-content {
        padding: 20px;
        border-radius: 15px;
        width: 95%;
    }

    .bk-legend {
        gap: 10px;
        justify-content: center;
        margin-bottom: 20px;
    }

    .bk-legend-item {
        font-size: 11px;
    }

    .bk-shop-name {
        font-size: 1.5rem;
    }

    .bk-shop-header {
        margin-bottom: 15px;
        padding: 10px;
    }
}
