/* Material You Theme for Groovy Music Player */
:root {
  /* Core Brand Colors based on #df3837 */
  --md-sys-color-primary: #df3837;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #ffdad6;
  --md-sys-color-on-primary-container: #410002;
  
  --md-sys-color-secondary: #775652;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #ffdad6;
  --md-sys-color-on-secondary-container: #2c1512;
  
  --md-sys-color-tertiary: #715b2e;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #fedb9d;
  --md-sys-color-on-tertiary-container: #261900;
  
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #ffdad6;
  --md-sys-color-on-error-container: #410002;
  
  --md-sys-color-background: #fffbff;
  --md-sys-color-on-background: #201a19;
  
  --md-sys-color-surface: #fffbff;
  --md-sys-color-on-surface: #201a19;
  --md-sys-color-surface-variant: #f5ddda;
  --md-sys-color-on-surface-variant: #534341;
  --md-sys-color-outline: #857371;

  --md-sys-color-surface-container-highest: #e4d7d5;
  --md-sys-color-surface-container-high: #eadcdb;
  --md-sys-color-surface-container: #f0e2e0;
  --md-sys-color-surface-container-low: #f6e8e6;
  --md-sys-color-surface-container-lowest: #ffffff;

  /* Typography */
  --font-family: 'Outfit', 'Roboto', system-ui, -apple-system, sans-serif;
  
  /* Shapes */
  --shape-small: 8px;
  --shape-medium: 16px;
  --shape-large: 24px;
  --shape-extra-large: 32px;
  --shape-full: 9999px;
  
  /* Elevations (Shadows) */
  --elevation-1: 0px 1px 3px 1px rgba(0,0,0, 0.15), 0px 1px 2px 0px rgba(0,0,0, 0.3);
  --elevation-2: 0px 2px 6px 2px rgba(0,0,0, 0.15), 0px 1px 2px 0px rgba(0,0,0, 0.3);
  --elevation-3: 0px 4px 8px 3px rgba(0,0,0, 0.15), 0px 1px 3px 0px rgba(0,0,0, 0.3);
}

/* Dark Mode (Basic support) */
@media (prefers-color-scheme: dark) {
  :root {
    --md-sys-color-primary: #ffb4ab;
    --md-sys-color-on-primary: #690005;
    --md-sys-color-primary-container: #93000a;
    --md-sys-color-on-primary-container: #ffdad6;
    
    --md-sys-color-background: #201a19;
    --md-sys-color-on-background: #ede0de;
    
    --md-sys-color-surface: #201a19;
    --md-sys-color-on-surface: #ede0de;
    --md-sys-color-surface-variant: #534341;
    --md-sys-color-on-surface-variant: #d8c2bf;
    
    --md-sys-color-surface-container-highest: #3b302f;
    --md-sys-color-surface-container-high: #302625;
    --md-sys-color-surface-container: #2a201f;
    --md-sys-color-surface-container-low: #241a19;
    --md-sys-color-surface-container-lowest: #140c0b;
  }
}

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

body {
  font-family: var(--font-family);
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.5;
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.6; }

a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* Material You Components */

/* App Bar / Header */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--md-sys-color-surface);
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-bar .brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--md-sys-color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-bar nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.app-bar nav a:not(.btn) {
  color: var(--md-sys-color-on-surface);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--shape-full);
  transition: background-color 0.2s;
}

.app-bar nav a:not(.btn):hover {
  background-color: var(--md-sys-color-surface-variant);
}

@media (max-width: 768px) {
  .app-bar nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--shape-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  text-align: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn i {
  font-size: 1.25rem;
}

.btn-primary {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary) !important;
}

.btn-primary:hover {
  box-shadow: var(--elevation-1);
  filter: brightness(0.9);
}

.btn-tonal {
  background-color: var(--md-sys-color-secondary-container);
  color: var(--md-sys-color-on-secondary-container) !important;
}

.btn-tonal:hover {
  box-shadow: var(--elevation-1);
  filter: brightness(0.95);
}

/* Cards */
.card {
  background-color: var(--md-sys-color-surface-container);
  border-radius: var(--shape-extra-large);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--elevation-2);
}

.card-primary {
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  border-radius: var(--shape-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--md-sys-color-surface-container-low), var(--md-sys-color-surface-container-highest));
  border-bottom-left-radius: 48px;
  border-bottom-right-radius: 48px;
  padding-top: 4rem;
  padding-bottom: 4rem;
  margin-bottom: 4rem;
}

.hero-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 992px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .hero-text { flex: 1; padding-right: 2rem; }
  .hero-image { flex: 1; display: flex; justify-content: center; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--md-sys-color-on-background);
  margin-bottom: 1.5rem;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image img {
  max-height: 600px;
  border-radius: 36px;
  box-shadow: var(--elevation-3);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Feature Section */
.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  color: var(--md-sys-color-primary);
}

/* How it works */
.step-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--md-sys-color-primary-container);
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* Pricing */
.pricing-card {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-price {
  font-size: 4rem;
  font-weight: 700;
  margin: 1rem 0;
  color: var(--md-sys-color-primary);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--md-sys-color-primary);
  font-weight: bold;
}

.pricing-card .btn {
  margin-top: auto;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--md-sys-color-surface-variant);
  border-radius: var(--shape-large);
  padding: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background-color: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
  border-radius: var(--shape-extra-large);
  padding: 4rem 2rem;
  margin: 4rem 0;
}

.cta-section h2 {
  color: var(--md-sys-color-on-primary-container);
}

/* Footer */
footer {
  background-color: var(--md-sys-color-surface-container-highest);
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  width: 48px;
  height: 48px;
  background-color: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.2s;
}

.social-links a:hover {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  transform: translateY(-3px);
}
