/* =========================================================
   Eagle View Music - Main Stylesheet
   ========================================================= */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #f59e0b;
  --secondary-hover: #d97706;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #fef3c7 100%);
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #cbd5e1;
  --card-border: rgba(2, 132, 199, 0.12);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 20px 40px rgba(2, 132, 199, 0.18);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --font-heading: 'Fredoka', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Top Announcement / Navigation Bar
   ========================================================= */
.top-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  font-size: 1.8rem;
  background: #fef3c7;
  border-radius: var(--radius-md);
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0369a1;
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-btn-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  font-weight: 700;
  text-decoration: none;
}

.nav-btn-external:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* =========================================================
   Banner Hero Section
   ========================================================= */
.banner-section {
  padding: 28px 0 16px 0;
}

.banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background: #ffffff;
  max-height: 480px;
}

.banner-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   Welcome & Teacher Card Section
   ========================================================= */
.intro-section {
  padding: 24px 0 36px 0;
}

.teacher-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.teacher-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, #f59e0b 0%, #0284c7 100%);
}

.teacher-photo-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #f8fafc;
  background: #e2e8f0;
  aspect-ratio: 9 / 16;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.teacher-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.teacher-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.school-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.teacher-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

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

.teacher-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.teacher-desc p + p {
  margin-top: 10px;
}

.teacher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.btn-primary-site {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}

.btn-primary-site:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

.btn-secondary-apps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.btn-secondary-apps:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--primary);
  transform: translateY(-2px);
}

/* =========================================================
   Featured Apps Section
   ========================================================= */
.apps-section {
  padding: 20px 0 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

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

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.app-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(2, 132, 199, 0.35);
}

.app-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.app-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}

.app-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.app-card:hover .app-cover-img {
  transform: scale(1.05);
}

.app-badge-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.app-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
}

.app-card-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.app-card:hover .app-card-btn {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 30px 0;
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.footer-copy {
  color: #64748b;
  font-size: 0.85rem;
}

/* =========================================================
   Responsive Design
   ========================================================= */
@media (max-width: 900px) {
  .teacher-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 28px 20px;
  }

  .teacher-photo-wrapper {
    max-width: 220px;
    margin: 0 auto;
  }

  .school-tag {
    align-self: center;
  }

  .teacher-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .top-nav-inner {
    flex-direction: column;
    gap: 12px;
  }

  .teacher-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }
}
