﻿:root {
  --bg: #000000;
  --surface: #ffffff;
  --text: #000000;
  --muted: #0f0e0e;
  --accent: #000000a6;
  --accent-strong: #0a0a0a;
  --border: #000000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&h=900&fit=crop') center/cover no-repeat fixed;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .brand__title {
  font-family: 'Merriweather', Georgia, serif;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  background: rgb(22, 21, 21);
  color: white;
  font-size: 0.82rem;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.topbar-clock {
  display: inline-block;
  margin-left: 0.5rem;
  font-weight: 700;
  color: #f3f4f6;
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.45rem;
  border-radius: 0.45rem;
  font-family: 'Poppins', system-ui, sans-serif;
}


.search-form {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
  background: rgba(255,255,255,0.95);
  color: #111;
  border-radius: 999px;
}

.search-input.is-active {
  width: 8rem;
  opacity: 1;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: auto;
}

.search-status {
  font-size: 0.72rem;
  color: #ffd7b2;
  margin-left: 0.25rem;
}


.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgb(255, 255, 255);
  border-bottom: 0px rgb(231, 16, 16) var(--border);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 70px;
  width: auto;
}

.brand__title {
  font-size: 1rem;
  font-weight: 878;
  color: var(--text);
  text-decoration: beige;
}

.brand__subtitle {
  margin: 0.20rem 0 0;
  color: var(--muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
  align-items: center;
}

.main-nav a {
  color: rebeccapurple;
  text-decoration: none;
  font-weight: 200;
  font-size: 0.92rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  color: #86efac;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-btn .hamburger {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.mobile-menu-btn .hamburger::before,
.mobile-menu-btn .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.18s ease;
}
.mobile-menu-btn .hamburger::before { top: -6px; }
.mobile-menu-btn .hamburger::after { top: 6px; }

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  padding: 2.5rem 2rem;
  max-width: 1200px;
  margin: 2.3rem auto;
}

.hero-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(232, 234, 240, 0.08);
}

.hero-label {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  background: #fee2e2;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-card h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.05;
}

.hero-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 45rem;
}

.hero-meta {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.headline-list li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  line-height: 1.5;
}

.section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: #fff;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  color: #ffffff;
}

.section-header h2 {
  margin: 0;
  font-size: 0.7rem;
  color: #ffffff;
}

.dashboard-sidebar {
  display: grid;
  gap: 1rem;
}

.dashboard-form-card .button {
  width: 100%;
}

.dashboard-form-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.dashboard-form-card form {
  display: grid;
  gap: 1rem;
}

.dashboard-form-card label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.dashboard-form-card input,
.dashboard-form-card select,
.dashboard-form-card textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  font: inherit;
  color: var(--text);
  background: #f8fafc;
}

.dashboard-form-card textarea {
  min-height: 100px;
  resize: vertical;
}

.dashboard-form-card .button {
  width: fit-content;
}

.news-card,
.story-card,
.article-preview,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.8rem;
}

.news-card__media {
  width: 100%;
  min-height: 90px;
  border-radius: 0.7rem;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05));
}

.news-card__media--red {
  background: linear-gradient(135deg, #fed7d7, #0a0a0a);
}

.news-card__media--yellow {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.news-card__media--green {
  background: linear-gradient(135deg, #dcfce7, #86efac);
}

.news-card__media--blue {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.news-card__media--purple {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
}

.news-card__category {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fef2e2;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.story-interactions {
  margin-top: 2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

.story-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.story-tab {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.story-tab.is-active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.story-tab-panel {
  display: none;
}

.story-tab-panel.is-active {
  display: block;
}

.story-comment-form {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.story-comment-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.story-comment-form input,
.story-comment-form textarea {
  padding: 0.8rem 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  font: inherit;
}

.story-comment-form textarea {
  min-height: 96px;
  resize: vertical;
}

.story-comments-list {
  display: grid;
  gap: 0.8rem;
}

.story-comment {
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: #fafafa;
}

.story-comment__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.story-empty {
  color: #6b7280;
  font-style: italic;
}

.reaction-buttons,
.story-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.reaction-button,
.story-share-buttons button {
  border: 1px solid #d1d5db;
  background: linear-gradient(135deg, #ffffff, #f5f7ff);
  color: #111827;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.12);
}

.reaction-button {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.reaction-button:hover,
.story-share-buttons button:hover,
.story-submit:hover {
  background: #f3f4f6;
}

.related-stories {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.related-stories h3 {
  margin-bottom: 1rem;
}

.related-story-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.7rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.85rem;
  padding: 0.6rem;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.related-story-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 0.65rem;
}

.related-story-card__category {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.related-story-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.related-story-card p {
  margin: 0;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.35;
}

.news-card h3,
.story-card h3,
.article-preview h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.news-card p,
.story-card p,
.article-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.news-card__button {
  margin-top: 0.6rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.8rem;
}

.content-grid {
  grid-template-columns: 2fr 1fr;
}

.sidebar-card h3 {
  margin-top: 0;
}

.sidebar-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.sidebar-card li {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  color: var(--text);
}

.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.site-footer {
  background: #ffffff;
  color: #000000;
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding-bottom: 0.25rem;
}

.social-links {
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0rem 1rem;
  background: rgba(230, 30, 30, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgb(228, 20, 20);
  text-decoration: none;
  border-radius: 0.6rem;
  transition: background 0.15s ease, transform 0.12s ease;
}

.social-links a svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.search-input {
  padding: 0.45rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  margin-left: 1rem;
  min-width: 180px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #000000);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 99, 71, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(255, 99, 71, 0.3);
  outline: none;
}

.icon-button svg {
  width: 0.85rem;
  height: 0.85rem;
}

.icon-button--account {
  background: linear-gradient(135deg, #ffffff, #000000);
}

.account-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(circle at top left, rgba(255, 125, 42, 0.35), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 199, 76, 0.25), transparent 30%),
    linear-gradient(135deg, #140404 0%, #2b0505 50%, #080202 100%);
  color: #fff;
}

.account-shell {
  width: min(100%, 440px);
  position: relative;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(255, 193, 7, 0.92));
  box-shadow: 0 24px 60px rgba(255, 94, 0, 0.35);
  overflow: hidden;
}

.account-shell::before,
.account-shell::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,247,205,0.95) 0%, rgba(255,167,38,0.18) 55%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.account-shell::before {
  top: -70px;
  right: -40px;
  transform: rotate(20deg);
}

.account-shell::after {
  bottom: -80px;
  left: -40px;
  transform: rotate(-24deg);
}

.account-card {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 1.2rem;
  background: rgba(14, 3, 3, 0.8);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 10px 30px rgba(0,0,0,0.25);
}

.account-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
  color: #fff7ed;
}

.account-card p {
  margin: 0 0 1rem;
  color: #ffe3b3;
}

.account-form {
  display: grid;
  gap: 0.9rem;
}

.account-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #fff7ed;
}

.account-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 214, 130, 0.45);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.92);
  color: #2a0a0a;
  font: inherit;
}

.account-form input:focus {
  outline: none;
  border-color: #ff8c42;
  box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.24);
}

.account-submit {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8c42, #ff3b30);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 59, 48, 0.2);
}

.account-submit:hover,
.account-submit:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-link {
  color: #ffd27a;
  text-decoration: none;
  font-weight: 600;
}

.account-link:hover,
.account-link:focus-visible {
  color: #fff7ed;
}

.account-note {
  margin-top: 1rem;
  text-align: center;
  color: #ffe3b3;
  font-size: 0.95rem;
}

/* Modal for full article view */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  align-items: center;
  justify-content: center;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modal-content {
  position: relative;
  max-width: 820px;
  width: 94%;
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: 0 30px 80px rgba(15,23,42,0.3);
  padding: 1.25rem 1.5rem;
  z-index: 1210;
  max-height: 90vh;
  overflow: auto;
}

.modal-close {
  position: absolute;
  right: 0.6rem;
  top: 0.4rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-category { color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }

.modal-body h2 { margin-top: 0; margin-bottom: 0.75rem; }

body.modal-open { overflow: hidden; }

body.modal-open { overflow: hidden; }

.article-byline {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
  color: #6b7280;
}

.article-byline .author {
  font-weight: 600;
  color: var(--text);
}

.article-byline .date {
  color: #9ca3af;
}

.social-links a:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-0.5px);
}

.site-footer h3,

.site-footer h4 {
  color: rgb(0, 0, 0);
  margin-bottom: 0.75rem;
  font-style: var(--accent-strong);

  
}

.site-footer p {
  margin: 0.5rem 0rem;
  color: #000000;
  font-family: Georgia, 'Times New Roman', Times, serif;
  text-align: center;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  color: #000000;
  font: 1.2em sans-serif;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}


@media (max-width: 900px) {
  .related-story-card {
    grid-template-columns: 80px 1fr;
  }

  .related-story-card img {
    height: 62px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }

  .mobile-menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 84%;
    max-width: 380px;
    padding: 3.5rem 1.5rem;
    background: var(--surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    overflow-y: auto;
  }

  .main-nav a {
    color: var(--text);
    font-size: 1.05rem;
    padding: 0.6rem 0.2rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-panel {
    grid-template-columns: 1fr;
  }
  .small-social-links {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .topbar,
  .site-header,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
.topbar__{
  display: inline-flex;
  align-items: center;
   padding: 0.20rem 0.30rem;
  border-radius: 6rem;
  border: 2cap solid var(--border);
  font-size: 40%;
  margin-left: 20rem;
  min-width: 12px;

}

  .main-nav {
    justify-content: center;
    gap: 1rem;
  }

  .hero {
    padding: 1.75rem 1rem;
  }

  .section,
  .section-alt {
    padding: 2rem 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .social-links a {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}

