:root {
    --bg-color: #f0f2f5;
    --sidebar-bg: #ffffff;
    --text-color: #1a2332;
    --border-color: #e4e8ed;
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #7c3aed;
    --secondary-hover: #6d28d9;
    --dark-bg: #1e293b;
    --muted: #64748b;

    /* Duygu Renkleri */
    --positive: #10b981;
    --negative: #ef4444;
    --neutral: #94a3b8;

    /* Status renkleri */
    --status-success: #10b981;
    --status-error: #ef4444;
    --status-loading: #f59e0b;
    --status-idle: #94a3b8;
}

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

body {
    font-family: 'Sora', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 360px;
    min-width: 320px;
    background-color: var(--sidebar-bg);
    padding: 24px 20px;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    box-shadow: 4px 0 16px rgba(0,0,0,0.04);
    z-index: 10;
}

.logo-container {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-color);
}

.logo-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-bg);
    letter-spacing: -0.3px;
}

.logo-sub {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

/* ===== CONTROL GROUPS ===== */
.box-shadow {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}

.box-shadow:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.control-group h3 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-bg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== INPUTS ===== */
input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    margin-bottom: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Sora', sans-serif;
    transition: all 0.2s;
    background: #fafafa;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

input:disabled {
    background-color: #f1f3f5;
    cursor: not-allowed;
    color: #adb5bd;
}

/* ===== BUTTONS ===== */
button {
    width: 100%;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    font-family: 'Sora', sans-serif;
    transition: all 0.2s ease-in-out;
    letter-spacing: 0.1px;
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

button:active:not(:disabled) { transform: scale(0.97); }

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.primary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.secondary-btn {
    background: linear-gradient(135deg, var(--secondary-color), #8b5cf6);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}
.secondary-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-hover), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.outline-btn {
    background: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}
.outline-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.ghost-btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--muted);
    font-size: 12px;
}
.ghost-btn:hover:not(:disabled) {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* ===== STATUS MESSAGES ===== */
.status-msg {
    font-size: 11.5px;
    margin-top: 7px;
    text-align: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.status-idle    { color: var(--status-idle);    background: #f8f9fa; }
.status-loading { color: var(--status-loading); background: #fffbeb; }
.status-success { color: var(--status-success); background: #f0fdf4; }
.status-error   { color: var(--status-error);   background: #fef2f2; }

/* ===== LOADER SPINNER ===== */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== CHART ===== */
.chart-container { margin-top: 4px; text-align: center; }
canvas { max-width: 100%; }

/* ===== MAIN NEWS FEED ===== */
.news-feed {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-color);
}

.feed-header {
    background: #fff;
    padding: 20px 36px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.feed-header-left {}

.feed-header h1 {
    font-size: 22px;
    color: var(--dark-bg);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.feed-header .subtitle {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.news-count-badge {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.feed-content {
    padding: 24px 36px;
    overflow-y: auto;
    flex-grow: 1;
}

/* ===== RESULTS HEADER ===== */
.results-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.results-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.empty-icon {
    font-size: 52px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== NEWS CARDS ===== */
.news-card {
    background-color: white;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-left: 5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: cardIn 0.3s ease both;
}

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

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.news-card.Positive { border-left-color: var(--positive); }
.news-card.Negative { border-left-color: var(--negative); }
.news-card.Neutral  { border-left-color: var(--neutral);  }

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-color);
    flex: 1;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.news-title a:hover { color: var(--primary-color); }

/* ===== BADGE ===== */
.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.badge.Positive { background-color: var(--positive); }
.badge.Negative { background-color: var(--negative); }
.badge.Neutral  { background-color: var(--neutral);  }

/* ===== NEWS CONTENT ===== */
.news-summary {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    gap: 12px;
}

.news-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.btn-translate {
    background-color: #f1f5f9;
    color: #475569;
    width: auto;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    margin: 0;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.btn-translate:hover:not(:disabled) {
    background-color: #e2e8f0;
    color: var(--text-color);
}

/* ===== LANG BADGE ===== */
.lang-badge {
    display: inline-block;
    font-size: 13px;
    margin-right: 3px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
