/* UvaFM - Professional Radio Theme (Modern & Attractive) */
:root {
  /* Default Dark Theme */
  --bg-darkest: #0a0a0a;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --accent: #ff0055; /* Hot Pink */
  --accent-secondary: #00f2ff; /* Cyan */
  --accent-tertiary: #fbff00; /* Neon Yellow */
  --header-bg-scrolled: rgba(10, 10, 10, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --input-bg: #2a2a2a;
  --input-border: #333;

  --header-height: 120px;
  --player-height: 90px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --container-width: 1200px;
}

/* Light Theme Override */
html.light-mode {
  --bg-darkest: #f8f9fa;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --accent: #ff0055; /* Keep accent */
  --header-bg-scrolled: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --input-bg: #f1f3f5;
  --input-border: #dee2e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: var(--player-height); /* Space for sticky player */
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em; /* Tighter tracking for modern look */
  margin-top: 0;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 92%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, height 0.4s ease;
}

.site-header.scrolled {
  background: var(--header-bg-scrolled);
  height: 90px;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  background: var(--accent);
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 12px; /* Softer corners */
  transform: rotate(-5deg);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff; /* Always white initially */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 35px;
}

.site-nav a {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
  color: #fff; /* Always white initially */
  position: relative;
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.site-nav a:hover, .site-nav li.active a {
  opacity: 1;
  color: #fff;
}

.site-nav a:hover::after, .site-nav li.active a::after {
    width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff; /* Always white initially */
  font-size: 1.6rem;
  cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    color: #fff; /* Always white initially */
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}
.theme-toggle:hover {
    color: var(--accent);
    transform: rotate(15deg);
}

/* Header Scrolled State - Light Mode Adjustments */
html.light-mode .site-header.scrolled .brand-text,
html.light-mode .site-header.scrolled .site-nav a,
html.light-mode .site-header.scrolled .nav-toggle,
html.light-mode .site-header.scrolled .theme-toggle {
    color: #1a1a1a;
}

html.light-mode .site-header.scrolled .site-nav a:hover,
html.light-mode .site-header.scrolled .site-nav li.active a {
    color: var(--accent); /* Accent color on hover in light mode */
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding-top: var(--header-height);
  color: #fff; /* Hero always white text on dark bg */
}

.hero-content {
  max-width: 800px;
  padding: 40px;
  /* Removed glassmorphism box for cleaner look with animations */
  /* background: rgba(0, 0, 0, 0.2); */
  /* backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255, 255, 255, 0.1); */
  /* box-shadow: 0 20px 50px rgba(0,0,0,0.3); */
}

/* Animations */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-slide[style*="opacity: 1"] .hero-subtitle {
    animation: slideInDown 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0; /* Start hidden */
}

.hero-slide[style*="opacity: 1"] .hero-title {
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0; /* Start hidden */
}

.hero-slide[style*="opacity: 1"] .hero-actions {
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0; /* Start hidden */
}

.hero-subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem; /* Slightly larger */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    letter-spacing: 0.15em;
    background: rgba(255, 255, 255, 0.1); /* Lighter background */
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem); /* Adjusted size */
  line-height: 1.05;
  margin-bottom: 30px;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.9;
    line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px; /* Pill shape */
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 20px rgba(255, 0, 85, 0.3);
  border: 2px solid transparent;
}

.btn:hover {
  background: transparent;
  border-color: #fff;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: none;
  margin-left: 15px;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 85, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 25px;
    transition: background 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    color: #fff;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Schedule Tabs */
.schedule-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 85, 0.3);
}

.schedule-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.schedule-content.active {
    display: block; /* Changed from grid to block for table */
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.schedule-row {
    background: var(--bg-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.schedule-row:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent);
}

.schedule-cell {
    padding: 20px;
    vertical-align: middle;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.schedule-row .schedule-cell:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    width: 180px; /* Increased width for time */
    text-align: center;
    white-space: nowrap;
}

.schedule-row .schedule-cell:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.schedule-time {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
}

.schedule-img img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.schedule-info h3 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    color: var(--text-main);
}

.schedule-host {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 3rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.modern-card {
  background: var(--bg-card);
  border-radius: 20px; /* Rounded cards */
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.card-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modern-card:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  padding: 30px;
}

.card-tag {
  color: var(--accent);
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  letter-spacing: 0.1em;
  background: rgba(255, 0, 85, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--text-main);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  font-weight: 500;
}

.card-desc {
    color: var(--text-main);
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Sticky Player */
.sticky-player {
  position: fixed;
  bottom: 20px; /* Floating player */
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--container-width);
  height: 80px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  z-index: 2000;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.player-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
}

.player-status {
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.player-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 350px;
  color: #fff;
  letter-spacing: 0.02em;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

.play-btn {
  background: #fff;
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #a0a0a0;
}

.volume-container input {
  accent-color: var(--accent);
  width: 100px;
  height: 4px;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  padding: 100px 0 40px;
  border-top: 1px solid var(--border-color);
  color: var(--text-main);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-main);
  letter-spacing: 0.05em;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 300px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-main);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Pages Styling */
.page-header {
    height: 400px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 80px;
    color: #fff;
    padding-top: var(--header-height);
}

.page-title {
    font-size: 4.5rem;
    margin: 0 0 15px 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
    line-height: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: var(--accent);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.content-box {
    background: var(--bg-card);
    padding: 50px;
    margin-bottom: 50px;
    color: var(--text-main);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.article-body {
    color: var(--text-main);
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 15px 20px;
    color: var(--text-main);
    font-family: inherit;
    border-radius: 10px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 5rem; }
    .sticky-player { width: 90%; bottom: 15px; }
}

@media (max-width: 768px) {
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-dark);
        padding: 120px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    body.nav-open .site-nav {
        right: 0;
    }
    
    .site-nav ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .site-nav a {
        font-size: 2rem; /* Larger mobile menu items */
        color: var(--text-main); /* In mobile menu, use text color */
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
    
    .player-title { display: none; }
    .sticky-player { height: 70px; }
    .play-btn { width: 40px; height: 40px; font-size: 1rem; }

    .schedule-row {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .schedule-row .schedule-cell {
        border: none;
        padding: 5px;
        width: 100% !important;
    }

    .schedule-img img {
        width: 100px;
        height: 100px;
    }
}
