/* assets/css/style.css */

:root {
  /* Colors */
  --color-primary: #527B8C;       /* Indigo 600 */
  --color-primary-dark: #3730a3;  /* Indigo 800 */
  --color-secondary: #0f172a;     /* Slate 900 (Midnight Blue) */
  --color-secondary-light: #1e293b; /* Slate 800 */
  --color-accent-1: #06b6d4;      /* Cyan 500 */
  --color-accent-2: #f97316;      /* Orange 500 */
  
  --color-text-main: #334155;     /* Slate 700 */
  --color-text-muted: #64748b;    /* Slate 500 */
  --color-text-light: #f8fafc;    /* Slate 50 */
  
  --color-bg-light: #f8fafc;      /* Slate 50 */
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;        /* Slate 200 */

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --player-height: 80px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-player: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  padding-bottom: var(--player-height); /* Prevent content overlap from fixed player */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: 8px;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 700;
  line-height: 1.2;
}

/* Layout Classes */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  color: var(--color-text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.btn-accent {
  background-color: var(--color-accent-2);
  color: white;
}

.btn-accent:hover {
  background-color: #ea580c;
  transform: translateY(-2px);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-secondary);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--color-bg-light) 0%, #e0e7ff 100%);
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.hero-title span {
  color: var(--color-primary);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-main);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-graphics {
  flex: 1;
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  border: 1px solid var(--color-border);
}

/* Cards & Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--color-bg-white);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

/* Two Volets Section */
.volets-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.volet-row {
  display: flex;
  align-items: center;
  gap: 50px;
}

.volet-row.reverse {
  flex-direction: row-reverse;
}

.volet-text {
  flex: 1;
}

.volet-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.volet-image {
  flex: 1;
}

/* Pricing Section */
.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
  gap: 15px;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-primary);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-accent-1);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: var(--color-bg-white);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--color-primary);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin: 20px 0;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: normal;
}

.pricing-features {
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li i {
  color: var(--color-primary);
}

/* Target Section */
.targets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.target-badge {
  background: white;
  padding: 15px 25px;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-secondary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-secondary);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px; /* Fallback for animation */
}

/* CTA Final */
.cta-final {
  background: var(--color-secondary);
  color: white;
  text-align: center;
  border-radius: 20px;
  padding: 80px 40px;
  margin-bottom: 40px;
}

.cta-final h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-final p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

/* Footer */
.footer {
  background: var(--color-secondary);
  color: white;
  padding: 80px 0 100px; /* extra padding for sticky player */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  display: inline-block;
  color: white;
}

.footer-desc {
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text-muted);
}

/* Sticky Audio Player */
.sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--player-height);
  background-color: var(--color-secondary-light);
  color: white;
  z-index: 1000;
  box-shadow: var(--shadow-player);
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: transform 0.3s ease;
}

.player-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 250px;
}

.player-cover {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.player-details {
  display: flex;
  flex-direction: column;
}

.player-radio-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.live-badge {
  background-color: #ef4444;
  color: white;
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 800;
  animation: pulse 2s infinite;
}

.player-track {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.control-btn:hover {
  color: var(--color-primary);
}

.play-pause-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.play-pause-btn:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.05);
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.volume-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content, .volet-row {
    flex-direction: column;
    text-align: center;
  }
  
  .volet-row.reverse {
    flex-direction: column;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .player-actions .btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    z-index: 1000;
  }
  
  .nav-links.active {
    display: flex !important;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .player-volume {
    display: none;
  }
  
  .player-track {
    max-width: 120px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .player-info {
    min-width: unset;
  }
  
  .player-cover {
    display: none;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    width: 100%;
  }
}
