/* ================================================
   DOQUE — Global Utility Stilleri
   Tüm sayfalarda yüklenir. Sadece çapraz-kesen
   yardımcılar burada — sayfa-özel stiller değil.
   Renk paleti: #000 #1a1a1a #ffffff (mevcut palet)
================================================== */

/* ================================================
   HEADER + NAV — TÜM SAYFALARDA AYNI HIZALAMA
   Logo en solda, navigasyon + dil sağda.
================================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Ana sayfa: header video üzerinde — saydam koyu */
body.home header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom-color: transparent;
}

body.home header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(224, 224, 224, 0.3);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.6rem 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}

.logo-image {
    height: 56px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
    display: block;
}

/* Ana sayfa scroll edildiğinde beyaz logo siyahlaşır */
body.home header.scrolled .logo-image {
    filter: brightness(0);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    padding: 0.4rem 0;
}

/* Ana sayfa video üzerinde: beyaz nav linkler */
body.home header:not(.scrolled) .nav-links a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    width: 22px;
    height: 1px;
    background: #1a1a1a;
    transition: all 0.3s;
    display: block;
}

body.home header:not(.scrolled) .menu-toggle span {
    background: #ffffff;
}

/* Sadece ekran okuyucular için */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Klavye odağı — currentColor ile renk paletinden bağımsız */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Geçerli sayfa linki vurgusu */
.nav-links a[aria-current="page"] {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Hareketi azalt tercihi */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* "İçeriğe atla" — klavye/ekran okuyucu */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1a1a1a;
    padding: 12px 22px;
    border-radius: 0 0 6px 6px;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 1px;
    z-index: 2000;
    transition: top 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skip-to-content:focus {
    top: 0;
}

/* Yukarı çık butonu */
.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s;
    z-index: 900;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    padding: 0;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #1a1a1a;
}

.scroll-to-top svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 480px) {
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}

/* ================================================
   SITE FOOTER — TÜM SAYFALARDA BEYAZ (anasayfa dahil)
================================================== */
.site-footer {
    background: #ffffff;
    color: #1a1a1a;
    padding: 3.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer .footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.site-footer .footer-col h4 {
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.site-footer .footer-col p,
.site-footer .footer-col a {
    color: rgba(26, 26, 26, 0.72);
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
    color: #000000;
}

.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-col li + li {
    margin-top: 0.5rem;
}

.site-footer .footer-social {
    display: flex;
    gap: 14px;
    margin-top: 0.5rem;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: #1a1a1a;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    background: rgba(0, 0, 0, 0.05);
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
}

.site-footer .footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.site-footer .footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    color: rgba(26, 26, 26, 0.55);
    font-family: 'Arial', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ----- İÇ SAYFALARDA BEYAZ FOOTER (anasayfa hariç) ----- */
/* Footer artık tüm sayfalarda beyaz — override'lar gereksiz, kaldırıldı. */

/* Form hata durumu */
.input-error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15) !important;
}

/* Yazdırma */
@media print {
    header,
    footer,
    .site-footer,
    .scroll-to-top,
    .skip-to-content,
    .menu-toggle,
    .video-hero,
    .language-dropdown {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    a {
        color: #000000 !important;
        text-decoration: underline;
    }

    main {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ================================================
   ANİMASYON YARDIMCILARI — Global Polish
   Tüm sayfalarda kullanılabilir.
================================================== */

/* Sayfa giriş animasyonu (main veya body) */
@keyframes doque-page-fade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body[class*="page-"] main {
    animation: doque-page-fade 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Bağlantı altı modern alt çizgi */
.site-footer .footer-col a,
.urun-breadcrumb a {
    position: relative;
    transition: color 0.25s ease;
}

.site-footer .footer-col a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer .footer-col a:hover::after,
.site-footer .footer-col a:focus-visible::after {
    width: 100%;
}

/* Sosyal medya ikonları için yumuşak hover */
.site-footer .footer-social a {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.site-footer .footer-social a:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Buton genel polish */
.btn-primary,
button.btn-primary {
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Scroll-to-top yumuşak appear */
@keyframes doque-pop-in {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: scale(1); }
}

.scroll-to-top.visible {
    animation: doque-pop-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Resim odaklı kart hover (koleksiyon) — yumuşaklık */
.collection-grid .collection-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
}

/* Form input focus ring — siyah-beyaz palet */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Tüm <a> için focus halkası (erişilebilirlik) */
a:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
    border-radius: 2px;
}

/* Reduced motion — kullanıcı tercihine saygı */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    body[class*="page-"] main {
        animation: none !important;
    }
}

/* Selection rengi marka uyumlu */
::selection {
    background: #000000;
    color: #ffffff;
}

::-moz-selection {
    background: #000000;
    color: #ffffff;
}

/* Scrollbar marka uyumlu (Webkit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 5px;
    border: 2px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* ================================================
   PWA — "UYGULAMAYI YÜKLE" BUTONU
   Footer'da konumlanır. Mobilde öne çıkar.
================================================== */
.footer-install {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.5rem;
}

.install-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    background: #ffffff;
    color: #000000;
    border: 1.5px solid #ffffff;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.install-app-btn:hover,
.install-app-btn:focus-visible {
    background: transparent;
    color: #ffffff;
    outline: none;
}

.install-app-btn:active {
    transform: scale(0.97);
}

.install-app-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.install-app-btn[hidden] {
    display: none !important;
}

/* iOS yükleme yönergesi modali */
.pwa-ios-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.pwa-ios-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.pwa-ios-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pwa-ios-card {
    position: relative;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 18px;
    padding: 2rem 1.75rem 1.75rem;
    max-width: 360px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.pwa-ios-modal.open .pwa-ios-card {
    transform: translateY(0);
}

.pwa-ios-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.pwa-ios-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.pwa-ios-logo img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.pwa-ios-card h3 {
    text-align: center;
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.pwa-ios-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: #1a1a1a;
}

.pwa-ios-steps li {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pwa-ios-steps li:last-child {
    border-bottom: none;
}

/* Mobilde install butonu biraz daha öne çıksın */
@media (max-width: 640px) {
    .footer-install {
        padding-top: 1.25rem;
    }
    .install-app-btn {
        padding: 0.95rem 1.8rem;
        font-size: 0.85rem;
        width: auto;
    }
}
