/* -*- coding: utf-8 -*- */
/* stylo.css - Cinematic UI for Deep Personality Analysis */

:root {
    --bg-dark: #020617;
    --card-bg: rgba(255,255,255,0.02);
    --border: rgba(255,255,255,0.08);
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --accent-gold: #fbbf24;
    --accent-red: #ef4444;
    --accent-green: #22c55e;
    --accent-purple: #c084fc;
    --accent-cyan: #06b6d4;
}

body { 
    background: var(--bg-dark); 
    color: var(--text-main); 
    font-family: 'Georgia', serif; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    min-height: 100vh; 
    margin: 0; 
    padding: 40px 0;
    overflow-x: hidden;
}

/* BLUR CONTAINER İÇİN */
.container { width: 100%; max-width: 750px; padding: 0 40px; box-sizing: border-box; transition: filter 0.4s ease, opacity 0.4s ease; }
.container.blur-active { filter: blur(8px); opacity: 0.4; pointer-events: none; }

/* KİNETİK YÜKLEME EKRANI (OVERLAY) */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; opacity: 0; visibility: hidden; transition: 0.4s ease;
}
.loading-overlay.active { opacity: 1; visibility: visible; }
.loading-text { color: var(--accent-gold); font-size: 1.2rem; font-family: monospace; letter-spacing: 3px; }
.dots::after { content: ''; animation: loading-dots 1.5s steps(4, end) infinite; }
@keyframes loading-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } 100% { content: ''; } }

/* HEADER */
.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 1px dashed var(--border); padding-bottom: 20px; }
h1 { font-size: 1.1rem; letter-spacing: 4px; margin: 0; opacity: 0.9; font-family: monospace; }
.header-meta { display: flex; align-items: center; gap: 15px; font-size: 12px; opacity: 0.4; font-family: monospace; }

/* SIGNAL ANIMATION */
.sig-core { fill: var(--accent-red); transition: fill 0.3s; }
[data-state="typing"] .sig-core { fill: var(--accent-gold); animation: blink 1.2s infinite; }
[data-state="ready"] .sig-core { fill: var(--accent-green); animation: blink 0.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* PROGRESS BAR (ZİHİN ÇUBUĞU) */
.sylo-progress-wrapper { width: 100%; height: 3px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-bottom: 15px; overflow: hidden; }
.sylo-progress-bar { height: 100%; transition: width 0.2s ease, background-color 0.4s ease; }
.bar-red { width: 100%; background-color: var(--accent-red); opacity: 0.7; }
.bar-blink-yellow { width: 100%; background-color: var(--accent-gold); animation: pulse-yellow 1.2s infinite; }
.bar-fill-yellow { background-color: var(--accent-gold); }
.bar-green { width: 100%; background-color: var(--accent-green); box-shadow: 0 0 10px rgba(34, 197, 94, 0.4); }
@keyframes pulse-yellow { 0%, 100% { opacity: 0.8; } 50% { opacity: 0.2; } }

/* FORM ELEMENTS */
.sylo-guide { font-size: 14px; color: var(--accent-gold); opacity: 0.8; margin-bottom: 15px; font-style: italic; }
textarea { 
    width: 100%; height: 220px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 4px; padding: 20px; color: #fff; font-size: 16px; line-height: 1.8; outline: none; box-sizing: border-box; transition: 0.3s; resize: none;
}
textarea:focus { border-color: var(--accent-gold); background: rgba(0,0,0,0.6); box-shadow: 0 0 15px rgba(251, 191, 36, 0.1); }
.sylo-counter { font-size: 11px; opacity: 0.4; margin-top: 10px; font-family: monospace; display: flex; justify-content: space-between; }

/* BUTTONS */
.sylo-btn { 
    margin-top: 25px; background: var(--accent-gold); color: var(--bg-dark); border: none; padding: 16px 30px; 
    font-weight: bold; letter-spacing: 1.5px; cursor: pointer; border-radius: 2px; transition: 0.3s; width: 100%; font-family: monospace; font-size: 14px;
}
.sylo-btn:hover:not(:disabled) { background: #f59e0b; transform: translateY(-2px); }
.sylo-btn:disabled { background: #1e293b; color: #475569; cursor: not-allowed; }

/* ERROR MESSAGE */
.sylo-error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--accent-red); color: #fca5a5; padding: 20px; border-radius: 4px; font-family: monospace; margin-bottom: 30px; animation: fadeInUp 0.5s ease-out; }
.sylo-error strong { color: var(--accent-red); display: block; margin-bottom: 8px; font-size: 14px; }

/* RESULT CARD */
.sylo-card { background: var(--card-bg); border: 1px solid var(--border); padding: 40px; border-radius: 8px; animation: fadeInUp 0.8s ease-out; }
.res-top { display: flex; justify-content: space-between; font-size: 11px; font-family: monospace; color: var(--text-muted); margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.res-title { font-size: 2.8rem; margin: 0 0 10px 0; color: var(--accent-gold); line-height: 1.1; }
.res-alignment { font-size: 14px; color: var(--text-muted); font-family: monospace; letter-spacing: 2px; margin-bottom: 25px; text-transform: uppercase; }

.traits-box { margin-bottom: 40px; }
.trait { display: inline-block; padding: 6px 14px; border: 1px solid rgba(251, 191, 36, 0.4); color: var(--accent-gold); font-size: 11px; border-radius: 20px; margin-right: 8px; margin-bottom: 8px; font-family: monospace; background: rgba(251, 191, 36, 0.05); }

/* DEEP AI ANALYSIS */
.deep-analysis { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.insight-block { background: rgba(0,0,0,0.3); border: 1px solid var(--border); padding: 25px; border-radius: 6px; font-size: 1.1rem; line-height: 1.7; color: #e2e8f0; }
.insight-block strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 12px; font-weight: bold; font-family: monospace; }
.insight-core { border-left: 3px solid var(--accent-gold); }
.insight-evidence { border-left: 3px solid var(--accent-purple); font-style: italic; }
.insight-behavioral { border-left: 3px solid var(--accent-cyan); }
.insight-blindspot { border-left: 3px solid var(--accent-red); }

/* RADAR CHART AREA */
.visual-data { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; 
    background: rgba(0,0,0,0.2); padding: 30px; border-radius: 6px; border: 1px dashed var(--border); 
    box-sizing: border-box; width: 100%; overflow: hidden;
}
.radar-container { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 100%; }
#radarChart { max-width: 100%; height: auto; }
.stats-list { font-family: monospace; font-size: 12px; color: var(--text-muted); width: 100%; }
.stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.stat-row:last-child { border-bottom: none; }
.stat-val { color: var(--text-main); font-weight: bold; }

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

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    body { padding: 20px 0; }
    .container { padding: 0 15px; }
    textarea { font-size: 16px !important; padding: 20px; height: 260px; }
    .sylo-btn { padding: 18px; font-size: 16px; }
    .res-title { font-size: 2.2rem; }
    .res-top { flex-direction: column; gap: 10px; }
    .visual-data { grid-template-columns: 1fr; gap: 25px; padding: 20px; }
}