/* GMG Multi-Site Homepage — Professional Styling */
/* For: lvsun, lvweekly, lvmagazine, vegasinc */
/* Author: Doug Twyman — updated 2026-04-24 */

:root {
  --color-red: #d32f2f;
  --color-gold: #f9b84a;
  --color-dark: #1a1a1a;
  --color-gray-light: #f5f5f5;
  --color-gray-dark: #666;
  --color-border: #ddd;
  --color-text: #222;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
  background: #f8f8f8;
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.utility-bar .container {
  display: flex;
  align-items: center;
}

.utility-bar a {
  color: var(--color-text);
  text-decoration: none;
  margin-right: 1.5rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.utility-bar a:hover {
  color: var(--color-red);
}

.utility-bar .spacer {
  flex: 1;
}

.subscribe-btn {
  background: var(--color-red) !important;
  color: white !important;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  font-weight: 600;
  margin-right: 0 !important;
}

.subscribe-btn:hover {
  background: #b71c1c !important;
}

/* ===== MASTHEAD ===== */
.masthead {
  background: #fff;
  padding: 1.5rem 0;
  border-bottom: 2px solid var(--color-gray-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.sun-mark {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.masthead-wordmark {
  flex: 1;
}

.logotype {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  text-decoration: none;
  line-height: 1;
  display: block;
}

.logotype span {
  color: var(--color-red);
}

.logotype:hover {
  opacity: 0.8;
}

.masthead-tagline {
  font-size: 0.85rem;
  color: var(--color-gray-dark);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.masthead-right {
  text-align: right;
  flex-shrink: 0;
}

.masthead-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

/* ===== SECTION NAVIGATION ===== */
.section-nav {
  background: var(--color-dark);
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 3px solid var(--color-red);
}

.section-nav .container {
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0;
}

.section-nav a {
  color: white;
  text-decoration: none;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.section-nav a:last-of-type {
  border-right: none;
}

.section-nav a:hover,
.section-nav a.active {
  background: var(--color-red);
  color: white;
}

.nav-search {
  margin-left: auto;
  padding: 1rem 1.2rem;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.nav-search:hover {
  background: var(--color-red);
}

/* ===== BREAKING BAR ===== */
.breaking-bar {
  background: var(--color-red);
  color: white;
  padding: 0.6rem 0;
  font-size: 0.875rem;
}

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

.breaking-badge {
  background: white;
  color: var(--color-red);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  text-transform: uppercase;
  border-radius: 2px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.breaking-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.breaking-text a,
.breaking-more {
  color: white;
  text-decoration: none;
}

.breaking-text a:hover,
.breaking-more:hover {
  text-decoration: underline;
}

.breaking-more {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ===== HOMEPAGE MAIN ===== */
.homepage-main {
  background: #fff;
  padding: 2rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== HERO SECTION ===== */
.hero-block {
  margin: 2rem 0 3rem;
  background: #fff;
}

.hero-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.hero-image-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: var(--color-gray-light);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 25%, transparent 25%, transparent 75%, #e8e8e8 75%, #e8e8e8),
              linear-gradient(135deg, #e8e8e8 25%, transparent 25%, transparent 75%, #e8e8e8 75%, #e8e8e8);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  background-color: #efefef;
}

.hero-content-container {
  padding: 0;
}

.hero-empty {
  padding: 1.5rem 0;
}

.section-badge {
  display: inline-block;
  background: var(--color-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.5rem 0 1rem;
}

.hero-headline a {
  color: inherit;
  text-decoration: none;
}

.hero-headline a:hover {
  color: var(--color-red);
}

.hero-summary {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #666;
  margin: 1rem 0;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #999;
  margin: 1rem 0 0;
  align-items: center;
  flex-wrap: wrap;
}

.byline {
  font-weight: 600;
  color: var(--color-text);
}

.pub-date {
  color: var(--color-gray-dark);
}

/* ===== THREE-COLUMN GRID ===== */
.main-grid-block {
  margin: 2rem 0;
}

.grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 2.5rem;
}

.grid-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== SECTION BLOCKS ===== */
article-block {
  display: block;
}

.section-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}

.section-block:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.block-headline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--color-red);
}

/* ===== ARTICLE CARDS ===== */
.article-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-card {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.article-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.card-headline {
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text);
  margin: 0.4rem 0 0.5rem;
}

.card-headline a {
  color: inherit;
  text-decoration: none;
}

.card-headline a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

/* ===== SIDEBAR CARDS ===== */
.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--color-gray-light);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

.thumbnail-placeholder {
  background: linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0),
              linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  background-color: #f0f0f0;
}

.sidebar-card h4 {
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  flex: 1;
}

.sidebar-card a {
  color: inherit;
  text-decoration: none;
}

.sidebar-card a:hover {
  color: var(--color-red);
}

/* ===== EVENTS ===== */
.event-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.event-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-date {
  font-size: 0.8rem;
  color: var(--color-gray-dark);
  margin-top: 0.2rem;
}

.events-empty {
  font-size: 0.9rem;
  color: var(--color-gray-dark);
  line-height: 1.6;
}

.events-empty a {
  color: var(--color-red);
  text-decoration: none;
  font-weight: 600;
}

.events-empty a:hover {
  text-decoration: underline;
}

/* ===== PLACEHOLDER BLOCKS ===== */
.placeholder-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.placeholder-card {
  height: 90px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 2px;
  animation: shimmer 2s infinite;
}

.placeholder-text {
  height: 1em;
  background: #f0f0f0;
  border-radius: 2px;
  animation: shimmer 2s infinite;
  flex: 1;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #f8f8f8;
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.footer-brand span {
  color: var(--color-red);
}

.footer-nav {
  margin: 0.75rem 0;
}

.footer-nav a {
  color: var(--color-text);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.75rem;
}

/* ===== AD ZONES (Dev-Only) ===== */
.ad-zone {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  padding: 1rem;
  text-align: center;
  color: #999;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-zone::before {
  content: "AD ZONE — ";
}

.ad-leaderboard {
  height: 90px;
  margin: 1rem 0;
}

.ad-rail {
  height: 250px;
  width: 100%;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .grid-row {
    grid-template-columns: 1fr 1fr;
  }

  .column-sidebar {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .column-sidebar .section-block {
    flex: 1;
    min-width: 280px;
  }

  .hero-placeholder {
    grid-template-columns: 1fr;
  }

  .masthead .container {
    gap: 1rem;
  }

  .logotype {
    font-size: 2rem;
  }

  .sun-mark {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: 1fr;
  }

  .column-sidebar {
    flex-direction: column;
  }

  .section-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .hero-placeholder {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .masthead {
    padding: 1rem 0;
  }

  .masthead .container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .masthead-right {
    display: none;
  }

  .block-headline {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 1.4rem;
  }

  .logotype {
    font-size: 1.5rem;
  }

  .sun-mark {
    width: 40px;
    height: 40px;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .sidebar-card {
    flex-direction: column;
  }

  .thumbnail {
    width: 100%;
    height: 180px;
  }

  .section-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .utility-bar,
  .masthead,
  .section-nav,
  .breaking-bar,
  .site-footer,
  .ad-zone {
    display: none;
  }

  .article-card a,
  .card-headline a,
  .hero-headline a {
    text-decoration: underline;
    color: #000;
  }
}
