/*
Theme Name: Cali Camera Media
Theme URI: https://calicameranews.com
Author: Inspirit Media & Marketing
Author URI: https://talenthubhq.com
Description: Custom WordPress news theme for Cali Camera Media — sports, concerts, community and local news coverage for San Diego and beyond.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: calicamera
Tags: news, sports, custom-header, custom-logo, featured-images, full-width-template, responsive-layout
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&family=Barlow:wght@300;400;500;600;700&family=Barlow+Condensed:wght@400;600;700;800&display=swap');

:root {
  --black: #0a0a0a;
  --off-black: #111111;
  --card-bg: #161616;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --red: #D63230;
  --white: #F5F2ED;
  --grey: #888;
  --border: rgba(255,255,255,0.07);
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--red);
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-label {
  display: inline-block;
  background: var(--black);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 2px 14px;
  margin-right: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: inline-block;
  animation: ticker 50s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  color: #fff;
  margin-right: 60px;
}
.ticker-track span::before {
  content: '●';
  color: var(--gold);
  margin-right: 12px;
  font-size: 8px;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(12px);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--border);
}
.logo-block { display: flex; flex-direction: column; align-items: flex-start; }
.logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 3px;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
}
.logo-main span { color: var(--gold); }
.logo-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 2px;
}
.header-date { text-align: center; }
.header-date .date-main {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 700;
}
.header-date .date-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #cccccc;
  text-transform: uppercase;
  margin-top: 8px;
  font-weight: 500;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--grey);
  padding: 7px 14px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.search-btn:hover { border-color: var(--gold); color: var(--gold); }
.subscribe-btn {
  background: var(--gold);
  border: none;
  color: var(--black);
  padding: 8px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
  text-decoration: none;
}
.subscribe-btn:hover { background: var(--gold-light); }

/* ── NAV ── */
nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0;
  margin: 0;
}
nav ul {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap;
}
nav li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
nav li::marker { display: none !important; content: none !important; }
nav li::before { display: none !important; content: none !important; }
nav li::after  { display: none !important; content: none !important; }
nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff !important;
  text-decoration: none;
  padding: 16px 18px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  display: block;
}
nav a::before,
nav a::after { display: none !important; content: none !important; }
nav a:hover { color: var(--gold) !important; border-bottom-color: var(--gold); }
nav a.current-menu-item,
nav a.active { color: var(--gold) !important; border-bottom-color: var(--gold); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-rows: auto auto;
  gap: 1px;
  background: var(--border);
  border-top: 3px solid var(--gold);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1px;
  margin-top: 0;
}
.hero-main {
  background: var(--black);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  grid-row: span 2;
}
.hero-main img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.6);
}
.hero-main:hover img { transform: scale(1.02); filter: brightness(0.5); }
.hero-main-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}
.category-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.category-tag.gold { background: var(--gold); color: var(--black); }
.category-tag.dark { background: rgba(255,255,255,0.15); color: #ffffff; }
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 680px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.hero-meta .author { color: var(--gold); }

/* ── SIDE STACK ── */
.side-stack { background: var(--black); display: flex; flex-direction: column; gap: 1px; }
.side-card {
  background: var(--card-bg);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}
.side-card:hover { background: #1c1c1c; border-left-color: var(--gold); }
.side-card img, .side-card svg {
  width: 90px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}
.side-card-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 6px;
}
.meta {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.5px;
}

/* ── SECTION HEADERS ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title .line {
  width: 4px;
  height: 28px;
  background: var(--gold);
}
.section-title h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--white);
}
.see-all {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
}
.see-all:hover { color: var(--gold-light); }

/* ── CONTENT GRID ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  padding: 0 40px;
  margin-bottom: 1px;
}
.grid-card {
  background: var(--black);
  cursor: pointer;
  transition: background 0.2s;
}
.grid-card:hover { background: var(--card-bg); }
.grid-card img, .grid-card .img-placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.grid-card-body { padding: 16px 18px 20px; }
.grid-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  line-height: 1.35;
  color: #F5F2ED;
  margin-bottom: 8px;
}
.grid-card-body p {
  font-size: 13px;
  color: #dddddd;
  line-height: 1.6;
  margin-bottom: 12px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}

/* ── FEATURED ROW ── */
.featured-row {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr;
  gap: 1px;
  background: var(--border);
  padding: 0 40px;
  margin-bottom: 1px;
}
.featured-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.featured-card img, .featured-card .img-placeholder {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.5);
}
.featured-card:hover img { transform: scale(1.03); filter: brightness(0.4); }
.featured-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
}
.featured-card-overlay h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.3;
  color: var(--white);
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--gold);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 40px 0 0;
}
.newsletter-text h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--black);
}
.newsletter-text p {
  font-size: 13px;
  color: rgba(0,0,0,0.6);
  margin-top: 4px;
}
.newsletter-form {
  display: flex;
  gap: 0;
  flex-shrink: 0;
}
.newsletter-form input {
  padding: 12px 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  border: none;
  background: rgba(0,0,0,0.15);
  color: var(--black);
  width: 280px;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(0,0,0,0.4); }
.newsletter-form button {
  background: var(--black);
  color: var(--gold);
  border: none;
  padding: 12px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #222; }

/* ── FOOTER ── */
footer {
  background: var(--off-black);
  border-top: 1px solid var(--border);
  padding: 50px 40px 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--grey);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.2);
}
.footer-bottom span span { color: var(--gold); }

/* ── WORDPRESS SPECIFIC ── */
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: 12px; color: var(--grey); padding: 6px 0; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }
img.alignleft, img.alignright { max-width: 50%; }
.sticky { /* WordPress sticky post */ }
.bypostauthor { /* WordPress author highlight */ }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-row { grid-template-columns: 1fr 1fr; }
  .featured-row .featured-card:last-child { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  header { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; }
  .side-stack { display: none; }
  .hero-title { font-size: 26px; }
  .content-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .featured-row { grid-template-columns: 1fr; padding: 0 20px; }
  .section-header { padding: 24px 20px 16px; }
  .newsletter { flex-direction: column; padding: 24px 20px; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { width: 100%; }
  .footer-top { grid-template-columns: 1fr; padding: 0; gap: 24px; }
  footer { padding: 32px 20px 20px; }
}

/* ── KILL ALL WORDPRESS MENU DOTS ── */
nav ul, nav ol { list-style: none !important; }
nav li { list-style: none !important; list-style-type: none !important; }
nav li::marker, nav li::before, nav li::after { content: none !important; display: none !important; }
nav a::before, nav a::after { content: none !important; display: none !important; }

/* ── KILL WHITE SQUARE & STRAY NAV ELEMENTS ── */
nav > div,
nav > span,
nav > input,
nav > img,
header > div:empty,
nav:empty::after,
.menu-toggle,
button.menu-toggle {
  display: none !important;
}
nav ul { background: transparent !important; }
nav li a { background: transparent !important; }

/* ── FIX SCROLLBAR WHITE SQUARE ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-corner { background: var(--black); }
* { scrollbar-color: #333 var(--black); scrollbar-width: thin; }

/* ── MOBILE HEADER FIX ── */
@media (max-width: 768px) {
  header { padding: 0 16px; }
  .header-top {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 10px;
  }
  .logo-block {
    order: 1;
    flex: 0 0 auto;
  }
  .logo-block img { max-height: 50px; width: auto; }
  .header-date {
    order: 3;
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 10px;
  }
  .header-date .date-main {
    font-size: 12px !important;
    letter-spacing: 2px !important;
  }
  .header-date .date-tagline {
    font-size: 10px !important;
    margin-top: 4px !important;
    letter-spacing: 1px !important;
  }
  .header-right {
    order: 2;
    flex: 0 0 auto;
    gap: 8px;
  }
  .search-btn { 
    padding: 6px 10px;
    font-size: 11px;
  }
  .subscribe-btn {
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
  nav { overflow-x: auto; }
  nav a { padding: 12px 14px; font-size: 12px; }
}

/* Widen article content area */
.entry-content {
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix YouTube embed to full width */
.wp-block-embed.is-provider-youtube {
    max-width: 100% !important;
    width: 100% !important;
}

.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

.wp-block-embed.is-provider-youtube .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* === Read / Watch Toggle === */
.ccn-read-watch-wrapper {
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.ccn-toggle-tabs {
    display: flex;
    background: #111;
}

.ccn-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.ccn-tab.active {
    background: #e8261e; /* Cali Camera red */
    color: #fff;
}

.ccn-tab:hover:not(.active) {
    background: #222;
    color: #fff;
}

.ccn-tab-content {
    padding: 20px;
}

.ccn-tab-content.hidden {
    display: none;
}

.ccn-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.ccn-video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 4px;
}

/* === VIDEO LIGHTBOX === */
.ccn-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ccn-lightbox-overlay.active {
    display: flex;
}

.ccn-lightbox-inner {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.ccn-lightbox-inner iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 6px;
}

.ccn-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}