/**
 * Shared landing section styles for Moodle login and frontpage
 * Gold and black theme with clean, modern design
 */

:root {
  --landing-gold: #d4af37;
  --landing-black: #0f172a;
  --landing-dark-gray: #1e293b;
  --landing-light-gray: #e2e8f0;
  --landing-accent: #3b82f6;
}

/* Landing Section Container */
.landing-section {
  background: linear-gradient(135deg, var(--landing-black) 0%, #1a1f35 100%);
  color: var(--landing-light-gray);
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Background accent elements */
.landing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.landing-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.landing-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.landing-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--landing-light-gray);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.landing-subheading {
  font-size: 1.25rem;
  font-weight: 500;
  color: #cbd5e1;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

/* Feature Cards */
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--landing-gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

/* Feature Icon */
.feature-icon {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--landing-gold);
  font-size: 1.5rem;
  font-weight: bold;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

/* Feature Title */
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--landing-light-gray);
  line-height: 1.3;
}

/* Feature Description */
.feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
  opacity: 0.9;
}

/* Tablet Breakpoint */
@media (max-width: 768px) {
  .landing-heading {
    font-size: 2rem;
  }

  .landing-subheading {
    font-size: 1.1rem;
  }

  .landing-section {
    padding: 3rem 1rem;
  }

  .landing-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* Mobile Breakpoint */
@media (max-width: 480px) {
  .landing-heading {
    font-size: 1.75rem;
  }

  .landing-subheading {
    font-size: 1rem;
  }

  .landing-section {
    padding: 2rem 1rem;
  }

  .landing-hero {
    margin-bottom: 2rem;
  }

  .landing-features {
    gap: 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-description {
    font-size: 0.9rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .landing-section {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 100%);
  }

  .feature-card {
    background: rgba(20, 30, 48, 0.8);
    border-color: rgba(212, 175, 55, 0.15);
  }

  .feature-card:hover {
    background: rgba(20, 30, 48, 0.95);
    border-color: rgba(212, 175, 55, 0.3);
  }
}

/* Print Styles */
@media print {
  .landing-section {
    display: none;
  }
}
