/* BLGNTube — professional dark theme */

:root {
    --bg:       #0e0e12;
    --surface:  #15151a;
    --surface2: #1d1d24;
    --border:   rgba(255,255,255,0.07);
    --border2:  rgba(255,255,255,0.12);
    --accent:   #f43f5e;
    --accent-bg: rgba(244,63,94,0.1);
    --text:     #f4f4f5;
    --text2:    #a1a1aa;
    --text3:    #52525b;
    --radius:   8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
}

/* ── Dot-grid hero background ───────────────────────────── */
.hero-bg {
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, var(--bg) 90%);
    pointer-events: none;
    z-index: 0;
}
.hero-bg > * { position: relative; z-index: 1; }

/* Top accent glow */
.hero-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(244,63,94,0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Card ───────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* ── Inputs ─────────────────────────────────────────────── */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text3); }
.input:focus {
    border-color: rgba(244,63,94,0.5);
    box-shadow: 0 0 0 3px rgba(244,63,94,0.12);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    transition: background 0.15s, opacity 0.15s, transform 0.1s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover:not(:disabled) { background: #e11d48; }

.btn-secondary {
    background: var(--surface2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) { background: #26262f; border-color: var(--border2); }

.btn-ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-white {
    background: #fff;
    color: #18181b;
}
.btn-white:hover { background: #f4f4f5; }

/* ── Format seçici ──────────────────────────────────────── */
.fmt-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
    width: 100%;
    color: var(--text);
}
.fmt-btn:hover { border-color: var(--border2); }
.fmt-btn.is-active {
    border-color: rgba(244,63,94,0.45);
    background: var(--accent-bg);
}
.fmt-btn.is-active .fmt-icon { color: var(--accent); }

/* ── Nav ────────────────────────────────────────────────── */
.nav-link {
    font-size: 0.875rem;
    color: var(--text2);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius);
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }

/* ── Lang switcher ───────────────────────────────────────── */
.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.75rem;
    font-weight: 600;
}
.lang-btn {
    padding: 0.3rem 0.6rem;
    color: var(--text2);
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    text-decoration: none;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--accent); color: #fff; }

/* ── Progress bar shimmer ────────────────────────────────── */
@keyframes progress-shine {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}

#progressBar {
    height: 100%;
    border-radius: 9999px;
    background: var(--accent);
    transition: width 300ms ease;
}
#progressBar.is-indeterminate {
    background: linear-gradient(
        90deg,
        var(--accent) 0%,
        #fb7185 40%,
        #fff 50%,
        #fb7185 60%,
        var(--accent) 100%
    ) !important;
    background-size: 200% auto !important;
    animation: progress-shine 1.2s linear infinite;
    transition: width 300ms ease;
}

/* ── Misc ───────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text3);
    font-size: 0.75rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.field-validation-error, .text-danger {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}
.input-validation-error { border-color: rgba(244,63,94,0.6) !important; }

::selection { background: rgba(244,63,94,0.3); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
