body {
    background-color: #F9F7F2;
    /* Resmi %90 oranında kendi arka plan rengimizle (krem) yıkıyoruz, böylece çok hafif bir doku kalıyor */
    background-image: linear-gradient(rgba(249, 247, 242, 0.90), rgba(249, 247, 242, 0.90)), url("../images/old_wall_bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Ambient Shadows */
.shadow-ambient-sm {
    box-shadow: 0 2px 8px rgba(37, 65, 84, 0.04);
}

.shadow-ambient-md {
    box-shadow: 0 4px 20px rgba(37, 65, 84, 0.08);
}

.shadow-ambient-lg {
    box-shadow: 0 12px 40px rgba(37, 65, 84, 0.12);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37, 65, 84, 0.12);
}

.vintage-border {
    border: 1px solid rgba(37, 65, 84, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.vintage-border-dark {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --- Kaydırıldıkça beliren bölüm animasyonları ---
   js/components.js içindeki IntersectionObserver, görünür alana giren
   [data-reveal] öğelerine .is-visible sınıfını ekler.

   Kurallar bilerek `html.av-js` altına alındı: .av-js sınıfını
   js/tailwind-config.js (head'de yüklenir) ekler. Böylece JavaScript
   çalışmazsa içerik gizlenmez, sayfa normal görünür. */
html.av-js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

html.av-js [data-reveal="left"] {
    transform: translateX(-32px);
}

html.av-js [data-reveal="right"] {
    transform: translateX(32px);
}

html.av-js [data-reveal="zoom"] {
    transform: scale(.94);
}

html.av-js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Aynı grid içindeki kartların sırayla belirmesi için */
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
    html.av-js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Hero başlığındaki yumuşak giriş */
@keyframes av-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.av-hero-in {
    animation: av-fade-up .9s cubic-bezier(.22, .61, .36, 1) both;
}

.av-hero-in-delay-1 { animation-delay: .15s; }
.av-hero-in-delay-2 { animation-delay: .3s; }
.av-hero-in-delay-3 { animation-delay: .45s; }

/* Zemindeki yavaş kayan doku (hero ve vitrin bantlarında) */
@keyframes av-pan {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.14) translate3d(0, -1.5%, 0); }
}

.av-slow-pan {
    animation: av-pan 22s ease-in-out infinite alternate;
}

/* Butonlarda ve kartlarda ortak yumuşak geçiş */
.av-lift {
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}

.av-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(37, 65, 84, 0.16);
}

/* Maskot üzerindeki "yeni mesaj" uyarısı */
@keyframes av-pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(186, 26, 26, .55); }
    70% { box-shadow: 0 0 0 14px rgba(186, 26, 26, 0); }
    100% { box-shadow: 0 0 0 0 rgba(186, 26, 26, 0); }
}

.av-pulse {
    animation: av-pulse-ring 1.8s ease-out infinite;
}

/* Mobile Menu Panel Opaque Background */
#mobile-menu-panel {
    background-color: #F9F7F2 !important;
    background-image: linear-gradient(rgba(249, 247, 242, 0.98), rgba(249, 247, 242, 0.98)), url("../images/old_wall_bg.png");
    background-size: cover;
    background-position: center;
}



/* ============================================================
   MOBİL YERLEŞİM
   Alt gezinme çubuğu sabit konumlu; sayfanın son içeriği onun
   altında kalmasın diye gövdeye boşluk bırakılır.
   ============================================================ */
@media (max-width: 767px) {
    body {
        padding-bottom: 4.75rem;
    }

    /* Uzun tablolar mobilde sayfayı yana kaydırmasın, kendi içinde kaysın. */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ============================================================
   GLOBAL FALLBACK STYLES FOR UNSTYLED FORMS & BUTTONS
   ============================================================ */
/* Sadece Tailwind sınıfı verilmemiş alanlar için görsel fallback.
   `button:not([class])` ile aynı mantık: sınıf verilmişse yardımcı sınıflar
   (pl-10, px-4, bg-*, border-* ...) geçerli olsun, bu kural karışmasın.
   Eskiden seçici tüm inputlara uyduğu ve özgüllüğü yüksek olduğu için
   Tailwind'in padding/border yardımcılarını eziyordu. */
input:not([class]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]):not([type="range"]),
textarea:not([class]),
select:not([class]) {
    border-radius: 0.5rem;
    border: 1px solid #c2c7cc;
    background-color: #fbf9f8;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #1b1c1c;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Odak halkası her alanda geçerli ama :where() ile özgüllüğü sıfır;
   böylece focus:border-primary gibi yardımcı sınıflar üstüne yazabiliyor. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]):not([type="range"]), textarea, select):focus {
    border-color: #0c2b3d;
    box-shadow: 0 0 0 3px rgba(12, 43, 61, 0.15);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: #0c2b3d;
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

button:not([class]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    background-color: #0c2b3d;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

button:not([class]):hover {
    background-color: #09212f;
    box-shadow: 0 4px 6px rgba(12, 43, 61, 0.1);
}


/* ============================================================
   GLOBAL FALLBACK STYLES FOR FILE INPUTS
   ============================================================ */
input[type="file"] {
    font-size: 0.875rem;
    color: #545454;
    background-color: transparent;
    cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #fbf9f8;
    color: #1b1c1c;
    border: 1px solid #c2c7cc;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
input[type="file"]::file-selector-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #fbf9f8;
    color: #1b1c1c;
    border: 1px solid #c2c7cc;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
input[type="file"]::-webkit-file-upload-button:hover,
input[type="file"]::file-selector-button:hover {
    background-color: #efeded;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
