:root {
    --primary-color: #6d4c41;
    --secondary-color: #a1887f;
    --accent-color: #d7ccc8;
    --dark-color: #3e2723;
    --light-color: #efebe9;
    --text-color: #4e342e;
    --gold-color: #c9a227;
    --transition: all 0.4s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f1ee;
    background-image: url('https://images.unsplash.com/photo-1554119921-6c285c374b2f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 241, 238, 0.92);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(to bottom, rgba(62, 39, 35, 0.85), rgba(62, 39, 35, 0.75)), 
                url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 1rem 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 0;
    width: 100%;
}

.logo-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 2px solid var(--gold-color);
    margin-bottom: 2rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 3px;
    position: relative;
    padding: 15px 30px;
}

.slogan {
    font-size: 1.4rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

.history-badge {
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--gold-color);
    border-radius: 20px;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(201, 162, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* Navigation */
.categories {
    padding: 1.2rem 0;
    background: rgba(161, 136, 127, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.categories .container {
    display: flex;
    flex-wrap: nowrap; 
    overflow-x: auto;
    gap: 10px;
    justify-content: flex-start;
    padding-bottom: 10px;
    margin-bottom: -10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories .container::-webkit-scrollbar {
    display: none;
}


.category-btn {
    background: transparent;
    border: 2px solid var(--light-color);
    color: var(--light-color);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transition: width 0.4s ease-out, height 0.4s ease-out, top 0.4s ease-out, left 0.4s ease-out;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
}

.category-btn:hover::before {
    width: 150%;
    height: 150%;
    opacity: 1;
}

.category-btn.active::before {
    width: 150%;
    height: 150%;
    opacity: 1;
}

.category-btn:hover, .category-btn.active {
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}


/* Menu Grid */
.menu-container {
    padding: 3rem 0;
    min-height: 70vh;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.menu-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.item-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.item-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
}

.item-price {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
}

.item-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex-grow: 1;
    line-height: 1.6;
}

.item-varieties {
    margin-top: 15px;
    background: var(--light-color);
    border-radius: 10px;
    padding: 15px;
}

.variety-title {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variety-title i {
    font-size: 1.2rem;
}

.variety-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variety-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.variety-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
}

/* === "EN ÇOK SATANLAR" ROZETİ İÇİN YENİ STİL (İsteğiniz üzerine güncellendi) === */
.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #af9d5d; /* Resimdeki gibi matlaştırılmış altın rengi */
    color: var(--dark-color); /* Koyu renk yazı */
    padding: 5px 12px;        /* Daha dengeli iç boşluk */
    border-radius: 8px;       /* Hap şeklinde değil, daha yumuşak köşeli */
    font-size: 0.8rem;        /* Biraz daha küçük yazı boyutu */
    font-weight: 500;         /* Daha az kalın yazı */
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Hafif gölge efekti */
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--accent-color);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--gold-color);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold-color);
    transform: translateY(-5px);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: var(--secondary-color);
}


/* BEYAZ FİNCAN VE GERÇEKÇİ BUHAR ANİMASYONU */
@keyframes fadeInLoader {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes steamRise {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8) rotate(5deg);
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1.5) rotate(-10deg);
  }
}

/* Yükleme Ekranı Ana Konteyneri */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    animation: fadeInLoader 1.5s ease-out forwards;
}

.cup-container {
    position: relative;
    animation: fadeInLoader 1.5s ease-out forwards;
}

.cup-body {
    width: 80px;
    height: 70px;
    border: 6px solid var(--accent-color);
    border-top: none;
    border-radius: 0 0 45px 45px;
    background: transparent;
    position: relative;
    z-index: 2;
}

.cup-handle {
    width: 30px;
    height: 40px;
    border: 6px solid var(--accent-color);
    border-left: none;
    border-radius: 0 15px 15px 0;
    position: absolute;
    top: 15px;
    right: -30px;
    z-index: 1;
}

.steam-container {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    filter: blur(2px);
    z-index: 5;
}

.steam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: steamRise 4s infinite ease-in-out;
}

.steam:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.steam:nth-child(2) {
    left: 45%;
    animation-delay: 1.5s;
    animation-duration: 4.5s;
}

.steam:nth-child(3) {
    left: 70%;
    animation-delay: 2.5s;
    animation-duration: 5.5s;
}


/* Responsive Styles */
@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .slogan {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
}

@media (max-width: 600px) {
    .logo-container {
        width: 180px;
        height: 180px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .slogan {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .history-badge {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    
    .categories {
        padding: 0.8rem 0;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* YUKARI ÇIK BUTONU STİLLERİ */
#scrollToTopBtn {
    display: none; /* JavaScript ile görünecek */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.4s, transform 0.4s, background-color 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

#scrollToTopBtn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#scrollToTopBtn:hover {
    background-color: var(--gold-color);
    transform: translateY(-5px);
}