/* ============================================
   BiznesDzis.pl - Professional Business News Portal
   Color Scheme: White (#fff), Navy (#1B2A4A), Gold (#C9A84C)
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1B2A4A;
  --navy-dark: #0f1c33;
  --navy-light: #2a3f6a;
  --gold: #C9A84C;
  --gold-light: #e0c97a;
  --gold-dark: #a8883a;
  --white: #ffffff;
  --bg: #f5f5f5;
  --text: #222222;
  --text-light: #555555;
  --text-muted: #888888;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --radius: 4px;
  --max-width: 1280px;
  --font: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font); font-weight: 700; line-height: 1.25; color: var(--navy); }

/* === UTILITY === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* === TOP BAR === */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.7); font-size: 0.75rem; }
.top-bar a:hover { color: var(--gold-light); }
.top-bar__date { font-weight: 500; }
.top-bar__links { display: flex; gap: 16px; }

/* === HEADER === */
.header {
  background: var(--white);
  padding: 16px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo img {
  height: 48px;
  width: auto;
}
.header__search {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 16px;
  background: var(--bg);
  width: 280px;
  transition: border-color 0.2s;
}
.header__search:focus-within { border-color: var(--gold); }
.header__search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.875rem;
  width: 100%;
  font-family: var(--font-sans);
}
.header__search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0 0 0 8px;
}

/* === NAV === */
.nav {
  background: var(--navy);
  position: sticky;
  top: 80px;
  z-index: 999;
}
.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__item a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav__item a:hover,
.nav__item a.active {
  color: var(--white);
  background: rgba(255,255,255,0.05);
  border-bottom-color: var(--gold);
}
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px 20px;
}

/* === BREAKING NEWS TICKER === */
.ticker {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 8px 0;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticker__label {
  background: var(--navy);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
}
.ticker__scroll-wrap {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}
.ticker__content {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
  gap: 60px;
}
.ticker__content span { white-space: nowrap; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === AD UNITS === */
.ad-unit {
  background: #f0f0f0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  position: relative;
}
.ad-unit::after {
  content: 'REKLAMA';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.6rem;
  color: #bbb;
}
.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 16px auto;
}
.ad-billboard {
  width: 100%;
  max-width: 970px;
  height: 250px;
  margin: 20px auto;
}
.ad-rectangle {
  width: 300px;
  min-height: 250px;
  margin: 16px auto;
}
.ad-sidebar {
  width: 100%;
  min-height: 600px;
  margin: 16px 0;
}
.ad-inline {
  width: 100%;
  min-height: 120px;
  margin: 24px 0;
}
.ad-native {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 20px;
  margin: 24px 0;
  border-radius: var(--radius);
}
.ad-native__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.ad-sticky-sidebar {
  position: sticky;
  top: 140px;
}

/* === MAIN LAYOUT === */
.main-content { padding: 24px 0 48px; }
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.layout-3col {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 24px;
}

/* === HERO SECTION === */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.hero__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  min-height: 400px;
}
.hero__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
}
.hero__main-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 400px;
}
.hero__main-content .category-badge {
  align-self: flex-start;
}
.hero__main-content h2 {
  font-size: 1.75rem;
  color: var(--white);
  margin: 12px 0 8px;
  line-height: 1.3;
}
.hero__main-content p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}
.hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__side-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  flex: 1;
  min-height: 190px;
}
.hero__side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  position: absolute;
  top: 0;
  left: 0;
}
.hero__side-card-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.hero__side-card-content h3 {
  font-size: 1rem;
  color: var(--white);
  margin-top: 8px;
  line-height: 1.3;
}

/* === CATEGORY BADGE === */
.category-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
}
.category-badge--navy {
  background: var(--navy);
  color: var(--white);
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--navy);
}
.section-header h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-header::after {
  content: '';
  /* gold accent line handled by border */
}
.section-header a {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-header--gold { border-bottom-color: var(--gold); }

/* === ARTICLE CARDS === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.article-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.article-card__body { padding: 16px; }
.article-card__category {
  font-size: 0.65rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.article-card__title {
  font-size: 1rem;
  font-family: var(--font);
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__title:hover { color: var(--gold-dark); }
.article-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* === ARTICLE LIST (sidebar style) === */
.article-list { list-style: none; }
.article-list__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
}
.article-list__item:last-child { border-bottom: none; }
.article-list__num {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
}
.article-list__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.article-list__title:hover { color: var(--gold-dark); }
.article-list__meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === HORIZONTAL ARTICLE ROW === */
.article-row {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.article-row:hover { box-shadow: var(--shadow-lg); }
.article-row__img {
  width: 220px;
  min-height: 150px;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.article-row__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-row__category {
  font-size: 0.65rem;
  color: var(--gold-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.article-row__title {
  font-size: 1.05rem;
  font-family: var(--font);
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.35;
}
.article-row__title:hover { color: var(--gold-dark); }
.article-row__excerpt {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-row__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === SIDEBAR WIDGETS === */
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.sidebar-widget__header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--gold);
}
.sidebar-widget__body { padding: 16px; }

/* === NEWSLETTER SIGNUP === */
.newsletter {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  padding: 32px 0;
  margin: 32px 0;
}
.newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.newsletter__text { color: var(--white); }
.newsletter__text h3 {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.newsletter__text p { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.newsletter__form { display: flex; gap: 8px; flex-shrink: 0; }
.newsletter__form input {
  padding: 12px 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.9rem;
  width: 300px;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__form input:focus { border-color: var(--gold); }
.newsletter__form button {
  padding: 12px 28px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  font-family: var(--font-sans);
}
.newsletter__form button:hover { background: var(--gold-light); }

/* === ARTICLE PAGE === */
.article-page { padding: 32px 0 48px; }
.article-header { margin-bottom: 24px; }
.article-header .category-badge { margin-bottom: 12px; }
.article-header h1 {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-meta__author { font-weight: 600; color: var(--navy); }
.article-meta__share { margin-left: auto; display: flex; gap: 8px; }
.article-meta__share button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-meta__share button:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.article-featured-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.article-content {
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content p { margin-bottom: 20px; }
.article-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 16px;
}
.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 24px 0;
  background: rgba(201,168,76,0.05);
  font-style: italic;
  color: var(--text-light);
}
.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.article-content li { margin-bottom: 8px; }
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.article-tags a {
  font-size: 0.75rem;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 20px;
  color: var(--text-light);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.article-tags a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* === RELATED ARTICLES === */
.related-articles { margin-top: 40px; }

/* === CATEGORY PAGE === */
.category-header {
  background: var(--navy);
  padding: 40px 0;
  margin-bottom: 32px;
}
.category-header h1 {
  font-size: 2rem;
  color: var(--white);
}
.category-header p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* === FOOTER === */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__about p { font-size: 0.85rem; line-height: 1.6; margin-top: 12px; }
.footer__logo img { height: 40px; }
.footer h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer a:hover { color: var(--gold-light); }
.footer__bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* === ADMIN PANEL === */
.admin-login {
  max-width: 420px;
  margin: 80px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.admin-login__header {
  background: var(--navy);
  padding: 24px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}
.admin-login__header h2 { color: var(--white); font-size: 1.25rem; }
.admin-login__body { padding: 32px; }
.admin-login__body .form-group { margin-bottom: 20px; }

.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--navy-dark);
  padding: 20px 0;
}
.admin-sidebar__header {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 12px;
}
.admin-sidebar__header img { height: 32px; }
.admin-sidebar__header span {
  display: block;
  color: var(--gold);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.admin-nav li a:hover,
.admin-nav li a.active {
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-left-color: var(--gold);
}
.admin-main {
  background: var(--bg);
  padding: 24px 32px;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-topbar h1 {
  font-size: 1.5rem;
  font-family: var(--font-sans);
}
.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  border-top: 3px solid var(--gold);
}
.stat-card__number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  font-family: var(--font);
}
.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* === FORMS === */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--gold); }
textarea.form-control { min-height: 200px; resize: vertical; }
select.form-control { cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  text-decoration: none;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--primary:hover { background: var(--gold-light); }
.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-light); }
.btn--danger {
  background: #dc3545;
  color: var(--white);
}
.btn--danger:hover { background: #c82333; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--sm { padding: 6px 14px; font-size: 0.78rem; }
.btn--block { width: 100%; justify-content: center; }

/* === TABLE === */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}
.admin-table tr:hover { background: rgba(0,0,0,0.02); }
.admin-table .status-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.status-badge--published {
  background: #d4edda;
  color: #155724;
}
.status-badge--draft {
  background: #fff3cd;
  color: #856404;
}

/* === RICH TEXT TOOLBAR === */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}
.editor-toolbar button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.editor-toolbar button:hover {
  background: var(--white);
  border-color: var(--border);
}
.editor-toolbar .separator {
  width: 1px;
  background: var(--border);
  margin: 0 4px;
}
.editor-content {
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 300px;
  padding: 16px;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
}
.editor-content:focus { border-color: var(--gold); }
.editor-content p { margin-bottom: 12px; }

/* === AD PLACEMENT IN EDITOR === */
.ad-marker {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff3cd;
  border: 1px dashed #ffc107;
  padding: 8px 12px;
  margin: 12px 0;
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: #856404;
  cursor: default;
}
.ad-marker button {
  margin-left: auto;
  background: none;
  border: none;
  color: #856404;
  cursor: pointer;
  font-size: 1rem;
}

/* === TOAST NOTIFICATION === */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  border-left: 4px solid var(--gold);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--navy); color: var(--navy); }
.pagination .active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* === BREADCRUMBS === */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { margin: 0 6px; }

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 500px;
  max-width: 90%;
}
.modal__header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal__header h3 { font-size: 1.1rem; }
.modal__close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}
.modal__body { padding: 24px; }
.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .layout-2col { grid-template-columns: 1fr; }
  .layout-3col { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero__main { min-height: 300px; }
  .hero__main-content { min-height: 300px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .ad-sidebar { display: none; }
}

@media (max-width: 768px) {
  .nav__list { display: none; }
  .nav__list.open { display: flex; flex-direction: column; }
  .nav__hamburger { display: block; }
  .nav__item a { padding: 12px 20px; }
  .header__search { width: 180px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-row { flex-direction: column; }
  .article-row__img { width: 100%; height: 200px; }
  .newsletter .container { flex-direction: column; text-align: center; }
  .newsletter__form { flex-direction: column; width: 100%; }
  .newsletter__form input { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__main-content h2 { font-size: 1.35rem; }
  .article-header h1 { font-size: 1.5rem; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; position: fixed; top: 0; left: 0; width: 250px; height: 100%; z-index: 9999; }
  .top-bar { display: none; }
  .ad-leaderboard, .ad-billboard { height: 60px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .articles-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .header__logo img { height: 36px; }
}

/* === PRINT === */
@media print {
  .header, .nav, .ticker, .footer, .ad-unit, .newsletter,
  .sidebar-widget, .article-meta__share { display: none; }
  .layout-2col, .layout-3col { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}

/* === ADSENSE PLACEHOLDERS === */
.adsense-slot {
  background: #fafafa;
  border: 1px dashed #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  color: #bbb;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === COOKIE NOTICE === */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.8);
  padding: 16px 0;
  z-index: 9999;
  display: none;
  border-top: 2px solid var(--gold);
}
.cookie-notice.show { display: block; }
.cookie-notice .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-notice p { font-size: 0.82rem; }
.cookie-notice .btn { flex-shrink: 0; }
