/* ============================================================
   dogrucudavut.com — Ana CSS
   Tailwind CDN üzeri özel stiller
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary:   #080c18;
    --bg-secondary: #0d1224;
    --bg-card:      #111827;
    --border:       rgba(255,255,255,0.08);
    --accent:       #3b82f6;
    --accent-glow:  rgba(59,130,246,0.3);
    --text-primary: #f1f5f9;
    --text-muted:   #64748b;

    --true:         #10b981;
    --true-bg:      rgba(16,185,129,0.1);
    --true-border:  rgba(16,185,129,0.3);

    --false:        #ef4444;
    --false-bg:     rgba(239,68,68,0.1);
    --false-border: rgba(239,68,68,0.3);

    --mislead:      #f59e0b;
    --mislead-bg:   rgba(245,158,11,0.1);
    --mislead-brd:  rgba(245,158,11,0.3);

    --unclear:      #6b7280;
    --unclear-bg:   rgba(107,114,128,0.1);
    --unclear-brd:  rgba(107,114,128,0.3);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }

/* ---- HERO GRADIENT MESH ---- */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59,130,246,0.18), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139,92,246,0.12), transparent),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ---- GLASSMORPHISM CARD ---- */
.glass-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: 0 0 30px rgba(59,130,246,0.05);
}

/* ---- SEARCH BOX ---- */
.search-wrapper {
    position: relative;
    width: 100%;
}
.search-input {
    width: 100%;
    background: rgba(17,24,39,0.9);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* ---- MAIN BUTTON ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    white-space: nowrap;
}
.btn-primary:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ---- STATUS BADGES ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid;
    letter-spacing: 0.02em;
}
.status-true      { color: var(--true);    background: var(--true-bg);    border-color: var(--true-border); }
.status-false     { color: var(--false);   background: var(--false-bg);   border-color: var(--false-border); }
.status-misleading{ color: var(--mislead); background: var(--mislead-bg); border-color: var(--mislead-brd); }
.status-unclear   { color: var(--unclear); background: var(--unclear-bg); border-color: var(--unclear-brd); }

/* ---- BIG STATUS (result page) ---- */
.result-status-true      { border-top: 4px solid var(--true); }
.result-status-false     { border-top: 4px solid var(--false); }
.result-status-misleading{ border-top: 4px solid var(--mislead); }
.result-status-unclear   { border-top: 4px solid var(--unclear); }

.status-icon {
    font-size: 3rem;
    line-height: 1;
}

/* ---- CONFIDENCE BAR ---- */
.confidence-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}
.confidence-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- SOURCES ---- */
.source-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    word-break: break-all;
}
.source-link:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); }

/* ---- TWEET BOX ---- */
.tweet-box {
    background: rgba(29,161,242,0.06);
    border: 1px solid rgba(29,161,242,0.2);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---- LOADING SPINNER ---- */
.spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- ANALYZING OVERLAY ---- */
.analyzing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,12,24,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 9999;
}
.analyzing-card {
    background: rgba(17,24,39,0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 380px;
}
.pulse-ring {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--accent-glow);
    animation: pulse-ring 1.5s ease-out infinite;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
    70%  { box-shadow: 0 0 0 20px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---- POPULAR CARDS ---- */
.fact-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.fact-card:hover { transform: translateY(-4px); }

/* ---- STAT COUNTER ---- */
.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* ---- NAVBAR ---- */
.navbar {
    background: rgba(8,12,24,0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ---- ADMIN SIDEBAR ---- */
.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    width: 240px;
    flex-shrink: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
    font-size: 0.9rem;
}
.sidebar-link:hover,
.sidebar-link.active { background: rgba(59,130,246,0.1); color: #60a5fa; }

/* ---- TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.875rem;
    vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- FORM INPUTS ---- */
.form-input {
    width: 100%;
    background: rgba(17,24,39,0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ---- FOOTER ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ---- COPY BTN ---- */
.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    background: rgba(29,161,242,0.1);
    border: 1px solid rgba(29,161,242,0.3);
    color: #38bdf8;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.copy-btn:hover { background: rgba(29,161,242,0.2); }
.copy-btn.copied { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #34d399; }

/* ---- TOGGLE SWITCH ---- */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #374151; border-radius: 22px; cursor: pointer;
    transition: 0.3s;
}
.toggle-slider:before {
    content: ''; position: absolute;
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background: #fff; border-radius: 50%;
    transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: #10b981; }
.toggle input:checked + .toggle-slider:before { transform: translateX(18px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .stat-number { font-size: 1.75rem; }
}

/* ---- AUTOSCROLL VERTICAL STREAM ---- */
.stream-container {
    height: 480px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}
.stream-container::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to bottom, var(--bg-card), transparent); z-index: 2; pointer-events: none;
}
.stream-container::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(to top, var(--bg-card), transparent); z-index: 2; pointer-events: none;
}

.stream-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: scrollVertical 35s linear infinite;
    padding: 10px 0;
}
.stream-container:hover .stream-content {
    animation-play-state: paused;
}
@keyframes scrollVertical {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.stream-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    display: block;
}
.stream-card:hover {
    background: rgba(59,130,246,0.08);
}
