/* HOTS News - Clean Professional News Magazine (Neutral White/Black Theme) */
/* Sharp edges, minimal, highly readable, responsive */

:root {
  --bg: #ffffff;
  --bg-alt: #f8f8f8;
  --text: #111111;
  --text-muted: #555555;
  --accent: #1a73e8;
  --accent-hover: #0f5ac2;
  --card-bg: #ffffff;
  --border: #e5e5e5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

html.dark {
  --bg: #0f0f0f;
  --bg-alt: #1a1a1a;
  --text: #f5f5f5;
  --text-muted: #aaaaaa;
  --accent: #4a9eff;
  --accent-hover: #6bb0ff;
  --card-bg: #1a1a1a;
  --border: #333333;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

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

/* Layout */
.container {
  width: min(1200px, calc(100% - 20px));
  margin: 0 auto;
  padding: 0;
}

.section {
  padding: 2.25rem 0;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Navbar */
.site-header {
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1.25rem;
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.3rem 0;
}

.main-nav a:hover {
  color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--card-bg);
  min-width: 190px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  z-index: 200;
  padding: 0.4rem 0;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text);
}

.dropdown-content a:hover {
  background-color: var(--bg-alt);
  color: var(--accent);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.search-form {
  display: flex;
  align-items: center;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.2rem 0.45rem;
}

.search-form input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  width: 170px;
  color: var(--text);
}

.search-form button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 0 0.3rem;
}

#dark-toggle, .hamburger {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
}

.hamburger {
  display: none;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 0.8rem 1.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
  margin-top: 3.5rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-col h4 {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* News Cards - Strict 3/2/1 Grid */
.news-card {
  display: block;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background-color 0.2s ease;
}

.news-card:hover {
  background-color: #f9f9f9;
}

html.dark .news-card:hover {
  background-color: #252525;
}

.card-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #f0f0f0;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--accent);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.card-content {
  padding: 1rem 1.15rem 1.2rem;
}

.card-title {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 0.55rem;
  color: var(--text);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Responsive Card Grid - Desktop 3, Tablet 2, Mobile 1 */
.grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero */
.hero {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.hero-image {
  aspect-ratio: 16 / 9;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  padding: 1.75rem 1.5rem;
}

.hero-content .category-tag {
  position: static;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.hero-title {
  font-size: 1.85rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.15rem;
  }
}

/* Article Page */
.article-hero {
  aspect-ratio: 3 / 2;
  margin-bottom: 1.75rem;
  position: relative;
  background-color: #f0f0f0;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-header {
  max-width: 820px;
  margin: 0 auto 1.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-bottom: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.article-meta .author {
  font-weight: 600;
  color: var(--text);
}

.article-body {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.article-body h2 {
  margin: 2rem 0 0.9rem;
  font-size: 1.45rem;
}

.article-body img {
  aspect-ratio: 3 / 2;
  width: 100%;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
}

.article-body figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -0.9rem;
  margin-bottom: 1.4rem;
}

.pullquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.35rem;
  margin: 1.8rem 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.share-buttons {
  display: flex;
  gap: 0.65rem;
  margin: 1.75rem 0;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.share-btn:hover {
  background: var(--bg-alt);
  border-color: var(--accent);
}

/* Read More Posts section */
.read-more-section {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.read-more-section h2 {
  margin-bottom: 1.1rem;
}

/* Category / Archive / Search */
.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: 1.95rem;
  margin-bottom: 0.45rem;
}

.page-header p {
  color: var(--text-muted);
  max-width: 620px;
}

.search-input-large {
  width: 100%;
  padding: 0.95rem 1.15rem;
  font-size: 1.05rem;
  border: 2px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  margin-bottom: 1.35rem;
}

.search-input-large:focus {
  outline: none;
  border-color: var(--accent);
}

.results-count {
  margin-bottom: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Utility */
.no-results {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Reading progress */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background-color: var(--accent);
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .nav-container {
    height: 60px;
  }
  .logo {
    font-size: 1.55rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .article-body {
    font-size: 0.98rem;
  }
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.88rem;
}

.newsletter-form button {
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.88rem;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}
