/* 
 * COMPONENTS.CSS - Butonlar, Navbar, Kartlar
 */

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: var(--font-body);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 2px solid transparent;
    min-height: 44px;
    /* a11y touch target */
}

/* Primary — CTA, menüye git */
.btn--primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus {
    background: #db9237;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* Secondary — ikincil aksiyon */
.btn--secondary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background: var(--color-primary-mid);
    color: var(--color-white);
}

/* Outline — ghost buton */
.btn--outline {
    background: transparent;
    border-color: currentColor;
    color: var(--color-white);
}

.btn--outline:hover,
.btn--outline:focus {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Sizes */
.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Call — telefon CTA (nav'da) */
.btn--call {
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    padding: 0.5rem 1.25rem;
    gap: 0.5rem;
}

.btn--call svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-base);
    background: transparent;
    color: var(--color-white);
}

.navbar.scrolled {
    background: rgba(10, 35, 66, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

/* White background version for inside pages */
.navbar--light {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.navbar--light.scrolled {
    color: var(--color-white);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    line-height: 1;
    color: currentColor;
    text-decoration: none;
}

.navbar__logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.navbar__logo:hover img {
    transform: scale(1.05);
}

.navbar__logo .logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.navbar__logo .logo-sub {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    font-family: var(--font-body);
}

.navbar__menu {
    list-style: none;
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.navbar__menu .nav-link {
    color: currentColor;
    opacity: 0.9;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: color 200ms ease, opacity 200ms ease;
}

.navbar__menu .nav-link:hover,
.navbar__menu .nav-link.active {
    opacity: 1;
}

.navbar__menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
}

.navbar__menu .nav-link:hover::after,
.navbar__menu .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-md) 0;
    clip-path: ellipse(120% 105% at 50% 100%);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__logo-link {
    display: inline-block;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    text-decoration: none;
}

/* ---- Footer Wordmark ---- */
.footer__wordmark {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1rem;
    line-height: 1;
}

.footer__wordmark-main {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.18em;
    line-height: 1.2;
}

.footer__wordmark-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.8;
}

.footer__logo-link img {
    height: 56px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer__tagline {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ---- Footer Sosyal İkonlar ---- */
.footer__socials {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.footer__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    text-decoration: none;
    transition: border-color 200ms, color 200ms, background 200ms;
}

.footer__social-icon:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Placeholder ikonlar — soluk */
.footer__social-icon--dim {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.footer h3 {
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--space-sm);
}

.footer ul a {
    color: rgba(255, 255, 255, 0.8);
}

.footer ul a:hover {
    color: var(--color-accent);
}

/* ---- Footer Çalışma Saatleri ---- */
.footer__hours {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 1rem 0 1.25rem;
}

.footer__hours-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.footer__hours-time {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: white;
    letter-spacing: 0.02em;
}

/* ---- Yol Tarifi — Amber Metin Link ---- */
.footer__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 200ms, gap 200ms;
}

.footer__map-link:hover {
    opacity: 0.75;
    gap: 0.6rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-md);
}

/* ---- Copyright Satırı ---- */
.footer__bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

.footer__bottom-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 200ms;
}

.footer__bottom-instagram:hover {
    color: var(--color-accent);
}

/* ---- Mobil ---- */
@media (max-width: 768px) {
    .footer__bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .footer__hours-time {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .footer {
        clip-path: none;
    }
}

/* ================================================
   MOBİL DRAWER MENÜ
   ================================================ */

/* ---- Hamburger Toggle Butonu ---- */
.nav-drawer-toggle {
    display: none; /* Desktop'ta gizli */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 200ms ease;
}

.nav-drawer-toggle:hover {
    background: var(--color-primary-mid);
}

/* Sayfa beyaz navbar'a geçince de lacivert kalsın */
.navbar--light .nav-drawer-toggle {
    background: var(--color-primary);
}

.navbar--light.scrolled .nav-drawer-toggle {
    background: var(--color-primary);
}

/* Üç çizgi */
.drawer-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 250ms ease, opacity 250ms ease;
    transform-origin: center;
}

/* Açıkken çarpıya dön */
.nav-drawer-toggle.is-open .drawer-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-drawer-toggle.is-open .drawer-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-drawer-toggle.is-open .drawer-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Overlay (Arka Karartma) ---- */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1001;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 300ms ease;
}

.drawer-overlay.is-visible {
    display: block;
}

.drawer-overlay.is-active {
    opacity: 1;
}

/* ---- Drawer Panel ---- */
.nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100dvh; /* iOS için dynamic viewport height */
    background: var(--color-primary);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-drawer.is-open {
    transform: translateX(0);
}

/* ---- Drawer Header (Logo + Kapat) ---- */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1.25rem;
    flex-shrink: 0;
}

.drawer-logo img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1); /* Logo'yu beyaza çevir */
}

.drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 200ms ease;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

/* ---- Ayırıcı Çizgi ---- */
.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 1.5rem;
    flex-shrink: 0;
}

/* ---- Nav Linkleri ---- */
.drawer-nav {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    flex: 1;
}

.drawer-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-nav li:last-child {
    border-bottom: none;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    font-family: var(--font-display); /* Playfair Display */
    font-size: 1.3rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 200ms ease, padding-left 200ms ease;
    position: relative;
}

/* Sol amber çizgi — hover ve aktif için */
.drawer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 55%;
    background: var(--color-accent);
    border-radius: 0 2px 2px 0;
    transition: transform 200ms ease;
}

.drawer-link:hover {
    color: white;
    padding-left: 2rem;
}

.drawer-link:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.drawer-link.active {
    color: var(--color-accent);
    padding-left: 2rem;
}

.drawer-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

/* ---- Drawer Footer (İletişim) ---- */
.drawer-footer {
    padding-bottom: 2rem;
    flex-shrink: 0;
}

.drawer-footer .drawer-divider {
    margin-bottom: 0.75rem;
}

.drawer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: var(--font-body);
    text-decoration: none;
    transition: color 200ms ease;
}

.drawer-contact:hover {
    color: rgba(255, 255, 255, 0.85);
}

.drawer-contact svg {
    flex-shrink: 0;
}

/* ---- Body Scroll Kilidi ---- */
body.drawer-is-open {
    overflow: hidden;
}

/* ================================================
   MOBİL BREAKPOINT — Drawer'ı Devreye Al
   ================================================ */
@media (max-width: 1024px) {

    /* Hamburger butonunu göster */
    .nav-drawer-toggle {
        display: flex;
    }

    /* Desktop nav linklerini gizle */
    .navbar__menu {
        display: none;
    }

    /* Navbar logo küçült */
    .navbar__logo img {
        height: 40px;
    }

    /* Ara butonunu kompakt yap */
    .btn--call {
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }
}

/* ---- Buton Stilleri ---- */
.btn--outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 1.5px solid var(--color-primary);
    border-radius: 6px;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 220ms ease;
}

.btn--outline-dark:hover {
    background: var(--color-primary);
    color: white;
}

.btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 220ms, transform 220ms;
}

.btn--primary:hover {
    background: var(--color-primary-mid);
    transform: translateY(-2px);
}