/* Resources Page Styles - Modern & Sleek Design */

/* CSS Variables */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --section-padding: 4rem 0;
  --container-padding: 0 2rem;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --max-width: 1400px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables (Default) */
:root {
  --bg-primary: var(--bg-color, #0a0a0a);
  --bg-card: rgba(26, 26, 26, 0.6);
  --bg-card-hover: rgba(38, 38, 38, 0.8);
  --text-primary: var(--text-color, #ffffff);
  --text-secondary: var(--secondary-text, #a1a1aa);
  --border-primary: var(--border-color, #262626);
  --border-hover: #404040;
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
  --gradient-orb-1: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  --gradient-orb-2: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
  --gradient-orb-3: radial-gradient(circle, rgba(240, 147, 251, 0.1) 0%, transparent 70%);
}

/* Light Mode Variables */
html.light {
  --bg-primary: var(--bg-color, #ffffff);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(248, 250, 252, 0.9);
  --text-primary: var(--text-color, #0f172a);
  --text-secondary: var(--secondary-text, #475569);
  --border-primary: var(--border-color, #e2e8f0);
  --border-hover: #cbd5e1;
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.15);
  --gradient-orb-1: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
  --gradient-orb-2: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
  --gradient-orb-3: radial-gradient(circle, rgba(240, 147, 251, 0.05) 0%, transparent 70%);
}

/* Base Styles */
.resources-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 4rem;
}

/* Background Orbs */
.resources-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.resources-orb {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.resources-orb-1 {
  width: 600px;
  height: 600px;
  background: var(--gradient-orb-1);
  top: -10%;
  right: -10%;
}

.resources-orb-2 {
  width: 500px;
  height: 500px;
  background: var(--gradient-orb-2);
  bottom: -10%;
  left: -10%;
  animation-delay: 2s;
}

.resources-orb-3 {
  width: 400px;
  height: 400px;
  background: var(--gradient-orb-3);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

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

/* Header Section */
.resources-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.resources-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.resources-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* Resources Container */
.resources-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* Resources Section */
.resources-section {
  animation: fadeInUp 0.8s ease-out both;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  padding-left: 0.5rem;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Resource Card */
.resource-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.resource-card:hover::before {
  opacity: 1;
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.resource-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  transition: var(--transition);
}

.resource-icon svg {
  color: #667eea;
  transition: var(--transition);
}

.resource-card:hover .resource-icon {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  transform: scale(1.05);
}

.resource-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.resource-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

.resource-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Featured Card */
.resource-card.featured {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.resource-card.featured:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* CTA Section */
.resources-cta {
  max-width: var(--max-width);
  margin: 4rem auto 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
}

.cta-content {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--border-radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  opacity: 0.03;
}

.cta-content > * {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: #667eea;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: #5a6fd8;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary.large, .btn-secondary.large {
  padding: 1.125rem 2rem;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .resources-header {
    padding: 5rem 2rem 3rem 2rem;
  }
  
  .resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .resources-header {
    padding: 4rem 1.5rem 2rem 1.5rem;
  }
  
  .resources-title {
    font-size: 2.5rem;
  }
  
  .resources-subtitle {
    font-size: 1.125rem;
  }
  
  .resources-container {
    padding: 0 1.5rem;
    gap: 3rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .resource-card {
    padding: 1.75rem;
  }
  
  .cta-content {
    padding: 3rem 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn-primary.large, .btn-secondary.large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .resources-header {
    padding: 3rem 1rem 2rem 1rem;
  }
  
  .resources-title {
    font-size: 2rem;
  }
  
  .resources-container {
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .resource-card {
    padding: 1.5rem;
  }
  
  .resource-icon {
    width: 40px;
    height: 40px;
  }
  
  .resource-title {
    font-size: 1rem;
  }
  
  .cta-content {
    padding: 2.5rem 1.5rem;
  }
}

/* Animation Delays */
.resources-section:nth-child(1) { animation-delay: 0.1s; }
.resources-section:nth-child(2) { animation-delay: 0.2s; }
.resources-section:nth-child(3) { animation-delay: 0.3s; }
.resources-section:nth-child(4) { animation-delay: 0.4s; }
