/* ============================================================
   KAYA TUR TURİZM — style.css  (Redesigned 2026)
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
    --bg: #080e1c;
    --bg2: #0d1526;
    --card: rgba(255, 255, 255, .055);
    --border: rgba(255, 255, 255, .09);
    --text: #e8edf8;
    --muted: #8fa3c8;
    --accent: #22c55e;
    --accent-d: #16a34a;
    --accent-g: linear-gradient(135deg, #22c55e, #16a34a);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
    --trans: 0.3s cubic-bezier(.4, 0, .2, 1);
    --section-padding: 100px;
    --card-gap: 32px;
    --container-max: 1200px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
.h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
}

.small {
    font-size: .84rem;
    color: var(--muted);
}

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-sm {
    padding: 64px 0;
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 14, 28, .82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: background var(--trans);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.01em;
    min-width: 0;
}

.brand-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-g);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1rem;
    color: #031a0e;
    flex-shrink: 0;
}

.menu {
    display: flex;
    gap: 6px;
    align-items: center;
}

.menu a {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--trans), background var(--trans);
}

.menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
}

.menu a.active {
    color: var(--text);
    background: rgba(34, 197, 94, .13);
    border: 1px solid rgba(34, 197, 94, .25);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 10px;
    transition: background var(--trans);
}

.hamburger:hover {
    background: rgba(255, 255, 255, .08);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform var(--trans), opacity var(--trans);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    background: rgba(8, 14, 28, .96);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: .93rem;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--trans), background var(--trans);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
}

.mobile-menu a.active {
    background: rgba(34, 197, 94, .12);
    color: #86efac;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    min-height: calc(100svh - 64px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 40%, rgba(34, 197, 94, .10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(16, 163, 74, .07) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* ─── HERO SLIDESHOW ──────────────────────────────────────── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    will-change: opacity;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(8, 14, 28, .80) 0%,
            rgba(8, 14, 28, .55) 50%,
            rgba(8, 14, 28, .70) 100%);
}

/* Fotoğraf varken .hero::before yeşil glow'u biraz azalt */
.hero:has(.hero-slideshow) ::before {
    opacity: 0.4;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .22);
    color: #86efac;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

.hero .h1 {
    margin-bottom: 20px;
}

.hero .h1 span {
    color: var(--accent);
}

.hero .lead {
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    font-size: .92rem;
    transition: transform var(--trans), box-shadow var(--trans), opacity var(--trans);
    white-space: nowrap;
    max-width: 100%;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent-g);
    color: #031a0e;
    box-shadow: 0 8px 32px rgba(34, 197, 94, .30);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(34, 197, 94, .45);
}

.btn-ghost {
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
}

/* ─── BADGE ──────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    border: 1px solid rgba(34, 197, 94, .22);
    color: #86efac;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ─── STATS BAR ──────────────────────────────────────────── */
.stats-bar {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-bar .container {
    padding-top: 0;
    padding-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 36px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.stat-title {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 2px;
}

.stat-sub {
    font-size: .78rem;
    color: var(--muted);
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-head {
    margin-bottom: 56px;
}

.section-head .badge {
    margin-bottom: 12px;
}

.section-head .h2 {
    margin-bottom: 12px;
}

.section-head .lead {
    margin-top: 8px;
    max-width: 540px;
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.card:hover {
    border-color: rgba(34, 197, 94, .25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .35);
}

/* ─── TOUR GRID ──────────────────────────────────────────── */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.tour-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform var(--trans), box-shadow var(--trans);
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.tour-card .img-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: rgba(255, 255, 255, .05);
}

.tour-body {
    padding: 28px 24px;
}

.tour-body .h3 {
    margin-bottom: 12px;
}

.tour-body p {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.tour-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 18px;
}

/* ─── SERVICES ───────────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
}

.service-card {
    padding: 36px 30px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 197, 94, .3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .2);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
}

.service-card .h3 {
    margin-bottom: 14px;
}

.service-card p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, .12);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: .4;
}

.empty-state .h3 {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state .small {
    font-size: .85rem;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    padding: 72px 0 140px;
    border-top: 1px solid var(--border);
    background: var(--bg2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 56px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 280px;
}

.footer-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: .88rem;
    color: var(--muted);
    transition: color var(--trans);
}

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

.footer-bottom {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--muted);
}

.tour-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.tour-content {
    min-width: 0;
}

.tour-sidebar {
    min-width: 0;
}

/* ─── STICKY CTA (mobile) ────────────────────────────────── */
.sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: none;
    gap: 10px;
    z-index: 90;
}

.sticky-cta a {
    flex: 1;
    text-align: center;
}

/* ─── MISC ───────────────────────────────────────────────── */
.img-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .05);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .05);
    transition: transform var(--trans), opacity var(--trans);
}

.gallery img:hover {
    transform: scale(1.03);
    opacity: .9;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-weight: 700;
    font-size: .82rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-hero>* {
    opacity: 0;
    animation: fadeInUp .7s ease forwards;
}

.animate-hero>*:nth-child(1) {
    animation-delay: .10s;
}

.animate-hero>*:nth-child(2) {
    animation-delay: .22s;
}

.animate-hero>*:nth-child(3) {
    animation-delay: .34s;
}

.animate-hero>*:nth-child(4) {
    animation-delay: .46s;
}

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {

    /* Navbar */
    .menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(3) {
        border-top: 1px solid var(--border);
    }

    .stat-item:nth-child(4) {
        border-top: 1px solid var(--border);
        border-right: none;
    }

    /* Grids */
    .tours-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Misc */
    .section {
        padding: 72px 0;
    }

    .section-sm {
        padding: 48px 0;
    }

    .container {
        padding: 0 20px;
    }

    .tour-detail-grid {
        grid-template-columns: 1fr;
    }

    .tour-sidebar {
        position: static !important;
        top: auto !important;
    }

    .service-card,
    .tour-body {
        padding: 24px 20px;
    }

    .sticky-cta {
        display: flex;
    }

    .footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .nav {
        height: 60px;
        gap: 10px;
    }

    .brand {
        font-size: .88rem;
        gap: 8px;
    }

    .brand span:last-child {
        display: inline-block;
        max-width: calc(100vw - 120px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-badge {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none !important;
        border-top: 1px solid var(--border);
    }

    .stat-item:first-child {
        border-top: none;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 56px 0;
    }

    .tours-grid,
    .services-grid {
        gap: 24px;
    }

    .card,
    .service-card,
    .item,
    main.section>.container>.card {
        padding: 24px;
    }

    .table th,
    .table td {
        padding: 10px 8px;
        font-size: .8rem;
    }
}

/* ─── ADMIN COMPATIBILITY ALIASES ───────────────────────────
   Admin PHP dosyaları eski sınıf isimlerini kullanıyor.
   Bu blok admin panelini bozmadan eski isimleri yeni stillere bağlar.
   ─────────────────────────────────────────────────────────── */

/* .btn.primary → .btn-primary */
.btn.primary {
    background: var(--accent-g);
    color: #031a0e;
    box-shadow: 0 8px 32px rgba(34, 197, 94, .30);
    border: none;
}

.btn.primary:hover {
    box-shadow: 0 12px 40px rgba(34, 197, 94, .45);
}

/* .btns → admin form buton satırı */
.btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* .p → lead paragraf alias */
.p {
    color: var(--muted);
    line-height: 1.6;
}

/* .grid + .item → admin dashboard kart grid alias */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.item {
    border-radius: var(--radius-sm);
    padding: 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
}

.item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.item p {
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.5;
}

/* Admin main içeriği için padding */
main.section>.container>.card {
    padding: 24px;
}

main.section>.container>.card+.card {
    margin-top: 16px;
}

/* Admin form input genel stili */
main input[type="text"],
main input[type="number"],
main input[type="email"],
main input[type="password"],
main input[type="url"],
main textarea,
main select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
    outline: none;
    transition: border-color var(--trans);
}

main input:focus,
main textarea:focus,
main select:focus {
    border-color: rgba(34, 197, 94, .45);
}

main select option {
    background: var(--bg2);
    color: var(--text);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
