/* =========================================================================
   Liman Online Psikoloji — Premium açık tema
   Sakin, güven veren; deniz/liman esintili teal + sıcak kum + zarif altın.
   ========================================================================= */
:root {
    --ink: #1b2a33;
    --ink-soft: #45565f;
    --muted: #75868f;
    --primary: #0e7c86;
    --primary-dark: #0a5a62;
    --primary-050: #e9f4f4;
    --accent: #c8a34e;
    --accent-soft: #f3e9d2;
    --sand: #f7f2ea;
    --paper: #ffffff;
    --line: #e7e0d6;
    --ok: #2e7d5b;
    --warn: #b4791f;
    --danger: #b4463a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(27,42,51,.06), 0 1px 2px rgba(27,42,51,.04);
    --shadow: 0 10px 30px -12px rgba(14,60,64,.22);
    --shadow-lg: 0 24px 60px -20px rgba(14,60,64,.30);
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; position: relative; min-height: 100%; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--sand);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
a { color: var(--primary-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
.container { max-width: 1180px; }
.text-muted-2 { color: var(--muted) !important; }
.lead { color: var(--ink-soft); font-size: 1.12rem; }

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(14,124,134,.18);
}

/* ---- Erişilebilirlik (WCAG) ---- */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
a.skip-link {
    position: absolute; left: 8px; top: -48px; z-index: 1000;
    background: var(--primary-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px;
    transition: top .15s;
}
a.skip-link:focus { top: 8px; color: #fff; }

/* ---- Navbar ---- */
.navbar-liman {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: .55rem 0;
}
.navbar-liman .navbar-brand { font-weight: 800; color: var(--primary-dark); font-size: 1.3rem; letter-spacing: -.02em; }
.navbar-liman .navbar-brand .anchor { color: var(--accent); }
.navbar-liman .nav-link { color: var(--ink-soft); font-weight: 600; padding: .4rem .85rem; border-radius: 8px; }
.navbar-liman .nav-link:hover, .navbar-liman .nav-link.active { color: var(--primary-dark); background: var(--primary-050); }

/* ---- Buttons ---- */
.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; border: 1px solid transparent; transition: all .16s; }
.btn-lg { padding: .8rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #3b2e0f; }
.btn-accent:hover { filter: brightness(.96); color: #3b2e0f; }
.btn-outline-primary { color: var(--primary-dark); border-color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-danger { background: var(--danger); border-color: var(--danger); }

/* ---- Cards ---- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-hover { transition: transform .18s, box-shadow .18s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.4rem; }

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1100px 480px at 82% -8%, rgba(14,124,134,.14), transparent 60%),
        radial-gradient(700px 360px at 5% 8%, rgba(200,163,78,.12), transparent 55%),
        linear-gradient(180deg, #fbf8f2 0%, var(--sand) 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid var(--line);
}
.hero-art {
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 340px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero-art::after {
    content: "⚓"; position: absolute; font-size: 12rem; right: -1rem; bottom: -2rem;
    color: rgba(255,255,255,.10);
}

/* ---- Badges / chips ---- */
.badge-soft { display: inline-flex; align-items: center; gap: .35rem; background: var(--primary-050); color: var(--primary-dark);
    border-radius: 999px; padding: .32rem .8rem; font-size: .8rem; font-weight: 600; }
.chip { display: inline-block; background: var(--accent-soft); color: #6a5320; border-radius: 999px; padding: .22rem .7rem; font-size: .78rem; font-weight: 600; margin: .12rem; }

.status-pill { border-radius: 999px; padding: .28rem .75rem; font-size: .78rem; font-weight: 700; }
.status-pending { background: #fff4dc; color: var(--warn); }
.status-approved { background: #e2f3ea; color: var(--ok); }
.status-rejected { background: #f7e2df; color: var(--danger); }

/* ---- Sections ---- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--accent); }

/* ---- Feature icon ---- */
.feature-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
    background: var(--primary-050); color: var(--primary-dark); margin-bottom: .8rem; }

/* ---- Forms ---- */
.form-control, .form-select { border-radius: var(--radius-sm); border: 1px solid var(--line); padding: .6rem .85rem; }
.form-label { font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.auth-wrap { max-width: 460px; margin: 3rem auto; }

/* ---- Avatar ---- */
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--primary-050); display: grid; place-items: center;
    color: var(--primary-dark); font-weight: 700; font-size: 1.4rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }

/* ---- Info banners ---- */
.notice { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .92rem; border: 1px solid; display: flex; gap: .6rem; }
.notice-teal { background: var(--primary-050); border-color: #bfe1e1; color: var(--primary-dark); }
.notice-gold { background: var(--accent-soft); border-color: #e6d3a3; color: #6a5320; }
.notice-danger { background: #fbeeec; border-color: #f0c9c2; color: var(--danger); }

/* ---- Disclaimer strip (terapi, psikiyatri değil) ---- */
.disclaimer-strip { background: var(--primary-dark); color: #dff1f0; font-size: .82rem; padding: .5rem 0; text-align: center; }
.disclaimer-strip strong { color: #fff; }

/* ---- Footer ---- */
.footer { background: #0e2c31; color: #cfe0df; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer h6 { color: #fff; font-weight: 700; letter-spacing: .02em; margin-bottom: 1rem; }
.footer a { color: #a9c6c4; display: block; padding: .2rem 0; }
.footer a:hover { color: #fff; }
.footer .fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; color: #86a3a1; font-size: .82rem; }

/* ---- Chat ---- */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 1rem; min-height: 70vh; }
.chat-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-thread { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 75%; padding: .6rem .9rem; border-radius: 14px; font-size: .95rem; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--primary-050); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble .t { display: block; font-size: .68rem; opacity: .7; margin-top: .2rem; }

/* ---- Video ---- */
.video-stage video { width: 100%; background: #08191c; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.video-remote { position: relative; }
.video-local { position: absolute; width: 26%; right: 1rem; bottom: 1rem; border: 3px solid #fff; box-shadow: var(--shadow); z-index: 3; aspect-ratio: 16/9; }
.call-bar { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; }
.call-btn { width: 56px; height: 56px; border-radius: 50%; border: none; font-size: 1.3rem; cursor: pointer; }
.call-btn.end { background: var(--danger); color: #fff; }
.call-btn.neutral { background: #fff; border: 1px solid var(--line); }

/* ---- Tables ---- */
.table thead th { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--line); }
.table td { vertical-align: middle; }

/* ---- Panel ---- */
.panel-shell { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; }
.panel-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; position: sticky; top: 1rem; }
.panel-nav a { display: flex; gap: .6rem; align-items: center; padding: .6rem .8rem; border-radius: 10px; color: var(--ink-soft); font-weight: 600; }
.panel-nav a:hover { background: var(--sand); }
.panel-nav a.active { background: var(--primary-050); color: var(--primary-dark); }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.stat-card .n { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .l { color: var(--muted); font-size: .85rem; font-weight: 600; }

@media (max-width: 900px) {
    .panel-shell, .chat-shell { grid-template-columns: 1fr; }
    .panel-nav { position: static; }
}
