/*
Theme Name: NeuroOrbit Magazine Hero Overlay
Theme URI: https://example.com/neuroorbit-magazine
Author: Your Name
Author URI: https://example.com
Description: A modern magazine-style WordPress theme with a prominent hero section, top stories list, and sleek card layouts. Designed to work with automated posting pipelines.
Version:     1.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neuroorbit-magazine-hero-overlay
Tags: blog, news, magazine, responsive, two-column, grid, ad-friendly
*/

/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color Palette */
:root {
  --primary-color: #A4E869;    /* vibrant green accent */
  --secondary-color: #E063A6;  /* magenta accent for widgets */
  --dark-color: #0A2342;       /* dark navy for text */
  --light-color: #F7F8FA;      /* light gray background */
  --text-color: #333333;       /* standard text color */
  --border-color: #E1E4EA;     /* subtle border color */
  --muted-color: #777777;      /* muted text */
  --overlay-bg: rgba(255, 255, 255, 0.8); /* semi‑transparent white */
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

a:hover,
a:focus {
  color: var(--primary-color);
}

/* Header */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-branding .site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}
.main-navigation a {
  padding: 0.5rem 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 4px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background-color: var(--primary-color);
  color: var(--dark-color);
}

/* Home Hero Section */
.home-hero-section {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.home-hero-section .hero-left {
  flex: 2;
  position: relative;
}
.home-hero-section .hero-left img {
  width: 100%;
  height: 45vh;
  max-height: 450px;
  object-fit: cover;
  border-radius: 6px;
}

/* Title overlay bar on hero */
.hero-title-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--overlay-bg);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 90%;
}
.hero-title-bar .hero-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark-color);
  background-color: var(--primary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.hero-title-bar h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--dark-color);
  text-align: center;
}
.hero-title-bar:hover h2 {
  color: var(--secondary-color);
}

/* Top Stories List */
.top-stories {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.top-stories h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.top-stories-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.top-story-item {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}
.top-story-item:last-child {
  border-bottom: none;
}
.top-story-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.top-story-content {
  flex: 1;
}
.top-story-content a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.top-story-date {
  font-size: 0.7rem;
  color: var(--muted-color);
}

/* Posts Section below hero */
.below-hero {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
}
.below-hero-left {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.below-hero-left .post-card {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.below-hero-left .post-card:last-child {
  border-bottom: none;
}
.vertical-category {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--dark-color);
  border-bottom: 2px solid var(--primary-color);
  padding-right: 0.5rem;
  margin-right: 0.5rem;
}
.post-card-thumb img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}
.post-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card-content h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}
.post-card-content .post-meta {
  font-size: 0.75rem;
  color: var(--muted-color);
  margin-bottom: 0.4rem;
}
.post-card-content p {
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Most Popular Widget */
.most-popular-widget {
  flex: 1;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.most-popular-widget h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.most-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.most-popular-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.most-popular-item .rank {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.most-popular-item a {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}
.most-popular-item a:hover {
  text-decoration: underline;
}
.most-popular-item .date {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
.site-info {
  font-size: 0.8rem;
}

/* Category Page */
.category-header {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.category-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.category-header .category-description {
  font-size: 1rem;
  opacity: 0.9;
}
.category-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
}
.category-posts {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.category-sidebar {
  flex: 1;
}
.category-post-card {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.category-post-card:last-child {
  border-bottom: none;
}
.category-post-card .post-card-thumb img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
}

/* Single Post */
.single-post-header {
  background-size: cover;
  background-position: center;
  height: 45vh;
  max-height: 500px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.single-post-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}
.single-post-header .header-content {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
}
.single-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  .home-hero-section {
    flex-direction: column;
  }
  .below-hero {
    flex-direction: column;
  }
  .most-popular-widget {
    width: 100%;
  }
  .below-hero-left .post-card {
    flex-direction: column;
  }
  .post-card-thumb img {
    width: 100%;
    height: 200px;
  }
  .vertical-category {
    display: none;
  }
}

/* === Custom overlay adjustments added July 26 2025 === */
.hero-title-bar {
  text-align: center;
  justify-content: center;
  flex-direction: column;
}
.hero-title-bar .hero-title {
  color: var(--dark-color);
  transition: color .3s ease;
}
.hero-title-bar:hover .hero-title {
  color: var(--secondary-color);
}
.featured-image-container { position: relative; }
.featured-image-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: rgba(255,255,255,.75);
  text-align: center;
  transition: background .3s ease;
}
.featured-image-overlay h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark-color);
  transition: color .3s ease;
}
.featured-image-overlay:hover h2 {
  color: var(--secondary-color);
}
