/* ===================================================
   RUMELİNİN SESİ - Next.js ile piksel piksel eşleşen CSS
   Renkler: subagent incelemesinden alındı
   =================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }

/* ===== TOP BAR 1: STOCK TICKER ===== */
.top-bar-1 {
  background-color: #0f172a;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #1e293b;
}

.stock-ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 35s linear infinite;
  will-change: transform;
}
.stock-ticker:hover { animation-play-state: paused; }

@keyframes ticker-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stock-item {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stock-name  { color: #94a3b8; font-weight: 700; margin-right: 8px; text-transform: uppercase; }
.stock-value { color: #ffffff; font-weight: 800; margin-right: 8px; }
.stock-change { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 0.75rem; }
.stock-change.up   { color: #10b981; }
.stock-change.down { color: #ef4444; }

/* ===== TOP BAR 2: DATE / SOCIAL / LOGIN ===== */
.top-bar-2-wrapper { background-color: #0f172a; }
.top-bar-2 {
  color: #94a3b8;
  font-size: 0.75rem;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-bar-2-left, .top-bar-2-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}
.social-icons { display: flex; gap: 10px; }
.social-icons span { cursor: pointer; color: #94a3b8; font-size: .78rem; font-weight: 700; }
.social-icons span:hover { color: #fff; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid #334155; color: #94a3b8;
}
.premium-link { color: #a78bfa; font-weight: 600; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.premium-link:hover { color: #c4b5fd; }
.login-nav { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.login-nav a { color: #94a3b8; transition: color .2s; }
.login-nav a:hover { color: white; }

/* ===== BRANDING ROW ===== */
.branding-row-wrapper {
  background-image: url(/assets/img/logo-bg.png);
  background-repeat: repeat-x;
  background-position: center;
  background-size: contain;
  background-color: #008db1;
  border-top: 4px solid #FFF;
}
.branding-row {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100px;
}
.logo-image    { max-height: 90px; width: auto; object-fit: contain; }
.logo-container { display: flex; align-items: center; justify-content: flex-start; width: 100%; }

/* ===== MAIN NAVIGATION ===== */
.mainnav-wrapper { background-color: #0f172a; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.mainnav-row {
  display: flex;
  align-items: stretch;
  height: 50px;
}
.nav-home-btn {
  background-color: #ef4444;
  color: #fff;
  font-weight: 700;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background .2s;
}
.nav-home-btn:hover { background-color: #dc2626; }
.nav-menu { display: flex; align-items: center; flex: 1; }
.nav-menu li { height: 100%; }
.nav-menu li a {
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: background .2s, color .2s;
}
.nav-menu li a:hover { background-color: rgba(255,255,255,0.08); color: #fff; }
.nav-menu li a.active { color: #ef4444; }
.nav-search {
  padding: 0 1.25rem; color: #94a3b8;
  cursor: pointer; display: flex; align-items: center; font-size: 1.1rem;
}
.nav-search:hover { color: #fff; }

/* ===== FLASH NEWS ===== */
.flash-row {
  display: flex;
  background-color: #ef4444;
  color: #fff;
  height: 38px;
}
.flash-badge {
  background-color: #fff;
  color: #ef4444;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.5rem 0 1rem;
  text-transform: uppercase;
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%);
  margin-right: -10px;
  white-space: nowrap;
  letter-spacing: .5px;
}
.flash-ticker-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  overflow: hidden;
  white-space: nowrap;
  gap: 0;
}
.flash-ticker-wrapper a { color: #fff; }
.flash-ticker-wrapper a:hover { text-decoration: underline; }
.flash-arrows { display: flex; height: 100%; }
.flash-arrows button {
  background: transparent; border: none;
  border-left: 1px solid rgba(255,255,255,0.25);
  color: white; width: 36px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .15s;
}
.flash-arrows button:hover { background-color: rgba(0,0,0,0.15); }

/* ===== HERO SECTION ===== */
.hero-section {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 1rem;
  margin-bottom: 2rem;
  height: 600px;
}
@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; height: auto; }
}

.hero-main {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.hero-main-img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.9;
  transition: opacity 0.4s;
}
.hero-badge-top {
  position: absolute; top: 1.5rem; left: 1.5rem;
  background-color: #ef4444;
  color: white; padding: 0.3rem 0.9rem;
  font-size: 0.78rem; font-weight: 700; border-radius: 4px;
  z-index: 10; letter-spacing: 0.5px; text-transform: uppercase;
}
.hero-overlay {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  padding: 2rem 2rem 1rem;
  color: white; z-index: 5;
}
.hero-title {
  font-size: 2.5rem; font-weight: 900;
  line-height: 1.15; margin-bottom: 0.6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.hero-title:hover { color: #fbbf24; }
.hero-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: #cbd5e1; }

.hero-pagination {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  display: flex;
  background: rgba(0,0,0,0.85);
  list-style: none; z-index: 10;
}
.hero-pagination li {
  flex: 1;
  display: flex;
  justify-content: center; align-items: center;
  color: #94a3b8; font-weight: 600; font-size: 0.78rem;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 0 4px;
  text-align: center;
  overflow: hidden;
  transition: background .2s, color .2s;
}
.hero-pagination li:last-child { border-right: none; }
.hero-pagination li:hover { background: rgba(255,255,255,0.08); color: white; }
.hero-pagination li.active { background-color: #ef4444; color: white; }

/* ===== HERO SIDE ===== */
.hero-side {
  position: relative; border-radius: 10px; overflow: hidden;
  background-color: #0c2340;
  display: flex; flex-direction: column;
}
.hero-side-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.35;
}
.hero-side-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 2; padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  color: white; min-height: 70%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-side-content-inner { margin-bottom: 55px; }
.hero-side-badge {
  background-color: rgba(0,0,0,0.6); color: #fff;
  padding: 0.22rem 0.6rem; font-size: 0.72rem; font-weight: 700;
  border-radius: 4px; display: inline-block;
  margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: .5px;
}
.hero-side-title { font-size: 1.45rem; font-weight: 800; line-height: 1.25; margin-bottom: 0.6rem; }
.hero-side-title:hover { color: #fbbf24; }
.hero-side-summary { font-size: 0.85rem; color: #cbd5e1; line-height: 1.5; margin-bottom: 0.75rem; }
.hero-side-thumbs-area {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 58px; display: flex;
  background: rgba(0,0,0,0.85); padding: 8px; gap: 8px; z-index: 10;
}
.hero-side-thumbs-area img {
  width: 25%; height: 100%; object-fit: cover;
  border-radius: 3px; cursor: pointer; opacity: 0.55; transition: opacity .2s;
}
.hero-side-thumbs-area img:hover { opacity: 1; }
.hero-side-thumbs-area img.active-thumb { opacity: 1; border: 2px solid #3b82f6; }

/* ===== BLOCK SECTIONS ===== */
.block-section {
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 1.75rem;
}
.block-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 1.5rem; padding-bottom: 0.75rem;
}
.block-title {
  font-size: 1.15rem; font-weight: 800; color: #0f172a;
  display: flex; align-items: center; gap: 0.5rem; position: relative;
}
.block-title::after {
  content: '';
  position: absolute; bottom: -13px; left: 0;
  width: 60px; height: 3px; background-color: #ef4444; border-radius: 2px;
}
.block-title-right { font-size: 0.82rem; color: #64748b; cursor: pointer; }
.block-title-right:hover { color: #ef4444; }

/* ===== 4-COLUMN NEWS GRID ===== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-4 { grid-template-columns: 1fr; } }

.news-card { display: flex; flex-direction: column; }
.news-card-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; border-radius: 8px;
  margin-bottom: 0.75rem; transition: transform .25s;
}
.news-card:hover .news-card-img { transform: scale(1.02); }
.news-card-title {
  font-size: 0.92rem; font-weight: 700; line-height: 1.35;
  color: #0f172a; margin-bottom: 0.4rem;
}
.news-card:hover .news-card-title { color: #ef4444; }
.news-card-meta { color: #94a3b8; font-size: 0.72rem; display: flex; align-items: center; gap: 4px; }

/* ===== SLIDER CONTROLS ===== */
.slider-controls-center { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.slider-btn {
  background-color: #0f172a; color: white;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 1rem; transition: background .2s;
}
.slider-btn:hover { background-color: #ef4444; }

/* ===== AUTHOR CARDS ===== */
.author-card {
  background-color: #f8fafc; border-radius: 10px;
  padding: 1.75rem 1rem; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  border: 1px solid #e2e8f0; transition: box-shadow .2s;
}
.author-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.author-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  padding: 3px; background: linear-gradient(135deg, #ef4444, #f97316);
  margin-bottom: 1rem;
}
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid white; object-fit: cover; }
.author-name { font-size: 0.95rem; font-weight: 800; color: #0f172a; margin-bottom: 0.4rem; }
.author-summary { font-size: 0.72rem; color: #64748b; line-height: 1.5; }
.authors-wrapper { position: relative; }
.authors-btn-left, .authors-btn-right { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; }
.authors-btn-left { left: -16px; }
.authors-btn-right { right: -16px; }

/* ===== CATEGORY BLOCKS (Gündem/Ekonomi) ===== */
.cat-block-container { display: flex; gap: 1.25rem; }
@media (max-width: 1024px) { .cat-block-container { flex-direction: column; } }
.cat-main-card { flex: 1.5; position: relative; border-radius: 10px; overflow: hidden; height: 350px; }
.cat-main-img  { width: 100%; height: 100%; object-fit: cover; }
.cat-main-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent);
  padding: 1.5rem; color: white;
}
.cat-main-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; }
.cat-main-title:hover { color: #fbbf24; }
.cat-side-list { flex: 1; display: flex; flex-direction: column; gap: 0.9rem; }
.cat-list-item {
  display: flex; gap: 0.9rem;
  border-bottom: 1px solid #f1f5f9; padding-bottom: 0.9rem;
}
.cat-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.cat-list-img { width: 110px; height: 74px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cat-list-content { flex: 1; }
.cat-list-title { font-size: 0.88rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; line-height: 1.3; }
.cat-list-title:hover { color: #ef4444; }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0; transition: opacity .25s;
  display: flex; align-items: flex-end; padding: 12px;
  color: white; font-size: .8rem; font-weight: 600;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-icon {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.55); color: white;
  padding: 7px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}

/* ===== FOOTER ===== */
.site-footer { background-color: #0f172a; color: #94a3b8; padding: 3rem 0 0; margin-top: 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: #f1f5f9; font-size: 0.92rem; font-weight: 700;
  margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid #1e293b;
}
.footer-col p { font-size: 0.84rem; line-height: 1.7; }
.footer-col ul li { padding: 3px 0; }
.footer-col ul li a { color: #94a3b8; font-size: 0.84rem; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: #ef4444; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding: 1.25rem 0;
  text-align: center; font-size: 0.78rem; color: #64748b;
}

/* ===== ARTICLE DETAIL ===== */
.article-wrapper { max-width: 860px; }
.article-header { background: #fff; border-radius: 10px; padding: 2rem; margin-bottom: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.article-header h1 { font-size: 1.9rem; font-weight: 900; line-height: 1.2; margin: 0.75rem 0; color: #0f172a; }
.article-body { background: #fff; border-radius: 10px; padding: 2rem; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.article-body p   { margin-bottom: 1.2em; line-height: 1.85; color: #334155; }
.article-body h2  { font-size: 1.35rem; font-weight: 800; margin: 1.5em 0 0.6em; color: #0f172a; }
.article-cover { width: 100%; max-height: 500px; object-fit: cover; border-radius: 10px; margin-bottom: 1.5rem; }
.article-category-badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 4px;
  background: #ef4444; color: #fff; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; margin-bottom: 0.75rem; letter-spacing: .5px;
}

/* ===== CATEGORY PAGE ===== */
.page-heading { font-size: 2rem; font-weight: 900; border-left: 4px solid #ef4444; padding-left: 1rem; margin-bottom: 1.5rem; color: #0f172a; }

.news-list-page { display: flex; flex-direction: column; gap: 1rem; }
.news-list-item {
  display: grid; grid-template-columns: 160px 1fr; gap: 1rem;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: box-shadow .2s;
}
.news-list-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.news-list-item-img { height: 110px; overflow: hidden; }
.news-list-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-list-item:hover .news-list-item-img img { transform: scale(1.06); }
.news-list-item-body { padding: 0.75rem 1rem 0.75rem 0; display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; }
.news-list-item-title { font-size: 0.92rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.news-list-item-title:hover { color: #ef4444; }
.news-meta { font-size: 0.72rem; color: #94a3b8; display: flex; align-items: center; gap: 6px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span {
  padding: 6px 13px; border-radius: 6px; font-size: 0.82rem;
  border: 1px solid #e2e8f0; background: #fff; color: #475569; transition: all .2s;
}
.pagination a:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.pagination .current { background: #ef4444; color: #fff; border-color: #ef4444; font-weight: 700; }

/* ===== SEARCH ===== */
.search-box { display: flex; gap: 8px; max-width: 580px; margin: 0 auto 2rem; }
.search-box input {
  flex: 1; border: 2px solid #e2e8f0; border-radius: 8px;
  padding: 10px 14px; font-size: 0.95rem; outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: #ef4444; }
.search-box button {
  background: #ef4444; color: #fff; border: none; border-radius: 8px;
  padding: 10px 20px; font-weight: 700; cursor: pointer; transition: background .2s;
}
.search-box button:hover { background: #dc2626; }

/* ===== ADMIN LAYOUT ===== */
.admin-body { background: #f1f5f9; min-height: 100vh; }
.admin-topbar {
  background: #0f172a; color: #fff; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.admin-topbar h1 { font-size: 0.95rem; font-weight: 700; }
.admin-topbar .top-actions { display: flex; align-items: center; gap: 14px; font-size: .83rem; }
.admin-topbar .top-actions a { color: rgba(255,255,255,.65); transition: color .2s; }
.admin-topbar .top-actions a:hover { color: #fff; }
.admin-layout { display: flex; min-height: calc(100vh - 58px); }
.admin-sidebar { width: 226px; background: #fff; box-shadow: 2px 0 6px rgba(0,0,0,.05); flex-shrink: 0; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  color: #475569; font-size: .85rem; font-weight: 500; transition: all .15s;
  border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover { background: #fef2f2; color: #ef4444; border-left-color: #ef4444; }
.admin-sidebar nav a.active { background: #fef2f2; color: #ef4444; border-left-color: #ef4444; font-weight: 700; }
.admin-sidebar nav .nav-group {
  padding: 10px 16px 4px; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: #94a3b8;
}
.admin-main { flex: 1; padding: 22px; overflow: auto; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.admin-page-header h2 { font-size: 1.2rem; font-weight: 800; color: #0f172a; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.07); display: flex; align-items: center; gap: 14px; }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.stat-icon.red   { background: #fef2f2; }
.stat-icon.blue  { background: #eff6ff; }
.stat-icon.green { background: #f0fdf4; }
.stat-icon.gray  { background: #f9fafb; }
.stat-val { font-size: 1.75rem; font-weight: 900; color: #0f172a; line-height: 1; }
.stat-lbl { font-size: .75rem; color: #94a3b8; margin-top: 2px; }

/* Tables */
.table-wrap { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.07); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: #f8fafc; text-align: left; padding: 10px 13px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
td { padding: 10px 13px; border-bottom: 1px solid #f8fafc; font-size: .85rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

/* Forms */
.form-wrap { background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.07); padding: 22px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 5px; color: #374151; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 8px 11px; font-size: .88rem; font-family: inherit; outline: none;
  transition: border-color .2s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: .74rem; color: #94a3b8; margin-top: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: .87rem; font-weight: 500; color: #374151; }
.checkbox-label input[type=checkbox] { width: 15px; height: 15px; accent-color: #ef4444; }
.checkboxes-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; border-radius: 6px; font-weight: 600; font-size: .84rem; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: #ef4444; color: #fff; }
.btn-primary:hover { background: #dc2626; }
.btn-outline { background: transparent; border: 1.5px solid #e2e8f0; color: #475569; }
.btn-outline:hover { border-color: #ef4444; color: #ef4444; }
.btn-red { background: #ef4444; color: #fff; }
.btn-red:hover { background: #dc2626; }
.btn-dark { background: #0f172a; color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-sm { padding: 4px 10px; font-size: .77rem; }

/* Alerts */
.alert { padding: 10px 14px; border-radius: 6px; font-size: .84rem; font-weight: 500; margin-bottom: 14px; display: flex; align-items: center; gap: 7px; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Badges */
.badge { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.badge-red   { background: #ef4444; color: #fff; }
.badge-green { background: #22c55e; color: #fff; }
.badge-gray  { background: #475569; color: #fff; }
.badge-blue  { background: #3b82f6; color: #fff; }
.badge-light { background: #f1f5f9; color: #475569; }
.badge-dark  { background: #1e293b; color: #fff; }
.badge-teal  { background: #0284c7; color: #fff; }

/* Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.login-box { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.login-box h1 { font-size: 1.4rem; font-weight: 900; color: #0f172a; margin-bottom: 4px; }
.login-box p  { color: #94a3b8; font-size: .85rem; margin-bottom: 28px; }

/* Breadcrumb */
.breadcrumb { font-size: .78rem; color: #94a3b8; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: #0284c7; }
.breadcrumb a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  .hero-section { grid-template-columns: 1fr; height: auto; }
  .hero-main { min-height: 300px; }
  .hero-title { font-size: 1.5rem; }
  .admin-sidebar { display: none; }
  .news-list-item { grid-template-columns: 1fr; }
  .news-list-item-img { height: 170px; }
  .form-row { grid-template-columns: 1fr; }
  .mainnav-row { overflow-x: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
