/* Cafe (Kafe) Tema Stil Dosyası */

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    position: relative;
}

/* Kahve Tanecikleri Desenli Arka Plan */
.coffee-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%236f4e37' fill-opacity='0.03'%3E%3Cpath d='M20 20c0-9.94-8.06-20-20-20h15c9.94 0 20 8.06 20 20v15c0-9.94 8.06-20 20-20h15c-9.94 0-20-8.06-20-20z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

/* Header Stili */
.header {
    background: linear-gradient(rgba(111, 78, 55, 0.9), rgba(63, 46, 33, 0.8)), url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(111, 78, 55, 0.2);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 30" preserveAspectRatio="none"><path d="M0,0 C300,30 600,0 1200,30 L1200,30 L0,30 Z" fill="%23FDF9F5"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.cafe-logo {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    display: inline-block;
    position: relative;
    animation: steam 2s ease-in-out infinite;
}

.cafe-logo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 15px;
    width: 8px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0;
    animation: steam-bubble 2s ease-in-out infinite;
}

.cafe-logo::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 25px;
    width: 6px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    opacity: 0;
    animation: steam-bubble 2s ease-in-out 0.6s infinite;
}

@keyframes steam {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes steam-bubble {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    40% {
        opacity: 0.8;
    }
    80% {
        transform: translateY(-15px);
        opacity: 0;
    }
    100% {
        transform: translateY(-15px);
        opacity: 0;
    }
}

.cafe-name {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.tagline {
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Menü Konteyner */
.menu-container {
    background-color: var(--light-color);
    position: relative;
    z-index: 1;
    padding-bottom: 2rem;
}

/* Kategori Navigasyonu */
.category-navigation .nav-pills {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.category-navigation .nav-pills::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.category-navigation .nav-item {
    margin: 0 5px;
    white-space: nowrap;
}

.category-navigation .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.category-navigation .nav-link.active {
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(111, 78, 55, 0.3);
}

.category-navigation .nav-link:hover:not(.active) {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Kategori Başlığı */
.category-header {
    text-align: center;
    margin-bottom: 2rem;
}

.category-header h2 {
    font-family: 'Amatic SC', cursive;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.category-description {
    font-weight: 300;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 1.5rem;
}

.coffee-divider {
    margin: 1.5rem auto;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    position: relative;
}

.coffee-divider::before,
.coffee-divider::after {
    content: "";
    background-color: var(--primary-color);
    height: 1px;
    width: 100px;
    position: absolute;
    top: 50%;
    opacity: 0.3;
}

.coffee-divider::before {
    left: calc(50% - 120px);
}

.coffee-divider::after {
    right: calc(50% - 120px);
}

/* Ürün Kartı */
.product-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    border: 1px solid rgba(111, 78, 55, 0.1);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.caffeine-level {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.product-content {
    padding: 1.5rem;
    position: relative;
}

.product-content.with-image {
    padding-top: 1rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.product-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.product-price {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.9rem;
    line-height: 1;
    white-space: nowrap;
    margin-left: 10px;
}

.product-description {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}

.coffee-bean-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.9rem;
    opacity: 0.2;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(rgba(63, 46, 33, 0.8), rgba(111, 78, 55, 0.9)), url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: white;
    padding: 2rem 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 30" preserveAspectRatio="none"><path d="M0,30 C300,0 600,30 1200,0 L1200,0 L0,0 Z" fill="%23FDF9F5"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.cafe-name-footer {
    font-family: 'Amatic SC', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.coffee-footer-divider {
    margin: 1rem auto;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.operating-hours {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.created-with {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Mobil Sabit Menü */
.mobile-fixed-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.mobile-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-fixed-menu button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s;
    padding: 10px 20px;
    width: 100%;
}

.mobile-fixed-menu button i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.mobile-fixed-menu .menu-toggle span {
    color: var(--primary-color);
    font-weight: 500;
}

.mobile-fixed-menu button:hover {
    opacity: 1;
}

.mobile-fixed-menu button:active {
    transform: scale(0.95);
}

/* Mobil Kategori Açılır Panel */
.mobile-category-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    background-color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    height: 60vh;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}

.mobile-category-panel.active {
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--accent-color);
}

.panel-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: 'Amatic SC', cursive;
    font-size: 2rem;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.7;
    cursor: pointer;
}

.close-panel:hover {
    opacity: 1;
}

.panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 15px;
}

.category-list a {
    display: block;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.category-list a.active {
    background-color: var(--primary-color);
    color: white;
}

.category-list a:not(.active):hover {
    background-color: var(--accent-color);
}

.category-list a::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.7;
}

.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Tablet ve Mobil İçin Duyarlı Tasarım */
@media (max-width: 992px) {
    .cafe-name {
        font-size: 3rem;
    }
    
    .product-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .mobile-fixed-menu {
        display: block;
    }
    
    .category-navigation {
        display: none;
    }
    
    /* Alt menü için padding ekle */
    body {
        padding-bottom: 70px;
    }
    
    .footer {
        padding-bottom: calc(2rem + 70px);
    }
    
    .category-header h2 {
        font-size: 2.5rem;
    }
    
    .product-header {
        flex-direction: column;
    }
    
    .product-price {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .cafe-name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .category-header h2 {
        font-size: 2.2rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .cafe-name-footer {
        font-size: 2rem;
    }
}
