/* =====================================================
   BREW & BEAN COFFEE - Ozel Stiller
   ===================================================== */

/* ---------- Genel ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Karla', sans-serif;
    overflow-x: hidden;
}

::selection {
    background-color: #78350f;
    color: #fef3c7;
}

/* ---------- Navigasyon Linkleri ---------- */
.nav-link {
    position: relative;
    color: #1c1917;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #78350f;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #78350f;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-active {
    color: #78350f !important;
}

.nav-active::after {
    width: 100% !important;
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1c1917 0%, #451a03 50%, #78350f 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(254,243,199,0.05)"/></svg>');
    background-size: 80px 80px;
}

.hero-floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-steam {
    animation: steam 3s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes steam {
    0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scaleX(1.2); opacity: 0.2; }
}

/* ---------- Section Baslik ---------- */
.section-title {
    font-family: 'Abril Fatface', cursive;
    font-size: 2.5rem;
    color: #78350f;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #78350f;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    width: 40px;
    height: 1px;
    background-color: #78350f;
}

/* ---------- Kart Efektleri ---------- */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.15);
}

/* ---------- Menu Kart ---------- */
.menu-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.menu-card:hover {
    border-color: #fde68a;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.1);
}

/* ---------- Placeholder Gorseller ---------- */
.img-placeholder {
    background: linear-gradient(135deg, #fde68a 0%, #d4a574 50%, #92400e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
}

.img-placeholder-alt {
    background: linear-gradient(135deg, #92400e 0%, #78350f 50%, #451a03 100%);
}

.img-placeholder-green {
    background: linear-gradient(135deg, #65a30d 0%, #4d7c0f 50%, #3f6212 100%);
}

/* ---------- Galeri Overlay ---------- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .img-placeholder {
    transform: scale(1.1);
    transition: transform 0.5s ease;
}

/* ---------- Iletisim Formu ---------- */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #fde68a;
    border-radius: 0.75rem;
    background: white;
    font-family: 'Karla', sans-serif;
    font-size: 0.95rem;
    color: #1c1917;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #78350f;
    box-shadow: 0 0 0 3px rgba(120, 53, 15, 0.1);
}

.form-input::placeholder {
    color: #a8a29e;
}

/* ---------- Barista Kartlari ---------- */
.barista-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: transform 0.3s ease;
}

.barista-card:hover {
    transform: translateY(-5px);
}

.barista-card .barista-social {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.barista-card:hover .barista-social {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Menu Kategori Tab ---------- */
.menu-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #fde68a;
    color: #78350f;
    background: white;
}

.menu-tab:hover,
.menu-tab.active {
    background: #78350f;
    border-color: #78350f;
    color: white;
}

/* ---------- Sayac Animasyonu ---------- */
.counter-box {
    text-align: center;
    padding: 2rem;
}

.counter-number {
    font-family: 'Abril Fatface', cursive;
    font-size: 3rem;
    color: #78350f;
    line-height: 1;
}

/* ---------- Dalgali Ayrac ---------- */
.wave-divider {
    position: relative;
    height: 60px;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}

/* ---------- Pulse Efekti ---------- */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #65a30d;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(101, 163, 13, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(101, 163, 13, 0); }
}

/* ---------- Sayfa Banner ---------- */
.page-banner {
    position: relative;
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #1c1917 0%, #451a03 50%, #78350f 100%);
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><circle cx="40" cy="40" r="1" fill="rgba(254,243,199,0.05)"/></svg>');
    background-size: 80px 80px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }

    .counter-number {
        font-size: 2.25rem;
    }

    .hero-section {
        min-height: 90vh;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* ---------- Animasyonlar ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Ozel Scrollbar ---------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fef3c7;
}

::-webkit-scrollbar-thumb {
    background: #78350f;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #92400e;
}

/* ---------- Overflow / Tasma Korumasi ---------- */
*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}
