/* Base styles */
:root {
  --color-pink: #ff69b4;
  --color-purple: #b79ced;
  --color-amber: #fbbf24;
  --color-background: #ffffff;
  --color-foreground: #1f2937;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-card: #ffffff;
  --border-radius: 0.5rem;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-foreground);
  background-color: var(--color-background);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-pink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-pink);
}

.nav-links a.active {
  color: var(--color-pink);
}

/* Header Section */
.header-section {
  text-align: center;
  padding: 3rem 0 4rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-pink);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 3rem;
  }
}

.page-description {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tabs */
.tabs-container {
  margin-bottom: 3rem;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background-color: #f9fafb;
  border-radius: var(--border-radius);
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.tab-trigger {
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-radius: calc(var(--border-radius) - 0.25rem);
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.97rem;
}

.tab-trigger:hover {
  color: var(--color-foreground);
}

.tab-trigger.active {
  background-color: white;
  color: var(--color-foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.tab-content {
  position: relative;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* Resource Cards */
.resource-card {
  background-color: var(--color-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

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

.resource-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.resource-source {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.resource-description {
  color: var(--color-muted);
  margin-bottom: 1rem;
  flex: 1;
  line-height: 1.6;
}

.resource-grade-levels {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-pink);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.resource-link:hover {
    background: #de388b;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.external-link-icon {
  width: 1rem;
  height: 1rem;
}

/* Footer */
.footer {
  background-color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-logo h3 {
  color: var(--color-pink);
  margin-bottom: 0.5rem;
}

.footer-logo p {
  color: var(--color-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-links-column h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-links-column a {
  display: block;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: var(--color-pink);
}

.social-links {
  display: flex;
  gap: 1rem;
}
.fa-brands {
  font-size: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 105, 180, 0.1);
  color: var(--color-pink);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--color-pink);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays */
.resource-card:nth-child(1) { animation-delay: 0.1s; }
.resource-card:nth-child(2) { animation-delay: 0.2s; }
.resource-card:nth-child(3) { animation-delay: 0.3s; }
.resource-card:nth-child(4) { animation-delay: 0.4s; }
.resource-card:nth-child(5) { animation-delay: 0.5s; }
.resource-card:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .header-section {
    padding: 2rem 0 3rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .tabs-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }

  .tab-trigger {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .tabs-list {
    grid-template-columns: 1fr;
  }
  
  .tab-trigger {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}