/* ============================================================
   Fotoğraf Simülatörü — Stil Dosyası
   Koyu tema, glassmorphism, premium UI
   ============================================================ */

:root {
    font-family: 'Outfit', Arial, sans-serif;
    color: #eef2fa;
    background: #0b0f1a;
    font-synthesis: none;
    --glass: linear-gradient(150deg, #141a2ae8, #0d1220e3);
    --line: #ffffff1c;
    --mute: #9ea8c2;
    --cyan: #7fe3ff;
    --amber: #ffb454;
    --mono: 'DM Mono', ui-monospace, Menlo, monospace;
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    margin: 0;
    overflow: hidden;
    background: #0b0f1a;
    -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

/* ---- Layout ---- */
#app {
    position: fixed; inset: 0;
    isolation: isolate;
    user-select: none;
    overflow: hidden;
}

#world {
    position: absolute; inset: 0; z-index: -3;
}

canvas {
    display: block; width: 100%; height: 100%;
    cursor: grab; touch-action: none;
}
canvas:active { cursor: grabbing; }

.vignette {
    position: absolute; inset: 0; z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, #070a13a8, transparent 26%),
        radial-gradient(ellipse at 55% 50%, transparent 55%, #04060cb0 100%);
}

#loading {
    position: absolute; top: 47%; width: 100%;
    text-align: center; color: var(--mute); font-size: 14px;
    z-index: 10;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ---- Brand / Title Panel ---- */
.side {
    position: absolute; left: 24px; top: 22px;
    width: 320px; pointer-events: none; z-index: 4;
}
.side > * { pointer-events: auto; }

.brand { display: block; text-shadow: 0 2px 18px #000a; }
.brand h1 {
    margin: 0; font-weight: 800; line-height: .92;
    letter-spacing: -.5px; text-transform: uppercase;
}
.brand h1 span {
    display: block; font-size: 17px; letter-spacing: .6px;
    font-weight: 600; color: #dfe6f5;
}
.brand h1 b {
    display: block; font-size: 34px; font-weight: 800; color: var(--cyan);
}
.brand small {
    display: block; margin-top: 10px; font-size: 12.5px;
    line-height: 1.55; color: #c7cee0; font-weight: 400;
    max-width: 28em;
}

/* ---- Stats Cards ---- */
.stats {
    display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap;
}
.stat {
    padding: 6px 10px 5px; border-radius: 10px;
    background: #0d1220c4; border: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    min-width: 78px;
}
.stat i {
    display: block;
    font: 500 9px/1 var(--mono);
    letter-spacing: .12em; text-transform: uppercase;
    color: #8d97b3; font-style: normal;
}
.stat b, .stat .stat-val {
    display: block; margin-top: 4px;
    font: 500 15px/1 var(--mono);
    color: #fff; font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.stat.hot b, .stat.hot .stat-val { color: var(--cyan); }
.stat-val.bright { color: var(--amber); }
.stat-val.good { color: #3ddc84; }
.stat-val.dark { color: #ff6b6b; }

/* ---- Why Text ---- */
.why {
    margin: 12px 0 0; padding: 10px 12px; border-radius: 12px;
    background: #0d1220b0; border: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 12.5px; line-height: 1.55; color: #c3cadc;
    max-width: 310px; text-shadow: none;
}
.why b { color: #fff; font-weight: 600; }
.why .c { color: var(--cyan); }
.why .a { color: var(--amber); }

/* ---- Glass Card (Control Panel) ---- */
.card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px -20px #000a;
}

.ctl {
    position: absolute; right: 24px; top: 22px;
    z-index: 4; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 480px;
}

.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.grp { display: flex; flex-direction: column; gap: 4px; }
.slide-g { flex: 1; min-width: 140px; }

/* ---- Labels ---- */
.lab {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 8px;
    font-size: 10px; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--mute);
    font-weight: 600; margin: 0 3px;
}
.lab em {
    font: 400 10px var(--mono);
    letter-spacing: 0; text-transform: none;
    color: #7d87a4; font-style: normal;
}

/* ---- Segment Buttons ---- */
.seg {
    display: flex; gap: 2px; padding: 2px;
    border-radius: 11px; background: #ffffff0c;
}
.seg button {
    background: transparent; border-radius: 9px;
    height: 30px; padding: 0 10px;
    font-size: 12.5px; font-weight: 500;
    color: #cfd6e8; white-space: nowrap;
    transition: background .15s, color .15s;
}
.seg button:hover { background: #ffffff14; }
.seg button.on { background: #eef4ff; color: #101626; }

#seg-ap button {
    font-family: var(--mono); font-size: 12px;
}

/* ---- Sliders ---- */
.slide {
    position: relative; height: 34px;
    margin: 0 6px; cursor: pointer;
    touch-action: none;
}
.slide .tr {
    position: absolute; left: 0; right: 0; top: 16px;
    height: 2px; border-radius: 2px; background: #ffffff1f;
}
.slide .fl {
    position: absolute; left: 0; top: 16px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #7fe3ff40, var(--cyan));
    box-shadow: 0 0 10px #7fe3ff80;
    width: 50%;
}
.slide .kn {
    position: absolute; top: 9px;
    width: 16px; height: 16px; margin-left: -8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f4f7ff, #aab4c8);
    box-shadow: 0 0 0 3px #7fe3ff33, 0 3px 8px #0008;
    left: 50%;
    transition: transform 0.1s;
}
.slide .kn:hover { transform: scale(1.2); }
.slide .dz {
    position: absolute; top: 13px; height: 8px;
    border-radius: 4px; background: #7fe3ff2e;
    border: 1px solid #7fe3ff66;
}

/* ---- Tool Buttons ---- */
.tools { display: flex; gap: 4px; margin-left: auto; }
.tools button {
    background: #ffffff12; border-radius: 10px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    color: #dfe4f3;
    transition: background 0.15s, color 0.15s;
}
.tools button:hover { background: #ffffff24; }
.tools button.on { background: #fff; color: #141a2c; }
.tools button svg { width: 14px; height: 14px; fill: currentColor; }

/* ---- Presets Bar ---- */
.presets {
    position: absolute; left: 24px; bottom: 22px;
    z-index: 4; display: flex; gap: 6px; flex-wrap: wrap;
    pointer-events: auto;
}
.preset-btn {
    padding: 6px 12px; border-radius: 10px;
    background: #0d1220c4; border: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-size: 12px; font-weight: 500;
    color: #c9cfe2; white-space: nowrap;
    transition: all 0.2s;
}
.preset-btn:hover {
    background: #1a2033f0; border-color: var(--cyan);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px #7fe3ff22;
}

/* ---- Tip Toast ---- */
#tip-toast {
    position: absolute; bottom: 70px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 8; padding: 10px 20px; border-radius: 12px;
    background: #0d1220f0; border: 1px solid var(--cyan);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    font-size: 13px; color: #e0e6f2; max-width: 400px;
    text-align: center; pointer-events: none;
    opacity: 0; transition: all 0.4s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 8px 30px #7fe3ff22;
}
#tip-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---- Education Panel ---- */
#edu-panel {
    position: absolute; left: 24px; bottom: 80px;
    z-index: 5; max-width: 340px; padding: 14px 16px;
    border-radius: 14px;
    background: #0e1220f5; border: 1px solid #ffffff24;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 22px 52px -20px #000c;
    opacity: 0; transform: translateY(12px);
    transition: all 0.35s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
}
#edu-panel.show {
    opacity: 1; transform: none; pointer-events: auto;
}
#edu-panel h3 {
    font-size: 14px; font-weight: 700;
    margin: 0 0 6px; color: var(--cyan);
}
#edu-panel p {
    font-size: 12.5px; line-height: 1.6; color: #c3cadc;
    margin: 0 0 6px;
}
#edu-panel .detail {
    font-size: 11.5px; color: #8d97b3;
    border-top: 1px solid #ffffff14;
    padding-top: 6px; margin-top: 2px;
}
#edu-panel .c { color: var(--cyan); }
#edu-panel .a { color: var(--amber); }

/* ---- Info Cards Row ---- */
.info-cards {
    display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap;
}
.info-card {
    padding: 4px 8px; border-radius: 8px;
    background: #ffffff08; border: 1px solid #ffffff10;
    font-size: 10px; font-weight: 500;
    color: #9ea8c2; cursor: pointer;
    transition: all 0.2s;
}
.info-card:hover {
    background: #ffffff18; border-color: var(--cyan);
    color: var(--cyan);
}

/* ---- Dialog ---- */
dialog {
    color: #eef1fa; background: #101526;
    border: 1px solid #ffffff24; border-radius: 20px;
    padding: 28px; max-width: 600px; max-height: 84vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px #000a;
}
dialog::backdrop {
    background: #05070fa8; backdrop-filter: blur(3px);
}
dialog h2 {
    font-size: 22px; font-weight: 700;
    margin: 0 0 10px; letter-spacing: -.4px;
}
dialog h3 {
    font-size: 11px; letter-spacing: 1.5px;
    text-transform: uppercase; color: #8f98b3;
    margin: 18px 0 6px; font-weight: 600;
}
dialog p {
    font-size: 13.5px; color: #c0c7dc;
    line-height: 1.65; margin: 0 0 10px;
}
dialog b { color: #fff; font-weight: 600; }
#close-dialog {
    float: right; background: none;
    font-size: 24px; line-height: 1; color: #8f98b3;
    padding: 4px; border-radius: 8px;
}
#close-dialog:hover { color: #fff; background: #ffffff14; }

/* ---- Section Labels ---- */
.section-label {
    font: 600 9px/1 var(--mono);
    letter-spacing: .14em; text-transform: uppercase;
    color: #5a6378; margin: 4px 0 2px 3px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .lab em { display: none; }
    .seg button { padding: 0 7px; }
}

@media (max-height: 700px) and (min-width: 901px) {
    .why { display: none; }
    .brand small { display: none; }
}

@media (max-width: 900px) {
    .side { left: 12px; top: 12px; right: 12px; width: auto; }
    .brand h1 span { font-size: 12px; display: inline; }
    .brand h1 b { font-size: 22px; display: inline; }
    .brand small { display: none; }
    .stats { margin-top: 8px; }
    .stat { min-width: 0; padding: 5px 7px 4px; }
    .stat b, .stat .stat-val { font-size: 13px; }
    .why { display: none; }
    .ctl {
        left: 10px; right: 10px; top: auto; bottom: 10px;
        padding: 10px; max-width: none;
    }
    .row { gap: 6px; }
    .presets { bottom: auto; top: 80px; left: 12px; }
    .vignette {
        background: radial-gradient(ellipse at 50% 46%, transparent 52%, #05060c9c 100%);
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ffffff24; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ffffff40; }

/* ---- Annotations (3D Etiketler) ---- */
#annotations {
    position: absolute; inset: 0; z-index: 5;
    pointer-events: none; /* Sadece içindeki butonlar tıklanabilir olmalı */
}
.annotation {
    position: absolute; left: 0; top: 0;
    will-change: transform;
}
.ann-dot {
    width: 24px; height: 24px;
    background: #0b1020d0;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: absolute; left: -12px; top: -12px;
    cursor: pointer; pointer-events: auto;
    display: grid; place-items: center;
    box-shadow: 0 0 10px #7fe3ff40;
    transition: transform 0.2s, background 0.2s;
}
.ann-dot::after {
    content: '';
    width: 8px; height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
.ann-dot:hover {
    transform: scale(1.2);
    background: #1a243a;
}
.annotation.show .ann-dot {
    background: var(--cyan);
}
.annotation.show .ann-dot::after {
    background: #0b1020;
    animation: none;
}
@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(127, 227, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(127, 227, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(127, 227, 255, 0); }
}

.ann-card {
    position: absolute; left: 16px; top: -16px;
    width: 220px;
    background: #0d1220f0; border: 1px solid var(--cyan);
    border-radius: 12px; padding: 12px 14px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px #000c, 0 0 16px #7fe3ff20;
    pointer-events: auto;
    opacity: 0; visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(.2,.8,.2,1);
    color: #eef2fa;
}
.annotation.show .ann-card {
    opacity: 1; visibility: visible;
    transform: translateX(0);
}
.ann-card h4 {
    margin: 0 0 6px 0; font-size: 14px; color: var(--cyan);
    font-weight: 700;
}
.ann-card p {
    margin: 0; font-size: 12px; line-height: 1.5;
    color: #c3cadc;
}
