/******************************************************************
Theme Name: KMUL 2025
Theme URI: http://www.ucmthebeat.com
Description: Custom theme designed for UCM's The Beat, the student radio of the University of Central Missouri.
Author: Eric Newsom
Author URI: http://www.ericnewsom.com
Version: 1.0

******************************************************************/

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

body {
  font-family: 'apparat-cond', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  color: #000;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #111318 0%, #262933 100%);
}

body p {
  margin-bottom: 10px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('library/circuit-bg.svg') no-repeat center top;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-size: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

main { max-width: 85vw; margin: 0 auto; }


/* ------------------------------------------------------------
   Fade-In
------------------------------------------------------------ */

.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: all 0.8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }


/* ------------------------------------------------------------
   Links & Typography
------------------------------------------------------------ */
a {font-family:'apparat-cond', sans-serif; font-weight:400; text-decoration:none; color:#CF202E; transition:color 0.2s;}
h1,h2,h3,h4 {font-family:'apparat-cond', serif; font-weight:400; line-height:1.2;}
h2.section-title, .news-item h3 a, .current-show-card .current-show-title {font-weight:700; text-transform:uppercase;}
 
.featured-show h3 a, .current-show-title a {
  font-family:'Arvo', serif;
  font-weight:700;
  font-size:1.1rem;
  margin:0.5rem 0;
}

footer h4 {font-weight:700;}

h2.section-title {display:inline-block; font-size:1.6rem; color:#fff; background-color:#CF202E; padding:0.5rem 1rem; margin:2rem 0 .75rem; transform:rotate(-2deg); position:relative; z-index:1; box-shadow:0 18px 12px rgba(0,0,0,0.6); transform: skew(-15deg);}


.featured-show h3 a {
  font-size:2.2rem; font-weight:700; margin-bottom:1rem; color:#FFF; text-transform:uppercase;
}
.current-show-title {
  font-family:'Arvo', serif;
  font-weight:700;
  font-size:1.1rem;
  margin:0.5rem 0;
}

/* Branding Colors */
.ucmlogored, .ucmlogored a {
  color: #CF202E;
  font-family: 'futura-pt', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.red, .red a {
  color: #CF202E;
  font-family: 'arvo', serif;
}

.white, .white a {
  color: #fff;
  font-family: 'arvo', serif;
}

/* ------------------------------------------------------------
   Network Navbar
------------------------------------------------------------ */
.networknavbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.9);
  padding: 0.5rem 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  text-transform: uppercase;
  font-family: "arvo", serif;
  font-size: 1.2rem;
  font-weight: 700;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  line-height: 1;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-weight: 700;
}

.networknavbar ul.links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
  font-weight: 400;
}

.links li {
  white-space: nowrap;
}

.links li a {
  color: #fff;
  text-decoration: none;
}

/* ------------------------------------------------------------
   Sticky Navbar
------------------------------------------------------------ */
.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1001;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.sticky-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-nav .brand,
.sticky-nav .links li a {
  font-family: 'apparat-cond', sans-serif;
  font-weight: 400;
  color: #fff;
}

.sticky-logo {
  height: 36px;
  display: block;
}

.sticky-nav ul.links li a {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 6px 12px;
}

.sticky-nav ul.links li a:hover {
  color: #CF202E;
}

/* ------------------------------------------------------------
   Homepage Hero
------------------------------------------------------------ */
.hero-header {
  position: relative;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(to top, rgba(38,41,51,1.0) 0%, rgba(38,41,51,0.7) 50%, rgba(38,41,51,0.0) 80%),
    url('library/kmul-hero.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding:.75rem 0 1.5rem;
}

.hero-header p {
  margin: 0;
}

.hero-logo-container {
  margin: 2rem 0;
}

.hero-logo {
  width: 300px;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(207,32,46,0.6)); }
}

.now-playing {
  background:#000;
  padding:0.4rem 0;
  width:100%;
  color:#fff;
  font-weight:bold;
}

.hero-listen {
  margin-top:2rem;
  font-family:'apparat-cond', sans-serif;
  font-weight:400;
  font-size:1.2rem;
}

.hero-listen p {margin:0.5rem 0;}

.hero-listen a {color:#CF202E; font-weight:700;}


/* Main navigation (homepage) */
.main-nav {
  margin-top: 36px;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
  padding: 0;
}

.main-nav a {
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 6px;
}

.main-nav a:hover {
  border: 2px solid #CF202E;
  background-color: rgba(255,0,0,0.2);
}

/* ------------------------------------------------------------
   Featured & Current Shows (Homepage)
------------------------------------------------------------ */

.shows-wrapper {
	display:flex; 
	flex-wrap:wrap;
	}

.featured-show-column, .current-shows-column {
	flex:1 1 50%; 
	min-width:300px;
	}

.featured-show {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(255,0,0,0.4);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 0 20px rgba(255,0,0,0.4);
  width:100%;
}

.featured-show::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid white;
  pointer-events: none;
}

.featured-show img {
  max-width: 400px;
  max-height: 400px;
  border-radius: 12px;
  transition: all 0.3s ease;
  z-index: 2;
}

.featured-show-content {
  flex: 1;
  z-index: 2;
}

.featured-show p {
  color: #FFF;
}

.featured-show h3 a {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #FFF;
  text-transform: uppercase;
}

.category-tag {
  display: inline-block;
  background: #CF202E;
  color: white;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.5rem;
  position: relative;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Current Shows cards */
.current-shows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.current-show-card {
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position:relative;
}

.current-show-card::before {
content: "";
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: #CF202E;
    border-radius: 2px;
    border:1px solid pink;
    box-shadow: 0 12px 12px rgba(207,32,46,0.6), 0 0 24px rgba(207,32,46,0.4);
}

.current-show-card:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.current-show-card img {
  width:100%;
  height:auto;
  object-fit:cover;
  display:block;
  border-radius:12px 12px 0 0;
}

.current-show-genre {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #CF202E;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0.5rem auto 0;
}

.current-show-description {
  font-family:'apparat-cond', sans-serif;
  font-weight:400;
  font-size:1rem;
  padding:0 1rem 1rem;
  text-align:left;
}

/* ------------------------------------------------------------
   Subpage Header
------------------------------------------------------------ */
.kmul-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: 
    linear-gradient(to top, rgba(38,41,51,1.0) 0%, rgba(38,41,51,0.7) 50%, rgba(38,41,51,0.0) 80%),
    url('library/kmul-hero.jpg') center/cover no-repeat;
  background-attachment: fixed; /* parallax-like */
  padding: 80px 2rem 1rem 2rem; /* top padding clears networknavbar */
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius:0;
  position: relative;
  z-index:999;
  color:#FFF;
  font-size:1rem;
}
.kmul-header .logo img {height:150px;}
.kmul-header nav ul {display:flex; list-style:none; gap:2rem;}
.kmul-header nav ul li a {
  color:#FFF;
  font-weight:700;
  text-transform:uppercase;
  padding:0.5rem 1rem;
  text-decoration:none;
  transition: all 0.2s;
  font-size:1.5rem;
}
.kmul-header nav ul li a:hover {color:#CF202E;}

/* ------------------------------------------------------------
   Subpage Layout
------------------------------------------------------------ */

.page-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  margin: 2rem auto;
  max-width: 85vw;
}

.show-details {
  /* Added `flex: 1 1 70%` to ensure it takes up more space than the sidebar */
  flex: 1 1 70%;
  margin-top: 1rem;
}

.sidebar {
  /* Added `flex: 1 1 30%` to ensure it takes up less space than the main content */
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.show-details {margin-top: 1rem;}
.show-details .category-tag {
  display:inline-block; 
  background:#CF202E; 
  color:white; 
  font-size:0.8rem; 
  letter-spacing:3px; 
  text-transform:uppercase; 
  padding:0.35rem 0.75rem; 
  margin-bottom:0.5rem; 
  box-shadow:0 0 12px rgba(207,32,46,0.8);
}
.show-details h1 {font-size:2.2rem; font-weight:700; margin-bottom:0.5rem; color:#FFF; text-transform:uppercase;}
.show-details p {color:#FFF;}

.show-layout {
  display:flex;
  align-items:flex-start;
  gap:2rem;
  margin-top:1rem;
}

.show-image {
  width:250px;
  height:250px;
  object-fit:cover;
  border-radius:12px;
  box-shadow:0 10px 14px rgba(0,0,0,0.3);
}

.show-info h3 {
  margin: 0.5rem 0;
  color: #CF202E;
  text-transform: uppercase;
}

.show-tags {margin-top:1rem;}
.show-tags span {
  display:inline-block;
  background:#CF202E;
  color:#fff;
  padding:0.3rem 0.7rem;
  margin:0.2rem 0.2rem 0 0;
  border-radius:6px;
  font-size:0.85rem;
  box-shadow:0 0 8px rgba(207,32,46,0.5);
}


/* ------------------------------------------------------------
   Subpage Sidebar
------------------------------------------------------------ */

.sidebar .widget {
    background:linear-gradient(180deg, rgba(255,255,255, 0.12), rgba(255,255,255,0.02));
    border-radius:14px; padding:16px; border:1px solid rgba(255,255,255,0.04);
    box-shadow:0 10px 30px rgba(4,8,12,0.6);
    position:relative;
    color:#FFF;
}
.sidebar .widget::before {
    content: "";
    position: absolute;
    top: -6px; /* hang above the card */
    left: 50%;
    transform: translateX(-50%);
    width: 12em;    /* bar width */
    height: 3px;    /* bar thickness */
    background: #CF202E; /* red glow */
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(207,32,46,0.6), 0 0 24px rgba(207,32,46,0.4);
}
.sidebar .widget h3 {
  font-size:1.6rem;
  color:#fff;
  background-color:#CF202E;
  padding:0.25rem 1rem;
  margin:0 auto 10px;
  transform: skew(-15deg);
  position:relative;
  z-index:1;
  box-shadow:0 12px 12px rgba(0,0,0,0.6);
  font-weight: 700;
  text-transform: uppercase;
}
.sidebar .widget input {width:100%; padding:0.5rem; border-radius:6px; border:none; font-size:1rem;}
.sidebar .widget a {color:#CF202E; text-decoration:none;}
.sidebar .widget a:hover {text-decoration:underline;}
.sidebar .widget ul {list-style: disc inside; padding-left:1.2rem; margin:0;}
.sidebar .widget ul li {margin-bottom:0.5rem;}


/* ------------------------------------------------------------
   Radio Dial
------------------------------------------------------------ */
.radio-dial {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 60px;
    margin: 0 auto;
  }

  /* ticks container */
  .ticks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-between;
  }

  .tick {
    background: rgba(116,127,127,1.0);
  }

  .tick.major {
    height: 12px;
    width: 3px;
  }

  .tick.minor {
    height: 7px;
    width: 2px;
  }

  /* numbers aligned with major ticks */
  .numbers {
    position: absolute;
    top: 22px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-family:'apparat-cond', sans-serif;
    font-size: 14px;
    color: rgba(116,127,127,1.0);
  }

  /* needle */
  .needle {
    position: absolute;
    top: 0;
    width: 2px;
    height: 30px; /* half height */
    background: #CF202E;
    transform: translateX(-50%);
    animation: needleWaver 2s ease-in-out infinite alternate;
  }

  @keyframes needleWaver {
    0% { transform: translateX(-50%) translateX(-2px); }
    100% { transform: translateX(-50%) translateX(2px); }
  }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
footer {
  background: #000; 
  margin-top: 40px; 
  padding: 20px 2rem;
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; 
  text-align: center;
  font-family: "apparat-cond", sans-serif;  
  font-weight: 400;                         
  font-size:1rem;
  font-style: normal;                        
  color: #fff;                               
}
footer h3 {
  font-family: "apparat-cond", sans-serif;
  font-weight: 600;
}
footer a {
  color: #CF202E; 
  text-decoration: none;
  font-family: "apparat-cond", sans-serif;
  font-weight: 400;
}
.footer-logo {
  background: #555; width: 150px; height: 50px;
  margin: 0 auto 10px; border-radius: 4px;
}

/* ------------------------------------------------------------
   Search Bar
------------------------------------------------------------ */

.search-label {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-field {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border-radius: 6px 0 0 6px;
  border: none;
  font-size: 1rem;
}

.search-submit {
  background: #CF202E; /* your theme accent */
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: #a91a25;
}


/* ------------------------------------------------------------
   Media Queries
------------------------------------------------------------ */
@media (max-width: 1024px) {
  .featured-show {
    flex-direction: column;
    align-items: center;
  }

  .hero-logo {
    width: 200px;
  }

  .shows-wrapper {
  	flex-direction:column;
  	}

  .current-shows {
    grid-template-columns: 1fr;
  }

  .show-layout {
    flex-direction: column;
    align-items: center;
  }

  .show-image img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .networknavbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}