@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;0,6..72,700;1,6..72,400&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --primary-red: #b91c1c;
  --primary-red-hover: #991b1b;
  --primary-red-dark: #7f1d1d;
  --primary-red-light: #fef2f2;
  --dark-header: #0f172a;
  --navy-accent: #1e293b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --font-serif: 'Newsreader', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .headline {
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.serif-headline {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-red);
}

/* ==================== TOP BAR & TICKER ==================== */
.top-header-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  border-bottom: 1px solid #1e293b;
}

.financial-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.financial-ticker-item .rate {
  color: #f8fafc;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.financial-ticker-item .rate-up {
  color: #10b981;
}

.financial-ticker-item .rate-down {
  color: #ef4444;
}

.top-nav-link {
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.2s ease;
}

.top-nav-link:hover {
  color: #ffffff;
}

/* ==================== MASTHEAD ==================== */
.newspaper-masthead {
  background: #ffffff;
  padding: 1.5rem 0 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
}

.newspaper-brand-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
  text-transform: uppercase;
}

.newspaper-brand-title span {
  color: var(--primary-red);
}

.newspaper-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.newspaper-date-badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  border-left: 2px solid var(--primary-red);
  padding-left: 10px;
}

/* ==================== MAIN NAVIGATION (SADE & ZARİF) ==================== */
.main-news-nav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.main-news-nav .navbar-brand {
  font-size: 1.1rem;
}

.main-news-nav .nav-link {
  color: #334155 !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1rem !important;
  transition: all 0.15s ease;
  position: relative;
  border-bottom: 2px solid transparent;
}

.main-news-nav .nav-link:hover,
.main-news-nav .nav-link.active {
  color: var(--primary-red) !important;
  border-bottom-color: var(--primary-red);
  background-color: transparent;
}

.main-news-nav .nav-link.chat-link {
  background-color: #f1f5f9;
  color: #0f172a !important;
  border-radius: 6px;
  padding: 0.45rem 0.9rem !important;
  margin: auto 0;
  border-bottom: none;
}

.main-news-nav .nav-link.chat-link:hover {
  background-color: #e2e8f0;
  color: var(--primary-red) !important;
}

/* ==================== BREAKING NEWS TICKER ==================== */
.breaking-news-bar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 0.85rem;
}

.breaking-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.breaking-pulse {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ticker-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-heading);
}

.ticker-text:hover {
  color: var(--primary-red);
}

/* ==================== MANŞET SLIDER ==================== */
.manset-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0f172a;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.manset-slide {
  position: relative;
  display: none;
  min-height: 420px;
}

.manset-slide.active {
  display: block;
}

.manset-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.manset-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
  padding: 2rem 2rem 4rem 2rem;
  color: #ffffff;
}

.manset-category-tag {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.manset-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 8px;
}

.manset-summary {
  font-size: 0.92rem;
  color: #cbd5e1;
  max-width: 90%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* Manşet Number Bar */
.manset-numbers-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.manset-num-btn {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: #94a3b8;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.15s ease;
  user-select: none;
}

.manset-num-btn:last-child {
  border-right: none;
}

.manset-num-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.manset-num-btn.active {
  background-color: var(--primary-red);
  color: #ffffff;
}

/* ==================== SÜRMANŞET CARDS ==================== */
.surmanset-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  height: 202px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.surmanset-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.surmanset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.surmanset-card:hover img {
  transform: scale(1.03);
}

.surmanset-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 65%, transparent 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.surmanset-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
}

/* ==================== SECTION HEADINGS ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background-color: var(--primary-red);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-heading);
}

.section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-red);
}

/* ==================== NEWS CARDS ==================== */
.news-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.news-card-img-wrap {
  position: relative;
  height: 185px;
  overflow: hidden;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-img-wrap img {
  transform: scale(1.03);
}

.news-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.news-card-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid #f8fafc;
}

/* List Style News Card */
.news-list-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.15s ease;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-thumb {
  width: 85px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.news-list-content {
  flex-grow: 1;
}

.news-list-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.news-list-time {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ==================== MAĞDUR KÜRSÜSÜ BADGE & QUOTE ==================== */
.victim-quote-card {
  background: #ffffff;
  border-left: 3px solid var(--primary-red);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.victim-quote-card .quote-icon {
  font-size: 1.5rem;
  color: var(--primary-red);
  opacity: 0.3;
  line-height: 1;
}

/* ==================== CHAT ROOM ==================== */
.chat-window-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  height: 680px;
  display: flex;
}

.chat-sidebar {
  width: 290px;
  background-color: #f8fafc;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.chat-channel-list {
  padding: 6px;
}

.chat-channel-btn {
  padding: 10px 12px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: all 0.15s ease;
  position: relative;
}

.chat-channel-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-heading);
}

.chat-channel-btn.active {
  background-color: #ffffff;
  color: var(--primary-red);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-left: 3px solid var(--primary-red);
}

.chat-channel-desc {
  font-size: 0.72rem;
  font-weight: 400;
  color: #64748b;
  margin-top: 1px;
}

.chat-channel-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
  flex-shrink: 0;
  animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.chat-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-width: 0;
}

.chat-header {
  padding: 12px 20px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-messages-container {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-messages-container::-webkit-scrollbar {
  width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Empty State */
.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  margin: auto;
  max-width: 420px;
}

.chat-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #94a3b8;
  margin-bottom: 16px;
}

/* Bubbles */
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  word-break: break-word;
}

.chat-bubble.other {
  align-self: flex-start;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}

.chat-bubble.self {
  align-self: flex-end;
  background-color: #1e293b;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.self .chat-user-name {
  color: #cbd5e1;
}

.chat-bubble.self .chat-time {
  color: rgba(255, 255, 255, 0.65);
}

.chat-bubble.self .chat-fund-tag {
  background-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

.chat-user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.chat-role-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.role-admin {
  background-color: #fee2e2;
  color: #991b1b;
}

.role-member {
  background-color: #e0f2fe;
  color: #0369a1;
}

.chat-fund-tag {
  font-size: 0.65rem;
  background-color: #f1f5f9;
  color: #475569;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.chat-text {
  font-size: 0.93rem;
  line-height: 1.5;
}

.chat-link-in-bubble {
  color: #0284c7;
  text-decoration: underline;
  word-break: break-all;
}

.chat-bubble.self .chat-link-in-bubble {
  color: #7dd3fc;
}

.chat-time {
  font-size: 0.68rem;
  color: #94a3b8;
  text-align: right;
  margin-top: 4px;
}

/* Typing Indicator */
.chat-typing-bar {
  padding: 6px 18px;
  background-color: #ffffff;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
}

.typing-dots {
  display: inline-flex;
  gap: 3px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background-color: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Area */
.chat-input-area {
  padding: 14px 18px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

/* Toasts */
.chat-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1090;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
  min-width: 240px;
  transition: opacity 0.25s ease;
}

.chat-toast.toast-danger {
  border-left: 4px solid #ef4444;
}

.chat-toast.toast-success {
  border-left: 4px solid #10b981;
}

.chat-toast.toast-info {
  border-left: 4px solid #0284c7;
}

.spin-animation {
  animation: spin 0.8s linear;
}

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

/* ==================== ARTICLE DETAIL PAGE ==================== */
.article-detail-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.article-title-main {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.article-lead {
  font-size: 1.1rem;
  font-weight: 400;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.article-main-image {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #334155;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-red);
  padding-left: 10px;
}

/* ==================== FOOTER ==================== */
.newspaper-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem 0;
  border-top: 2px solid #1e293b;
  margin-top: 3.5rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 6px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25px;
  height: 2px;
  background-color: var(--primary-red);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* ==================== ADMIN DASHBOARD ==================== */
.admin-card-stat {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.stat-icon-red { background: #fee2e2; color: #dc2626; }
.stat-icon-blue { background: #e0f2fe; color: #0284c7; }
.stat-icon-green { background: #dcfce7; color: #16a34a; }
.stat-icon-amber { background: #fef3c7; color: #d97706; }
.stat-icon-purple { background: #f3e8ff; color: #9333ea; }

.admin-sidebar {
  background: #1e293b;
  color: #f8fafc;
  min-height: 100vh;
  padding: 1.5rem 1rem;
}

.admin-nav-item {
  color: #cbd5e1;
  padding: 9px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 4px;
  transition: all 0.15s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: var(--primary-red);
  color: #ffffff;
}

.btn-copy-success {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.hover-red:hover {
  color: var(--primary-red) !important;
}