﻿/* --- Modal Genel Ayarları --- */
.custom-menu-modal .modal-content {
    background: transparent; /* Arkası şeffaf */
    border: none;
    box-shadow: none;
}

.modal-backdrop.show {
    opacity: 0.9 !important; /* Arka planı iyice karart */
    backdrop-filter: blur(8px); /* Bulanıklık efekti */
}

/* --- Kapatma Butonu --- */
.close-book-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1055;
}

    .close-book-btn:hover {
        background: #fff;
        color: #000;
    }

/* --- Kitap Konteyner --- */
.flip-book-container {
    display: none; /* JS yüklenene kadar gizli */
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); /* Derin gölge */
}

/* --- Sayfa Genel Yapısı --- */
.page {
    background-color: #fdfbf7; /* Krem kağıt rengi */
    overflow: hidden;
    border-right: 1px solid #e0e0e0; /* Sayfa ayrımı */
}

.page-inner {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03); /* İç çerçeve hafif */
}

/* --- Kapak Tasarımı (Hard Cover) --- */
.page-cover {
    background-color: #1e1e1e; /* Siyah Deri */
    background-image: url("https://www.transparenttextures.com/patterns/black-leather.png"); /* Deri dokusu */
    color: #d4af37; /* Altın Sarısı */
    border: 1px solid #000;
}

.page-content-border {
    border: 3px double #d4af37; /* Altın Çerçeve */
    height: 100%;
    margin: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-content {
    text-align: center;
}

.cover-logo {
    width: 120px;
    margin-bottom: 30px;
}

.cover-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 20px;
}

.cover-divider {
    width: 60px;
    height: 2px;
    background: #d4af37;
    margin: 0 auto 20px auto;
}

.cover-year {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #d4af37;
}

.cover-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #aaa;
    margin-top: 10px;
}

/* --- İç Sayfa Tipografisi --- */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #222;
    text-align: center;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.page-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 15px;
}

/* --- Menü Listesi Tasarımı --- */
.menu-item {
    margin-bottom: 25px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Playfair Display', serif;
}

.menu-name {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0; /* İsim sıkışmasın */
}

.menu-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #ccc; /* Noktalı çizgi */
    margin: 0 10px;
    position: relative;
    top: -5px;
}

.menu-price {
    font-size: 18px;
    font-weight: 700;
    color: #d4af37; /* Altın fiyat */
}

.menu-desc {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
    font-style: italic;
}

.page-number {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #aaa;
    font-family: 'Playfair Display', serif;
}

/* --- Responsive Ayar --- */
@media (max-width: 768px) {
    .page-title {
        font-size: 24px;
    }

    .cover-title {
        font-size: 30px;
    }

    .menu-name {
        font-size: 16px;
    }

    .page-inner {
        padding: 20px;
    }

    .close-book-btn {
        top: -40px;
        right: 10px;
    }
}
