/* Şanlıurfa Büyükşehir Belediyesi — Dijital Turizm Platformu */

:root {
    --sand: #c8a978;
    --sand-light: #e8d3ad;
    --sand-deep: #9b7a47;
    --ink: #1a120b;
    --text: #fbf6ee;
    --text-dim: rgba(251, 246, 238, 0.72);
    --glass: rgba(26, 18, 11, 0.42);
    --glass-border: rgba(255, 255, 255, 0.16);
    --item-bg: rgba(255, 255, 255, 0.08);
    --item-bg-hover: rgba(255, 255, 255, 0.16);
    --radius-lg: 28px;
    --radius-md: 16px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font);
    color: var(--text);
    background: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Arka plan slayt ---------- */

.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--ink) url("../img/bg/01.jpg") center / cover no-repeat;
}

.bg-layer {
    position: absolute;
    /* Kaydırma payı: görsel kenarları hiç görünmesin */
    inset: -2%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2.2s ease-in-out;
    will-change: opacity, transform;
    transform: scale(1.12);
}

.bg-layer.is-active { opacity: 1; }

/* Sağa / sola yavaş, yumuşak kaydırma (Ken Burns) */
.bg-layer.pan-right { animation: pan-right 11s linear forwards; }
.bg-layer.pan-left  { animation: pan-left 11s linear forwards; }

@keyframes pan-right {
    from { transform: scale(1.14) translate3d(-4%, 0, 0); }
    to   { transform: scale(1.20) translate3d(4%, 0, 0); }
}

@keyframes pan-left {
    from { transform: scale(1.20) translate3d(4%, 0, 0); }
    to   { transform: scale(1.14) translate3d(-4%, 0, 0); }
}

/* Mobilde dikey ekranda daha geniş yatay hareket alanı */
@media (max-aspect-ratio: 3/4) {
    @keyframes pan-right {
        from { transform: scale(1.06) translate3d(-14%, 0, 0); }
        to   { transform: scale(1.10) translate3d(14%, 0, 0); }
    }
    @keyframes pan-left {
        from { transform: scale(1.10) translate3d(14%, 0, 0); }
        to   { transform: scale(1.06) translate3d(-14%, 0, 0); }
    }
}

.bg-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(26, 18, 11, 0.05) 0%, rgba(26, 18, 11, 0.35) 70%, rgba(26, 18, 11, 0.65) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.45) 100%);
}

/* ---------- Üst bar / dil seçimi ---------- */

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
    padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 16px;
}

.lang-switch {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

.lang-btn {
    position: relative;
    z-index: 1;
    min-width: 48px;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-dim);
    font: 600 13px/1 var(--font);
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.lang-btn.is-active { color: var(--ink); }
.lang-btn:not(.is-active):hover { color: var(--text); }

.lang-indicator {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sand-light), var(--sand));
    box-shadow: 0 4px 14px rgba(200, 169, 120, 0.45);
    transition: transform 0.4s var(--ease);
}

html[lang="en"] .lang-indicator { transform: translateX(100%); }

/* ---------- Ana yerleşim ---------- */

.wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        max(72px, calc(env(safe-area-inset-top) + 64px))
        max(16px, env(safe-area-inset-right))
        max(20px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
}

.card {
    width: 100%;
    max-width: 480px;
    padding: 36px 28px 26px;
    border-radius: var(--radius-lg);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
    text-align: center;
    animation: rise 0.9s var(--ease) both;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card { background: rgba(26, 18, 11, 0.82); }
}

/* ---------- Marka ---------- */

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    display: grid;
    place-items: center;
    animation: rise 0.9s 0.1s var(--ease) both;
}

.brand-logo img {
    width: auto;
    height: 104px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.brand-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: rise 0.9s 0.18s var(--ease) both;
}

.brand-top {
    font: 800 clamp(1.45rem, 5.5vw, 1.75rem)/1.05 var(--font-display);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    /* letter-spacing'in sağda bıraktığı boşluğu dengele */
    padding-left: 0.22em;
    background: linear-gradient(180deg, #fff 0%, var(--sand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-bottom {
    font: 500 clamp(0.72rem, 3vw, 0.82rem)/1.2 var(--font);
    letter-spacing: 0.32em;
    padding-left: 0.32em;
    text-transform: uppercase;
    color: var(--sand-light);
}

.divider {
    display: flex;
    justify-content: center;
    margin: 22px 0 18px;
}

.divider span {
    position: relative;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sand), transparent);
}

.divider span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--sand);
    transform: translate(-50%, -50%) rotate(45deg);
}

.title {
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font: 300 clamp(1.05rem, 4.2vw, 1.2rem)/1.3 var(--font);
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.title-accent {
    font-weight: 600;
    color: var(--text);
}

/* ---------- Bağlantılar (link tree) ---------- */

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.link {
    --i: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--item-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.35s var(--ease),
        background-color 0.35s var(--ease),
        border-color 0.35s var(--ease),
        box-shadow 0.35s var(--ease);
    /* "backwards": animasyon bitince transform serbest kalsın (hover çalışsın) */
    animation: rise 0.7s calc(0.28s + var(--i) * 0.06s) var(--ease) backwards;
    -webkit-tap-highlight-color: transparent;
}

.link:nth-child(2) { --i: 1; }
.link:nth-child(3) { --i: 2; }
.link:nth-child(4) { --i: 3; }
.link:nth-child(5) { --i: 4; }
.link:nth-child(6) { --i: 5; }
.link:nth-child(7) { --i: 6; }

/* Parlama efekti */
.link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease);
}

.link:hover,
.link:focus-visible {
    background: var(--item-bg-hover);
    border-color: rgba(232, 211, 173, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.55);
}

.link:hover::before,
.link:focus-visible::before { transform: translateX(100%); }

.link:active { transform: translateY(0) scale(0.99); }

.link:focus-visible {
    outline: 2px solid var(--sand-light);
    outline-offset: 3px;
}

.link-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(200, 169, 120, 0.18);
    color: var(--sand-light);
}

.link-icon svg,
.link-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.link-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.link-title {
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.25;
}

.link-meta {
    font-size: 0.76rem;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.link-arrow {
    flex: none;
    color: var(--text-dim);
    transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

.link-arrow svg { width: 18px; height: 18px; }

.link:hover .link-arrow,
.link:focus-visible .link-arrow {
    color: var(--sand-light);
    transform: translateX(3px);
}

/* Öne çıkan bağlantı: dijital harita */
.link--featured {
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 55%, var(--sand-deep) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--ink);
    box-shadow: 0 12px 28px -12px rgba(200, 169, 120, 0.8);
}

.link--featured .link-icon {
    background: rgba(26, 18, 11, 0.14);
    color: var(--ink);
}

.link--featured .link-meta,
.link--featured .link-arrow { color: rgba(26, 18, 11, 0.7); }

.link--featured:hover,
.link--featured:focus-visible {
    background: linear-gradient(135deg, #f2e2c4 0%, var(--sand-light) 55%, var(--sand) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 34px -12px rgba(200, 169, 120, 0.95);
}

.link--featured:hover .link-arrow,
.link--featured:focus-visible .link-arrow { color: var(--ink); transform: translate(2px, -2px); }

/* ---------- Alt bilgi ---------- */

.footer {
    margin-top: 22px;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(251, 246, 238, 0.6);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.footer p { margin: 0; }

/* ---------- Ana sayfa (karşılama) ---------- */

.hero {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding:
        max(24px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    min-height: 60px;
    padding: 16px 22px 16px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sand-light) 0%, var(--sand) 55%, var(--sand-deep) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--ink);
    font: 700 clamp(1.05rem, 4.6vw, 1.35rem)/1.2 var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    box-shadow:
        0 20px 40px -14px rgba(0, 0, 0, 0.65),
        0 0 0 0 rgba(232, 211, 173, 0.55);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    animation:
        rise 0.9s 0.2s var(--ease) backwards,
        glow 3s 1.2s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

/* Parlama efekti */
.hero-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 4.5s 1.5s ease-in-out infinite;
}

.hero-btn-arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(26, 18, 11, 0.14);
    transition: transform 0.4s var(--ease);
}

.hero-btn-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-btn:hover,
.hero-btn:focus-visible {
    transform: translateY(-3px) scale(1.02);
}

.hero-btn:hover .hero-btn-arrow,
.hero-btn:focus-visible .hero-btn-arrow { transform: translateX(4px); }

.hero-btn:active { transform: scale(0.98); }

.hero-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.65), 0 0 0 0 rgba(232, 211, 173, 0.5); }
    50%      { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.65), 0 0 0 14px rgba(232, 211, 173, 0); }
}

@keyframes shine {
    0%   { transform: translateX(-100%); }
    40%, 100% { transform: translateX(100%); }
}

.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;
}

/* ---------- Animasyonlar ---------- */

@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Duyarlı ayarlar ---------- */

@media (max-width: 380px) {
    .card { padding: 28px 16px 20px; border-radius: 24px; }

    .brand-logo img { height: 88px; }
    .link { gap: 12px; padding: 10px 12px; min-height: 60px; }
    .link-icon { width: 38px; height: 38px; }
    .link-title { font-size: 0.92rem; }
}

@media (min-width: 768px) {
    .card { padding: 44px 40px 30px; }
}

@media (max-height: 640px) and (orientation: landscape) {
    .wrapper { justify-content: flex-start; }
}

/* Hareket hassasiyeti olan kullanıcılar */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .bg-layer { transform: none; }
}

@media print {
    .bg, .topbar { display: none; }
    body { background: #fff; color: #000; }
}
