/* ==========================================================================
   aechaber.com - Design System & Modern Stylesheet
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --primary: #d90429;
  --primary-hover: #ef233c;
  --primary-light: rgba(217, 4, 41, 0.12);
  --accent: #38bdf8;
  
  /* Dark Theme Default */
  --bg-main: #0b0f19;
  --bg-card: #151c2c;
  --bg-elevated: #1e293b;
  --bg-input: #0f172a;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-input: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

body.admin-body {
  background-color: #090d16;
  color: #f8fafc;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo-text, .section-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   Top Announcement & Market Ticker Bar
   ========================================================================== */
.top-bar {
  background-color: #060911;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.825rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.ticker-label {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.ticker-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ticker-items::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ticker-item .name {
  color: var(--text-muted);
  font-weight: 500;
}
.ticker-item .val {
  color: var(--text-main);
  font-weight: 700;
}
.ticker-item .change {
  font-size: 0.75rem;
  font-weight: 600;
}
.ticker-item .change.up {
  color: #10b981;
}
.ticker-item .change.down {
  color: #ef4444;
}

.top-right-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   Main Header
   ========================================================================== */
.main-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 2.1rem;
  letter-spacing: -0.5px;
  user-select: none;
}
.logo-accent {
  color: var(--primary);
  font-weight: 900;
}
.logo-text {
  color: var(--text-main);
  font-weight: 800;
}
.logo-dot {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.live-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.5px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.header-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 2.5rem 0.65rem 2.4rem;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}
.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.header-search .clear-search {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.main-nav {
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu li a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  position: relative;
}
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-menu li:hover a,
.nav-menu li.active a {
  color: var(--primary);
}
.nav-menu li:hover a::after,
.nav-menu li.active a::after {
  width: 80%;
}

.hot-topic-tag {
  font-size: 0.825rem;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Son Dakika (Breaking News) Ticker
   ========================================================================== */
.breaking-news-bar {
  background: #111827;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.breaking-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breaking-label {
  background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(217, 4, 41, 0.4);
}

.breaking-ticker-content {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
}

.breaking-ticker-content:hover {
  color: var(--accent);
}

.breaking-controls {
  display: flex;
  gap: 0.25rem;
}

.breaking-controls button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.breaking-controls button:hover {
  background: var(--primary);
}

/* ==========================================================================
   Sürmanşet Grid Section
   ========================================================================== */
.surmanset-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.surmanset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.surmanset-card {
  position: relative;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.surmanset-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.surmanset-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: #fff;
}

.surmanset-cat {
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.surmanset-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Hero Showcase: Main Slider + Sidebar
   ========================================================================== */
.hero-showcase {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Slider Carousel */
.manset-slider-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 480px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.slider-slides-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slider-slide.active {
  opacity: 1;
  visibility: visible;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.96) 0%, rgba(11, 15, 25, 0.4) 60%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem 1.5rem 2rem;
  color: #fff;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gundem { background: #d90429; color: #fff; }
.badge-ekonomi { background: #10b981; color: #fff; }
.badge-teknoloji { background: #0284c7; color: #fff; }
.badge-spor { background: #ea580c; color: #fff; }
.badge-dunya { background: #8b5cf6; color: #fff; }
.badge-yasam { background: #ec4899; color: #fff; }

.slide-readtime {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.slide-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.6rem;
  color: #fff;
  cursor: pointer;
}
.slide-title:hover {
  color: var(--accent);
}

.slide-spot {
  font-size: 0.975rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: all var(--transition-fast);
}
.slider-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.prev-arrow { left: 1rem; }
.next-arrow { right: 1rem; }

.slider-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  width: 100%;
  z-index: 10;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
}

/* Slider Nav Tabs (1 to 10) */
.slider-nav-tabs {
  display: flex;
  background: #090d16;
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  z-index: 10;
}
.slider-tab-item {
  flex: 1;
  min-width: 42px;
  padding: 0.65rem 0.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.slider-tab-item:last-child {
  border-right: none;
}
.slider-tab-item:hover,
.slider-tab-item.active {
  background: var(--primary);
  color: #fff;
}

/* Sidebar Widgets */
.sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--border-color);
}
.widget-header h3 {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}
.widget-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Most Read Ranking */
.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.most-read-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}
.most-read-item:hover {
  background: var(--bg-elevated);
}
.rank-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-muted);
  width: 28px;
  text-align: center;
}
.most-read-item:nth-child(1) .rank-num { color: #f59e0b; }
.most-read-item:nth-child(2) .rank-num { color: #94a3b8; }
.most-read-item:nth-child(3) .rank-num { color: #b45309; }

.most-read-info {
  flex: 1;
}
.most-read-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.most-read-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Weather & Market Widget */
.weather-box {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.city-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.city-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.city-selector .temp {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}
.weather-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* Poll Widget */
.poll-question {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.poll-opt-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}
.poll-opt-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.vote-pct {
  font-weight: 800;
  color: var(--primary);
}

/* ==========================================================================
   Category News Sections & Grids
   ========================================================================== */
.category-block-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.3px;
}

.cat-indicator {
  width: 12px;
  height: 22px;
  border-radius: 4px;
}
.gundem-bg { background: #d90429; }
.ekonomi-bg { background: #10b981; }
.teknoloji-bg { background: #0284c7; }
.spor-bg { background: #ea580c; }

.view-all-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.view-all-link:hover {
  color: var(--primary-hover);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

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

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.news-card-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

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

.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
}
.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-danger {
  background: #ef4444;
  color: #fff;
}
.btn-danger:hover {
  background: #dc2626;
}
.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Modals Common Layout
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
  animation: fadeIn var(--transition-fast);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--transition-fast);
}

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   News Detail Modal
   ========================================================================== */
.news-detail-card {
  max-width: 860px;
  padding: 2.5rem;
}

.detail-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.detail-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.detail-spot {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}

.detail-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.author-info strong {
  display: block;
  font-size: 0.95rem;
}
.author-title {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.text-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.text-zoom-controls button {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
}
.text-zoom-controls button:hover {
  background: var(--primary);
  color: #fff;
}

.detail-media-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.75rem;
  max-height: 460px;
}
.detail-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 2rem;
  transition: font-size var(--transition-fast);
}
.detail-article-content p {
  margin-bottom: 1.25rem;
}

.detail-tags-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.detail-share-box {
  background: var(--bg-elevated);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.detail-share-box span {
  font-weight: 700;
  font-size: 0.9rem;
}
.share-btn {
  border: none;
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter { background: #000; }
.share-btn.facebook { background: #1877f2; }
.share-btn.copy { background: #8b5cf6; }

/* Comments Section */
.comments-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.add-comment-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.add-comment-form .form-row.dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.add-comment-form input,
.add-comment-form textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  outline: none;
}
.add-comment-form input:focus,
.add-comment-form textarea:focus {
  border-color: var(--primary);
}
.add-comment-form textarea {
  margin-bottom: 1rem;
  resize: vertical;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.comment-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid var(--border-color);
}
.comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  margin-bottom: 0.4rem;
}
.comment-author {
  font-weight: 700;
  color: var(--primary);
}
.comment-date {
  color: var(--text-muted);
}
.comment-text {
  font-size: 0.925rem;
  line-height: 1.5;
}

/* ==========================================================================
   STANDALONE SEPARATE ADMIN PAGE (admin.html)
   ========================================================================== */
.admin-auth-page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at top, #1e293b 0%, #090d16 100%);
}

.admin-auth-box {
  max-width: 400px;
  width: 100%;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
}
.auth-icon-wrap {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #ef233c 0%, #d90429 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 20px rgba(217, 4, 41, 0.4);
}
.admin-auth-box h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.auth-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.admin-login-form .form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}
.admin-login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.admin-login-form input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  outline: none;
}
.admin-login-form input:focus {
  border-color: var(--primary);
}
.form-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 0.825rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.auth-footer-link {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-footer-link a:hover {
  color: var(--primary);
}

/* Standalone Admin Workspace Layout */
.admin-workspace-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #090d16;
}

/* Admin Sidebar Navigation */
.admin-sidebar {
  width: 260px;
  background: #0f172a;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.admin-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.3px;
}
.admin-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-left: 0.3rem;
  vertical-align: middle;
}

.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex: 1;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}
.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.admin-menu-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(217, 4, 41, 0.4);
}

.admin-sidebar-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* Main Viewport Container */
.admin-main-viewport {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background: #0b0f19;
}

.admin-workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.page-view-title {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.admin-user-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 1rem;
}

/* View Containers */
.admin-view-content {
  display: none;
}
.admin-view-content.active {
  display: block;
  animation: fadeIn var(--transition-fast);
}

.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* Dashboard Banner */
.dashboard-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.dashboard-banner h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.dashboard-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}
.stat-icon.red { background: #d90429; }
.stat-icon.blue { background: #0284c7; }
.stat-icon.green { background: #10b981; }
.stat-icon.orange { background: #f59e0b; }

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
}
.stat-label {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Admin News Table */
.table-filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.table-filter-bar input,
.table-filter-bar select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  outline: none;
}
.table-filter-bar input { flex: 1; }

.table-responsive {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  background: var(--bg-elevated);
  font-weight: 700;
  color: var(--text-muted);
}
.admin-table tbody tr:hover {
  background: var(--bg-elevated);
}
.tbl-thumb {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.status-badge.pub { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-badge.dft { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* News Editor Form Grid */
.news-editor-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}
.col-12 { grid-column: span 12; }
.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.req { color: var(--primary); }

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

/* Image Selection Component */
.img-source-selector {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.img-source-box {
  margin-bottom: 1rem;
}
.stock-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.stock-thumb {
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}
.stock-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stock-thumb.selected {
  border-color: var(--primary);
}

.image-preview-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}
.image-preview-container img {
  max-width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: #060911;
  border-top: 1px solid var(--border-color);
  padding-top: 3.5rem;
  margin-top: 4rem;
  color: var(--text-muted);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1rem 0 1.25rem 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.social-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--primary);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.newsletter-form input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  outline: none;
  font-size: 0.85rem;
}

.footer-bottom {
  background: #03050a;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.825rem;
}
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secret-admin-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.secret-admin-link:hover {
  opacity: 1;
  color: var(--primary);
}

/* ==========================================================================
   Responsive Mobile Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .surmanset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-showcase {
    grid-template-columns: 1fr;
  }
  .manset-slider-container {
    height: 420px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 0.5rem;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu li a {
    width: 100%;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  .surmanset-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .slide-title {
    font-size: 1.3rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .admin-workspace-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .col-6, .col-8, .col-4 {
    grid-column: span 12;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
