/* style.css - My Flirt Legal Pages */

:root {
    --bg-main: #f8f9fb;
    --bg-content: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --accent: #ec4899;
    --accent-soft: #fdf2f8;
    --border-soft: #e5e7eb;
    --nav-bg: #111827;
    --nav-text: #f9fafb;
    --max-width: 1100px;
    --radius-lg: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

/* Top navigation */

.site-header {
    background-color: var(--nav-bg);
    color: var(--nav-text);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 20%, #f97316, #ec4899);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    opacity: 0.85;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: opacity .15s ease, border-bottom-color .15s ease;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a.active {
    border-bottom-color: var(--accent);
    opacity: 1;
}

/* Language dropdown */

/* Language Dropdown Container */
.lang-dropdown {
    position: relative;
    z-index: 25; /* dropdown diğer öğelerin üstünde kalsın */
}

/* Current Language Button */
.lang-current {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08); /* header ile uyumlu soft koyuluk */
    color: #f8fafc;

    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;

    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.lang-current:hover {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.lang-current-caret {
    font-size: 10px;
    opacity: 0.8;
}

/* Dropdown Menu */
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);

    background-color: #ffffff;
    border-radius: 12px; /* daha kurumsal */
    padding: 0; /* üst-alt boşluk kaldırıldı */

    display: flex;
    flex-direction: column;
    gap: 0;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;

    min-width: 170px;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Items */
.lang-menu button {
    border: none;
    background: transparent;
    color: #0f172a;

    padding: 10px 14px;
    font-size: 13px;

    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    text-align: left;

    opacity: 0.9;
    transition: background-color .15s ease, opacity .15s ease;
}

.lang-menu button:hover {
    opacity: 1;
    background-color: #f1f5f9; /* hover tam genişliği kaplar */
}

.lang-menu button.active {
    opacity: 1;
    background-color: #e8eeff;
}

/* Rounded corners (card uyumu) */
.lang-menu button:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.lang-menu button:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Flag Icons */
.lang-flag {
    width: 18px;
    height: 18px;

    border-radius: 999px;
    flex-shrink: 0;

    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.25);
    border: 2px solid #ffffff;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Real Flags */
.lang-flag-en {
    background-image: url("img/flags/us.png");
}

.lang-flag-tr {
    background-image: url("img/flags/tr.png");
}


/* Hamburger toggle */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
    outline: none;
    display: none;
    /* EKLENDİ: dikey hizalama */
    flex-direction: column;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--nav-text);
    border-radius: 999px;
}

.nav-toggle span + span {
    margin-top: 4px;
}

/* Page layout */

.page-wrapper {
    max-width: var(--max-width);
    margin: 24px auto 48px;
    padding: 24px 16px 40px;
}

.page-hero {
    background: #020617; /* header lacivertinden bir ton daha koyu */
    color: #e5e7eb;
    padding: 36px 32px 40px;
    margin-bottom: 32px;
    border-radius: 24px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.55);
}

/* Hero içindeki breadcrumb */
.page-hero .breadcrumb {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.page-hero .breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
}

.page-hero .breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero içindeki başlık */
.page-hero .page-title {
    font-size: 36px;   /* Shopify tarzında büyük başlık */
    font-weight: 700;
    color: #f9fafb;
    margin-bottom: 6px;
}

/* Hero içindeki meta satırı */
.page-hero .page-meta {
    font-size: 14px;
    color: #d1d5db;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Content layout: sidebar + main */

.content-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

/* Sidebar */

.sidebar {
    background-color: var(--bg-content);
    border-radius: var(--radius-lg);
    padding: 14px 14px 16px;
    border: 1px solid var(--border-soft);
    align-self: flex-start;
    position: sticky;
    top: 96px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.sidebar ul {
    list-style: none;
    font-size: 14px;
}

.sidebar li + li {
    margin-top: 4px;
}

.sidebar a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    transition: background-color .15s ease, border-left-color .15s ease, padding-left .15s ease;
}

.sidebar a:hover {
    background-color: var(--accent-soft);
}

.sidebar a.section-active {
    background-color: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding-left: 5px;
}

/* Main content */

.main-card {
    background-color: var(--bg-content);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 22px 24px 26px;
    animation: fadeUp .35s ease-out;
}

.main-card h2 {
    font-size: 18px;
    margin-top: 18px;
    margin-bottom: 8px;
}

.main-card h3 {
    font-size: 16px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.main-card p {
    font-size: 14px;
    color: #111827;
    margin-bottom: 8px;
}

.main-card ul {
    margin: 4px 0 10px 20px;
    font-size: 14px;
}

.main-card li {
    margin-bottom: 4px;
}

/* Highlight info box */

.info-box {
    background-color: var(--accent-soft);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #f9a8d4;
    margin-bottom: 10px;
}

/* Footer (inside card) */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* Animation */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 900px) {
    .content-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-right {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background-color: var(--nav-bg);
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        max-height: 0;
        /* overflow: hidden;  ← BUNU SİL */
        opacity: 0;
        pointer-events: none;
        transition: max-height .2s ease, opacity .2s ease;
    }

    .site-header.nav-open .nav-right {
        /* Menünün ve dil dropdown’ının rahatça sığacağı bir değer verelim */
        max-height: 450px;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        /* flex-direction burada da garanti olsun */
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 24px;
    }

    .page-hero {
        padding: 24px 18px 28px;
        border-radius: 20px;
        margin-bottom: 24px;
    }

    .page-hero .page-title {
        font-size: 32px;
    }
}
