/* youth-resources-category-bundle.css - Combined CSS for category pages */
/* Generated from youth/css/*.css + youth/resources/css/*.css - Edit source files, not this. */
/* Rebuild with: youth/resources/scripts/build-category-bundle.sh */

/* === youth/css/youth-image-optimization.css (inlined from @import) === */
/**
 * Image Optimization Styles
 * Lazy loading, fade-in effects, and responsive images
 * Requirements: 22.2, 22.3, 22.4
 */

/* Lazy loading images - start with low opacity */
img[data-src],
picture img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Loaded images - fade in */
img.loaded,
picture img.loaded {
  opacity: 1;
}

/* Placeholder for images while loading */
img[data-src]:not(.loaded) {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  min-height: 200px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Dark mode placeholder */
.dark-mode img[data-src]:not(.loaded) {
  background: linear-gradient(
    90deg,
    #2a2a2a 25%,
    #1a1a1a 50%,
    #2a2a2a 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Picture element */
picture {
  display: block;
}

picture img {
  width: 100%;
  height: auto;
}

/* Image aspect ratio containers */
.img-container {
  position: relative;
  overflow: clip;
}

.img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Common aspect ratios */
.aspect-16-9 {
  padding-bottom: 56.25%; /* 16:9 */
}

.aspect-4-3 {
  padding-bottom: 75%; /* 4:3 */
}

.aspect-1-1 {
  padding-bottom: 100%; /* 1:1 */
}

.aspect-21-9 {
  padding-bottom: 42.857%; /* 21:9 */
}

/* Thumbnail images */
.img-thumbnail {
  border-radius: 8px;
  overflow: clip;
}

.img-thumbnail img {
  transition: transform 0.3s ease;
}

.img-thumbnail:hover img {
  transform: scale(1.05);
}

/* Hero images */
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero-image {
    height: 250px;
  }
}

/* Avatar images */
.avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

/* Icon images */
.icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Prevent layout shift during image load */
img[width][height] {
  height: auto;
}

/* Blur-up technique for progressive loading */
.blur-up {
  filter: blur(10px);
  transition: filter 0.3s ease-in-out;
}

.blur-up.loaded {
  filter: blur(0);
}

/* Error state for failed images */
img.error {
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.dark-mode img.error {
  background: #2a2a2a;
}

/* Print optimization - use high quality images */
@media print {
  img[data-src] {
    opacity: 1;
  }
}

/* === youth/css/youth.css (without @import) === */
/* Youth Section - Base Styles */
/* Modern, mobile-first design for teenagers aged 13-18 */

/* Import image optimization styles */

:root {
    /* Youth-specific color palette */
    --youth-primary: #6366f1;
    --youth-primary-dark: #4f46e5;
    --youth-secondary: #8b5cf6;
    --youth-accent: #ec4899;
    --youth-success: #10b981;
    --youth-warning: #f59e0b;
    --youth-danger: #ef4444;
    
    /* Light mode colors */
    --youth-bg: #ffffff;
    --youth-bg-secondary: #f9fafb;
    --youth-text: #111827;
    --youth-text-secondary: #6b7280;
    --youth-border: #e5e7eb;
    
    /* Spacing */
    --youth-spacing-xs: 0.5rem;
    --youth-spacing-sm: 1rem;
    --youth-spacing-md: 1.5rem;
    --youth-spacing-lg: 2rem;
    --youth-spacing-xl: 3rem;
    
    /* Typography */
    --youth-font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --youth-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Border radius - modern, friendly */
    --youth-radius-sm: 0.5rem;
    --youth-radius-md: 0.75rem;
    --youth-radius-lg: 1rem;
    --youth-radius-xl: 1.25rem;
    --youth-radius-2xl: 1.5rem;
    --youth-radius-pill: 9999px;
    
    /* Shadows - soft, layered */
    --youth-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --youth-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.06);
    --youth-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
    --youth-shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    --youth-shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.1), 0 4px 14px -2px rgba(99, 102, 241, 0.2);
    
    /* Transitions - snappy, modern */
    --youth-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --youth-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --youth-ease-out: cubic-bezier(0.4, 0, 0.2, 1);

    /* Aliases for Q&A, forms, and components that expect these names (light mode) */
    --primary-color: var(--youth-primary);
    --primary-color-dark: var(--youth-primary-dark);
    --secondary-color: var(--youth-secondary);
    --card-bg: var(--youth-bg-secondary);
    --bg-color: var(--youth-bg);
    --text-color: var(--youth-text);
    --heading-color: var(--youth-text);
    --text-muted: var(--youth-text-secondary);
    --border-color: var(--youth-border);
}

/* In-site light mode: native UI (scrollbars, inputs) follows toggle, not device preference */
html:not(.dark-mode) {
    color-scheme: light;
}

/* Base body so standalone youth pages (Q&A, submit) have correct background and text */
body {
    font-family: var(--youth-font-base);
    color: var(--youth-text);
    background-color: var(--youth-bg);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent flash of unstyled Alpine content before init */
[x-cloak] {
    display: none !important;
}

/* Base layout for standalone youth pages (Q&A, submit, etc.) when main site CSS is not loaded */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.youth-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--youth-border);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--youth-shadow-sm);
}

.youth-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.youth-nav .nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--youth-primary);
    text-decoration: none;
    transition: var(--youth-transition);
}

.youth-nav .nav-logo:hover {
    color: var(--youth-primary-dark);
    transform: translateY(-1px);
}

.youth-nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.youth-nav .nav-links a {
    color: var(--youth-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--youth-radius-lg);
    transition: var(--youth-transition);
}

.youth-nav .nav-links a:hover,
.youth-nav .nav-links a.active {
    color: var(--youth-primary);
    background: rgba(99, 102, 241, 0.08);
}

.theme-toggle-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.theme-toggle-container .theme-toggle-btn {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-pill);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--youth-transition);
    box-shadow: var(--youth-shadow-md);
}

.theme-toggle-container .theme-toggle-btn:hover {
    background: var(--youth-primary);
    border-color: var(--youth-primary);
    color: white;
    transform: scale(1.08);
    box-shadow: var(--youth-shadow-glow);
}

.youth-footer {
    background: var(--youth-bg-secondary);
    border-top: 1px solid var(--youth-border);
    padding: 2.5rem 0;
    margin-top: 4rem;
    color: var(--youth-text-secondary);
}

.youth-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.youth-footer p {
    margin: 0;
    font-size: 0.875rem;
}

.youth-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.youth-footer .footer-links a {
    color: var(--youth-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.youth-footer .footer-links a:hover {
    color: var(--youth-primary);
}

/* Section header used on Q&A and form pages - modern, youth-friendly */
.section-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--youth-primary);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 33%;
    height: 3px;
    background: linear-gradient(90deg, var(--youth-primary), var(--youth-secondary));
    border-radius: 0 2px 2px 0;
}

.section-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--youth-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.25;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--youth-text-secondary);
    margin: 0;
    max-width: 42ch;
}

/* Youth Main Container */
.youth-main {
    font-family: var(--youth-font-base);
    color: var(--youth-text);
    background-color: var(--youth-bg);
    min-height: 60vh;
    padding: 2.5rem 0 5rem;
}

/* Homepage: hero starts immediately below header (no gap) */
.youth-main:has(> .youth-hero:first-child) {
    padding-top: 0;
}

/* Youth Hero Section - modern gradient, vibrant */
.youth-hero {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 50%, #a855f7 100%);
    background-size: 200% 200%;
    color: white;
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.youth-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.youth-hero-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--youth-spacing-md);
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.youth-hero-subtitle {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    margin-bottom: var(--youth-spacing-lg);
    opacity: 0.95;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.youth-hero-welcome {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.95);
}

/* Theme Toggle */
.theme-toggle-wrapper {
    position: absolute;
    top: var(--youth-spacing-md);
    right: var(--youth-spacing-md);
}

.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--youth-transition);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Hero Banners */
.youth-hero-banners {
    margin-top: var(--youth-spacing-lg);
}

.banner-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    min-height: 200px;
    position: relative;
    overflow: clip;
}

/* Stack banner slides for smooth transitions */
.banner-container .banner-slide {
    display: block;
    width: 100%;
}

.banner-slide h2 {
    font-size: 1.75rem;
    margin-bottom: var(--youth-spacing-sm);
}

.banner-slide p {
    font-size: 1.125rem;
    margin-bottom: var(--youth-spacing-md);
    opacity: 0.9;
}

.banner-controls {
    display: flex;
    justify-content: center;
    gap: var(--youth-spacing-sm);
    margin-top: var(--youth-spacing-md);
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px; /* Touch-friendly minimum */
    height: 44px; /* Touch-friendly minimum */
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: var(--youth-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Quick Access Section */
.youth-quick-access {
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    background-color: var(--youth-bg-secondary);
}

.youth-quick-access .section-title {
    margin-bottom: var(--youth-spacing-xl);
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: var(--youth-spacing-lg);
    color: var(--youth-text);
}

/* Legacy quick-access (kept for any other pages) */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--youth-spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.quick-access-card {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-xl);
    padding: var(--youth-spacing-lg);
    text-align: center;
    text-decoration: none;
    color: var(--youth-text);
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
    border: 2px solid var(--youth-border);
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.quick-access-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--youth-shadow-glow);
    border-color: var(--youth-primary);
    background: var(--youth-bg);
}

.quick-access-card .card-icon {
    font-size: 3rem;
    margin-bottom: var(--youth-spacing-sm);
}

.quick-access-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-xs);
    color: var(--youth-text);
}

.quick-access-card p {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

/* App-icon home screen – phone-style: single icon + label below */
.youth-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 0.75rem;
    max-width: 520px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.youth-app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--youth-text);
    transition: var(--youth-transition);
    min-width: 0;
    padding: var(--youth-spacing-xs);
    min-height: 44px;
}

.youth-app-icon:hover {
    transform: scale(1.06);
}

.youth-app-icon:active {
    transform: scale(0.98);
}

.youth-app-icon__glyph {
    width: 3.75rem;
    height: 3.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    line-height: 1;
    background: var(--youth-bg);
    border-radius: 1rem;
    box-shadow: var(--youth-shadow-sm);
    margin-bottom: 0.375rem;
    flex-shrink: 0;
    transition: var(--youth-transition);
}

.youth-app-icon:hover .youth-app-icon__glyph {
    box-shadow: var(--youth-shadow-glow);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
}

.youth-app-icon__label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: var(--youth-text);
    max-width: 4.5rem;
    overflow: clip;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Buttons - modern, touch-friendly */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--youth-radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: var(--youth-transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 48px;
    min-width: 44px;
    box-shadow: var(--youth-shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--youth-primary), var(--youth-primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--youth-primary-dark), #4338ca);
    transform: translateY(-2px);
    box-shadow: var(--youth-shadow-glow);
}

.btn-secondary {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 2px solid var(--youth-border);
}

.btn-secondary:hover {
    background: var(--youth-border);
    border-color: var(--youth-text-secondary);
    transform: translateY(-2px);
    box-shadow: var(--youth-shadow-md);
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .youth-hero-title {
        font-size: 2rem;
    }
    
    .youth-hero-subtitle {
        font-size: 1rem;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr;
    }
    
    .youth-app-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--youth-spacing-md);
        max-width: 100%;
    }
    
    .youth-app-icon__glyph {
        width: 3.75rem;
        height: 3.75rem;
        font-size: 1.875rem;
    }
    
    .youth-app-icon__label {
        font-size: 0.6875rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .youth-app-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 640px;
    }
}

@media (min-width: 1025px) {
    .youth-app-grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 480px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .quick-access-card:active {
        transform: scale(0.98);
    }
    
    .youth-app-icon:active {
        transform: scale(0.94);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* Accessibility - fixed so it doesn't scroll into view (stays off-screen until focused) */
.skip-link {
    position: fixed;
    top: -100px;
    left: 0.5rem;
    background: var(--youth-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 10001;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.5rem;
    outline: 2px solid var(--youth-primary);
    outline-offset: 2px;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--youth-primary);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Notification styles */
.youth-notification {
    position: fixed;
    bottom: var(--youth-spacing-md);
    right: var(--youth-spacing-md);
    background: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    box-shadow: var(--youth-shadow-lg);
    max-width: 400px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.youth-notification-success {
    border-left: 4px solid var(--youth-success);
}

.youth-notification-error {
    border-left: 4px solid var(--youth-danger);
}

.youth-notification-info {
    border-left: 4px solid var(--youth-primary);
}

.youth-notification-warning {
    border-left: 4px solid var(--youth-warning);
}

/* Online Status Indicator */
.online-status-indicator {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    transition: var(--youth-transition);
    box-shadow: var(--youth-shadow-md);
}

.online-status-indicator.online {
    background-color: var(--youth-success);
    color: white;
    opacity: 0;
    pointer-events: none;
}

.online-status-indicator.offline {
    background-color: var(--youth-warning);
    color: white;
    opacity: 1;
    pointer-events: auto;
}

/* Show online indicator briefly when status changes */
.online-status-indicator.online.show {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* PWA Install Button */
#pwa-install-button {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--youth-primary);
    color: white;
    border: none;
    border-radius: var(--youth-radius-lg);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--youth-shadow-lg);
    z-index: 1000;
    transition: var(--youth-transition);
}

#pwa-install-button:hover {
    background-color: var(--youth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

#pwa-install-button:active {
    transform: translateY(0);
}

/* Notification Styles */
.youth-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-lg);
    z-index: 1001;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.youth-notification-success {
    background-color: var(--youth-success);
    color: white;
}

.youth-notification-error {
    background-color: var(--youth-danger);
    color: white;
}

.youth-notification-info {
    background-color: var(--youth-primary);
    color: white;
}

.youth-notification-warning {
    background-color: var(--youth-warning);
    color: white;
}

.youth-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.youth-notification .btn-link {
    background: none;
    border: none;
    color: white;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-left: 0.5rem;
}

.youth-notification .btn-link:hover {
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .online-status-indicator {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    #pwa-install-button {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .youth-notification {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
        font-size: 0.875rem;
    }
}


/* ===================================
   Search Styles
   =================================== */

.search-container {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  font-size: 1.125rem;
  border: 2px solid var(--border-color);
  border-radius: var(--youth-radius-lg);
  background: var(--card-bg);
  color: var(--text-color);
  transition: var(--youth-transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.2s;
}

.search-clear-btn:hover {
  color: var(--text-color);
}

.search-status {
  min-height: 1.5rem;
}

.search-loading {
  color: var(--text-muted);
  font-style: italic;
}

.search-count {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Popular Searches */
.popular-searches {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.popular-searches h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-button {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Search Results */
.search-results {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results-message {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.suggestions {
  margin-top: 2rem;
}

.suggestions p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* Result Groups */
.results-groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-group {
  margin-bottom: 1rem;
}

.result-group-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-count {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: normal;
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Result Cards */
.result-card {
  display: block;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s;
}

.result-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.result-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-color);
  flex: 1;
}

.result-title mark {
  background: var(--highlight-bg);
  color: var(--highlight-color);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
}

.result-type-badge {
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.result-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.result-excerpt mark {
  background: var(--highlight-bg);
  color: var(--highlight-color);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.result-meta span:not(:last-child)::after {
  content: '•';
  margin-left: 1rem;
  color: var(--border-color);
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-tags .tag {
  padding: 0.25rem 0.75rem;
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 12px;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-input {
    font-size: 1rem;
    padding: 0.875rem 2.5rem 0.875rem 0.875rem;
  }

  .result-card {
    padding: 1rem;
  }

  .result-title {
    font-size: 1.125rem;
  }

  .result-header {
    flex-direction: column;
    align-items: start;
  }

  .result-type-badge {
    align-self: flex-start;
  }
}


/* ========================================
   Devotionals Section Styles
   ======================================== */

/* Section Header */
.youth-section-header {
    padding: var(--youth-spacing-lg) 0;
    border-bottom: 2px solid var(--youth-border);
    margin-bottom: var(--youth-spacing-lg);
}

.youth-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.youth-page-subtitle {
    font-size: 1.125rem;
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

/* Streak Counter */
.streak-counter {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-lg);
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-md);
    margin-top: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-md);
}

.streak-icon {
    font-size: 3rem;
    line-height: 1;
}

.streak-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.streak-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.streak-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.streak-message {
    flex: 1;
    font-size: 1rem;
    opacity: 0.95;
}

/* Filters */
.devotionals-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--youth-spacing-md);
    padding: var(--youth-spacing-md) 0;
    margin-bottom: var(--youth-spacing-lg);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-sm);
}

.filter-label {
    font-weight: 600;
    color: var(--youth-text);
    font-size: 0.875rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    background-color: var(--youth-bg);
    color: var(--youth-text);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--youth-transition);
    min-width: 200px;
}

.filter-select:hover {
    border-color: var(--youth-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--youth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-stats {
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-sm);
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.stat-item strong {
    color: var(--youth-primary);
    font-weight: 700;
}

.stat-separator {
    color: var(--youth-border);
}

/* Devotionals List */
.devotionals-list {
    padding-bottom: var(--youth-spacing-xl);
}

.devotionals-groups {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-xl);
}

.devotional-series-group {
    margin-bottom: var(--youth-spacing-lg);
}

.series-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
    padding-bottom: var(--youth-spacing-sm);
    border-bottom: 3px solid var(--youth-primary);
    display: inline-block;
}

.devotionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--youth-spacing-md);
}

/* Devotional Card */
.devotional-card {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    overflow: clip;
    transition: var(--youth-transition);
    position: relative;
}

.devotional-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--youth-shadow-lg);
    border-color: var(--youth-primary);
}

.devotional-card.completed {
    border-color: var(--youth-success);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 0%, var(--youth-bg) 100%);
}

.devotional-link {
    display: block;
    padding: var(--youth-spacing-md);
    text-decoration: none;
    color: inherit;
}

.devotional-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--youth-spacing-sm);
}

.devotional-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.devotional-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--youth-primary);
}

.devotional-time {
    font-size: 0.75rem;
    color: var(--youth-text-secondary);
}

.devotional-status {
    display: flex;
    gap: 0.5rem;
}

.status-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.status-badge.completed {
    background-color: var(--youth-success);
    color: white;
}

.status-badge.favorite {
    background-color: var(--youth-warning);
    color: white;
}

.devotional-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
    line-height: 1.3;
}

.devotional-scripture {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--youth-spacing-sm);
    padding: 0.5rem;
    background-color: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-sm);
}

.scripture-icon {
    font-size: 1rem;
}

.scripture-ref {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--youth-primary);
}

.devotional-excerpt {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--youth-spacing-md);
}

.devotional-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--youth-spacing-sm);
    border-top: 1px solid var(--youth-border);
}

.devotional-author {
    font-size: 0.75rem;
    color: var(--youth-text-secondary);
    font-style: italic;
}

.devotional-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text-secondary);
    border-radius: var(--youth-radius-sm);
    font-weight: 500;
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: var(--youth-spacing-xl);
    color: var(--youth-text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--youth-border);
    border-top-color: var(--youth-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--youth-spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .youth-page-title {
        font-size: 1.75rem;
    }
    
    .streak-counter {
        flex-direction: column;
        text-align: center;
    }
    
    .streak-message {
        text-align: center;
    }
    
    .devotionals-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .devotionals-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .youth-page-title {
        font-size: 1.5rem;
    }
    
    .streak-icon {
        font-size: 2rem;
    }
    
    .streak-number {
        font-size: 1.5rem;
    }
}


/* ========================================
   Devotional Reader Styles
   ======================================== */

.devotional-reader {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--youth-spacing-lg) 0;
}

.devotional-reader-header {
    margin-bottom: var(--youth-spacing-xl);
    padding-bottom: var(--youth-spacing-lg);
    border-bottom: 2px solid var(--youth-border);
}

.devotional-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-md);
}

.series-badge,
.date-badge,
.time-badge {
    padding: 0.375rem 0.75rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.series-badge {
    background-color: var(--youth-primary);
    color: white;
}

.date-badge {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
}

.time-badge {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text-secondary);
}

.devotional-reader-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--youth-text);
    line-height: 1.2;
    margin-bottom: var(--youth-spacing-sm);
}

.devotional-author-info {
    font-size: 1rem;
    color: var(--youth-text-secondary);
    font-style: italic;
}

.devotional-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-top: var(--youth-spacing-md);
    flex-wrap: wrap;
}

.btn-favorite-active {
    background-color: var(--youth-warning);
    color: white;
    border-color: var(--youth-warning);
}

.btn-favorite-active:hover {
    background-color: #d97706;
}

/* Scripture Section */
.devotional-scripture-section {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-xl);
    border-radius: var(--youth-radius-lg);
    margin-bottom: var(--youth-spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-lg);
}

.scripture-icon-large {
    font-size: 4rem;
    line-height: 1;
    flex-shrink: 0;
}

.scripture-content {
    flex: 1;
}

.scripture-reference {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--youth-spacing-sm);
}

.scripture-text {
    font-size: 1.125rem;
    line-height: 1.7;
    font-style: italic;
    margin: 0;
    opacity: 0.95;
}

/* Main Content */
.devotional-content {
    margin-bottom: var(--youth-spacing-xl);
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--youth-text);
}

.content-text p {
    margin-bottom: var(--youth-spacing-md);
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Reflection Section */
.devotional-reflection {
    background-color: var(--youth-bg-secondary);
    padding: var(--youth-spacing-lg);
    border-radius: var(--youth-radius-lg);
    border-left: 4px solid var(--youth-primary);
    margin-bottom: var(--youth-spacing-xl);
}

.reflection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.reflection-intro {
    font-size: 1rem;
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

.reflection-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reflection-item {
    font-size: 1rem;
    color: var(--youth-text);
    padding: var(--youth-spacing-sm) 0;
    padding-left: var(--youth-spacing-lg);
    position: relative;
    line-height: 1.6;
}

.reflection-item::before {
    content: '💭';
    position: absolute;
    left: 0;
    top: var(--youth-spacing-sm);
}

.reflection-item:not(:last-child) {
    border-bottom: 1px solid var(--youth-border);
}

/* Tags Section */
.devotional-tags-section {
    margin-bottom: var(--youth-spacing-xl);
}

.tags-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--youth-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--youth-spacing-sm);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
}

.tag-large {
    padding: 0.5rem 1rem;
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--youth-border);
    transition: var(--youth-transition);
}

.tag-large:hover {
    border-color: var(--youth-primary);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Navigation */
.devotional-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--youth-spacing-md);
    padding-top: var(--youth-spacing-lg);
    border-top: 2px solid var(--youth-border);
    flex-wrap: wrap;
}

/* Responsive Design for Reader */
@media (max-width: 768px) {
    .devotional-reader-title {
        font-size: 2rem;
    }
    
    .devotional-scripture-section {
        flex-direction: column;
        text-align: center;
    }
    
    .scripture-icon-large {
        font-size: 3rem;
    }
    
    .content-text {
        font-size: 1rem;
    }
    
    .devotional-navigation {
        flex-direction: column;
    }
    
    .devotional-navigation .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .devotional-reader-title {
        font-size: 1.75rem;
    }
    
    .devotional-meta-info {
        flex-direction: column;
    }
    
    .devotional-actions {
        flex-direction: column;
    }
    
    .devotional-actions .btn {
        width: 100%;
    }
}


/* ========================================
   Online Status Indicator
   ======================================== */

.online-status-indicator {
    position: fixed;
    top: 80px;
    right: var(--youth-spacing-md);
    padding: 0.5rem 1rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
}

.online-status-indicator.online {
    background-color: var(--youth-success);
    color: white;
    opacity: 0;
    pointer-events: none;
}

.online-status-indicator.offline {
    background-color: var(--youth-danger);
    color: white;
    opacity: 1;
}

/* Show online indicator briefly when coming back online */
.online-status-indicator.online.show-briefly {
    opacity: 1;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

@media (max-width: 768px) {
    .online-status-indicator {
        top: 60px;
        right: var(--youth-spacing-sm);
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}


/* ===================================
   Questions & Answers Section Styles
   =================================== */

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-lg);
    background: var(--card-bg);
    color: var(--text-color);
    transition: var(--youth-transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--text-color);
}

/* Filter Container */
.filter-container {
    max-width: 600px;
    margin: 1rem auto 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-container label {
    font-weight: 600;
    color: var(--text-color);
}

.category-select {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-lg);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--youth-transition);
}

.category-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Submit CTA - modern gradient block */
.submit-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: var(--youth-radius-xl);
    text-align: center;
    margin: 2rem 0;
    box-shadow: var(--youth-shadow-md);
}

.submit-cta p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.submit-cta .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.submit-cta .btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Questions Grid (for popular questions) */
.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.question-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-xl);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--youth-transition);
    display: block;
    box-shadow: var(--youth-shadow-sm);
}

.question-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 8px 20px -4px rgba(0, 0, 0, 0.1);
}

.question-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.4;
}

/* Questions List (for search results and all questions) */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.question-item {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-xl);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--youth-transition);
    display: block;
    box-shadow: var(--youth-shadow-sm);
}

.question-item:hover {
    border-color: var(--primary-color);
    transform: translateX(6px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15), 0 4px 14px -2px rgba(0, 0, 0, 0.08);
}

.question-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--heading-color);
    line-height: 1.4;
}

.question-preview {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Question Meta */
.question-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--youth-primary-dark));
    color: white;
    border-radius: var(--youth-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--youth-shadow-sm);
}

.helpful-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Search Highlighting */
mark {
    background-color: #ffd700;
    color: #000;
    padding: 0 0.2em;
    border-radius: 2px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.no-results a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Section Headers */
.popular-questions h2,
.search-results h2,
.all-questions h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .questions-grid {
        grid-template-columns: 1fr;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-container label {
        text-align: left;
    }

    .submit-cta {
        padding: 1.5rem;
    }

    .submit-cta p {
        font-size: 1.125rem;
    }
}


/* ===================================
   Question Submission Form Styles
   =================================== */

/* Info Box - friendly callout */
.info-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(139, 92, 246, 0.06));
    border: 2px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--youth-radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--youth-shadow-sm);
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Crisis Alert */
.crisis-alert {
    background: #fff3cd;
    border: 3px solid #ff6b6b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    color: #000;
}

.crisis-alert h3 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.crisis-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.crisis-resource {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ff6b6b;
}

.crisis-resource strong {
    display: block;
    color: #d32f2f;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.crisis-resource p {
    margin: 0.5rem 0;
    color: #000;
}

.crisis-resource a {
    color: #d32f2f;
    font-weight: bold;
    text-decoration: underline;
}

.crisis-note {
    margin-top: 1rem;
    font-weight: 600;
    color: #d32f2f;
}

/* Submission Form */
.submission-form {
    max-width: 700px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-lg);
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    transition: var(--youth-transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.char-count {
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.field-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Error Messages */
.error-messages {
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.error-message {
    color: #c62828;
    margin: 0.5rem 0;
    font-weight: 600;
}

.error-message:first-child {
    margin-top: 0;
}

.error-message:last-child {
    margin-bottom: 0;
}

/* Success Message */
.success-message {
    background: #e8f5e9;
    border: 2px solid #4caf50;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.success-message h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #1b5e20;
    margin: 0.75rem 0;
}

.success-message .btn {
    margin-top: 1rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .crisis-resources {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .info-box,
    .crisis-alert {
        padding: 1.25rem;
    }
}


/* ===================================
   Question Detail Page Styles
   =================================== */

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-state p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.error-state h2 {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.error-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Question Detail */
.question-detail {
    max-width: 800px;
    margin: 0 auto;
}

/* Question Content - modern card */
.question-content {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--youth-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--youth-shadow-sm);
}

.question-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.question-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.question-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.question-header h1 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Answer Section */
.answer-section {
    margin-top: 2rem;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.answer-header h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 0;
}

.answer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.answer-author {
    font-weight: 600;
    color: var(--primary-color);
}

.answer-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.answer-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.answer-content p {
    margin-bottom: 1rem;
}

.answer-content strong {
    color: var(--heading-color);
    font-weight: 600;
}

/* Scripture References */
.scripture-references {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.scripture-references h3 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.scripture-card {
    background: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.scripture-card strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.scripture-card p {
    color: var(--text-color);
    font-style: italic;
    margin: 0;
    line-height: 1.6;
}

/* Helpful Section */
.helpful-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.helpful-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.btn-helpful {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-helpful:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-helpful:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-helpful.marked {
    background: #4caf50;
}

.helpful-count {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Related Questions */
.related-questions {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.related-questions h2 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: block;
    padding: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.related-item:hover {
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.related-item h3 {
    font-size: 1rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.related-item .category-badge {
    font-size: 0.75rem;
}

/* Question CTA */
.question-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
}

.question-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.question-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.question-cta .btn {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.question-cta .btn:hover {
    background: var(--bg-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .question-content {
        padding: 1.5rem;
    }

    .question-header h1 {
        font-size: 1.5rem;
    }

    .answer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .answer-meta {
        align-items: flex-start;
    }

    .related-questions,
    .question-cta {
        padding: 1.5rem;
    }
}


/* ========================================
   Events Calendar Styles
   ======================================== */

/* Events Controls */
.events-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-lg);
    gap: var(--youth-spacing-md);
    flex-wrap: wrap;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--youth-bg-secondary);
    padding: 0.25rem;
    border-radius: var(--youth-radius-md);
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: var(--youth-radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--youth-transition);
    color: var(--youth-text-secondary);
}

.view-toggle-btn.active {
    background: white;
    color: var(--youth-primary);
    box-shadow: var(--youth-shadow-sm);
}

.view-toggle-btn:hover {
    color: var(--youth-primary);
}

.events-filters {
    display: flex;
    gap: var(--youth-spacing-sm);
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    background: white;
    color: var(--youth-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--youth-transition);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--youth-primary);
    outline: none;
}

/* Calendar View */
.events-calendar-view {
    margin-bottom: var(--youth-spacing-xl);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--youth-spacing-md);
}

.calendar-event-card {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-md);
    cursor: pointer;
    transition: var(--youth-transition);
    border-left: 4px solid var(--youth-primary);
}

.calendar-event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--youth-shadow-lg);
}

/* Event Type Colors */
.event-type-worship_night {
    border-left-color: #8b5cf6;
}

.event-type-retreat {
    border-left-color: #ec4899;
}

.event-type-service_project {
    border-left-color: #10b981;
}

.event-type-social {
    border-left-color: #f59e0b;
}

.event-type-missions {
    border-left-color: #ef4444;
}

.event-type-class {
    border-left-color: #3b82f6;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    padding: 0.5rem;
    margin-bottom: var(--youth-spacing-sm);
    width: fit-content;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--youth-primary);
    letter-spacing: 0.05em;
}

.event-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    line-height: 1;
}

.event-card-content {
    margin-top: var(--youth-spacing-sm);
}

.event-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-card-type {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    margin-bottom: 0.25rem;
}

.event-card-time,
.event-card-location {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    margin-bottom: 0.25rem;
}

.event-card-capacity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.event-full-badge {
    background: var(--youth-danger);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: var(--youth-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* List View */
.events-list-view {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-md);
}

.event-list-item {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-md);
    display: flex;
    gap: var(--youth-spacing-md);
    border-left: 4px solid var(--youth-primary);
    transition: var(--youth-transition);
}

.event-list-item:hover {
    box-shadow: var(--youth-shadow-lg);
}

.event-list-date {
    flex-shrink: 0;
}

.event-list-content {
    flex: 1;
}

.event-list-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: var(--youth-spacing-sm);
    margin-bottom: 0.5rem;
}

.event-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--youth-text);
    line-height: 1.3;
}

.event-type-badge {
    background: var(--youth-bg-secondary);
    color: var(--youth-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--youth-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-list-description {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-sm);
    line-height: 1.6;
}

.event-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-sm);
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.event-list-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-top: var(--youth-spacing-sm);
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: var(--youth-spacing-xl);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-lg);
}

.no-events-message p {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .events-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-toggle-btn {
        flex: 1;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .event-list-item {
        flex-direction: column;
    }
    
    .event-list-header {
        flex-direction: column;
        align-items: start;
    }
}


/* ========================================
   Event Detail Page Styles
   ======================================== */

.event-detail {
    max-width: 900px;
    margin: 0 auto;
}

.event-detail-header {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-xl);
    border-radius: var(--youth-radius-xl);
    margin-bottom: var(--youth-spacing-lg);
    display: flex;
    gap: var(--youth-spacing-md);
    align-items: start;
}

.event-detail-date {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.event-detail-date .event-month {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.event-detail-date .event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-detail-title-section {
    flex: 1;
}

.event-detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    line-height: 1.2;
}

.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--youth-spacing-md);
    margin-bottom: var(--youth-spacing-lg);
}

.event-meta-card {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    box-shadow: var(--youth-shadow-sm);
    display: flex;
    align-items: center;
    gap: var(--youth-spacing-sm);
}

.meta-icon {
    font-size: 1.5rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    color: var(--youth-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.meta-value {
    font-size: 1rem;
    color: var(--youth-text);
    font-weight: 500;
}

.rsvp-status-banner {
    background: var(--youth-success);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-lg);
}

.event-full-banner {
    background: var(--youth-warning);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-lg);
}

.event-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-xl);
    flex-wrap: wrap;
}

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

.event-section {
    background: white;
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-sm);
}

.event-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
}

.event-description {
    color: var(--youth-text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.event-schedule {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-sm);
}

.schedule-item {
    display: flex;
    gap: var(--youth-spacing-md);
    padding: var(--youth-spacing-sm);
    border-left: 3px solid var(--youth-primary);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-sm);
}

.schedule-time {
    min-width: 120px;
    font-weight: 600;
    color: var(--youth-primary);
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
}

.schedule-activity {
    color: var(--youth-text);
    flex: 1;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--youth-text-secondary);
}

.event-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--youth-success);
    font-weight: 600;
}

.event-leaders {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.leader-badge {
    background: var(--youth-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--youth-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.event-info-box {
    background: var(--youth-bg-secondary);
    border-left: 4px solid var(--youth-primary);
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-sm);
}

.event-info-box p {
    margin: 0;
    color: var(--youth-text-secondary);
    line-height: 1.6;
}

.event-deadline-box {
    background: var(--youth-warning);
    color: white;
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-md);
    text-align: center;
    font-weight: 500;
}

.event-address {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--youth-spacing-md);
}

.modal-content {
    background: white;
    border-radius: var(--youth-radius-xl);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--youth-shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--youth-spacing-lg);
    border-bottom: 1px solid var(--youth-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--youth-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--youth-text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--youth-transition);
}

.modal-close:hover {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
}

.modal-body {
    padding: var(--youth-spacing-lg);
}

.form-group {
    margin-bottom: var(--youth-spacing-md);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--youth-text);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    font-size: 1rem;
    transition: var(--youth-transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--youth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    color: var(--youth-text-secondary);
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    justify-content: flex-end;
    margin-top: var(--youth-spacing-lg);
}

.loading-state,
.error-state {
    text-align: center;
    padding: var(--youth-spacing-xl);
}

.error-state h2 {
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
}

.error-state p {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-lg);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .event-detail-header {
        flex-direction: column;
    }
    
    .event-detail-date {
        align-self: flex-start;
    }
    
    .event-detail-title {
        font-size: 1.5rem;
    }
    
    .event-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .modal-content {
        margin: var(--youth-spacing-sm);
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* ========================================
   Alpine.js x-transition utilities
   (Tailwind replacement - for rotating banners, modals, etc.)
   ======================================== */
.transition {
    transition-property: color, background-color, border-color, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }
.ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
.duration-300 { transition-duration: 300ms; }
.duration-200 { transition-duration: 200ms; }
.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.transform { transform: translateZ(0); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }


/* ========================================
   Small Groups Styles
   ======================================== */

/* Small Groups Controls */
.small-groups-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: var(--primary-color);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Small Groups Grid */
.small-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .small-groups-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Group Card */
.small-group-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.small-group-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.small-group-card.group-full {
  opacity: 0.7;
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.group-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.group-type-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Group Status Bar */
.group-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.group-capacity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.capacity-icon {
  font-size: 1.1rem;
}

.group-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-open {
  background: #10b981;
  color: white;
}

.status-full {
  background: #ef4444;
  color: white;
}

/* Group Description */
.group-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Group Info Section */
.group-info-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
}

.group-info-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.info-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

/* Current Study */
.group-current-study {
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-left: 3px solid var(--primary-color);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.group-current-study strong {
  color: var(--primary-color);
}

/* Expectations List */
.group-expectations {
  font-size: 0.9rem;
}

.group-expectations strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.expectations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expectations-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.5;
}

.expectations-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Leader Contact */
.group-leader-contact {
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: 8px;
  font-size: 0.9rem;
}

.group-leader-contact strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Group Card Actions */
.group-card-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* Start Group Section */
.start-group-section {
  margin-top: 3rem;
}

.highlight-card {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.start-group-requirements {
  margin: 1.5rem 0;
}

.subsection-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.requirements-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.requirements-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.start-group-cta {
  margin-top: 2rem;
  text-align: center;
}

.cta-subtext {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta-subtext a {
  color: var(--primary-color);
  text-decoration: none;
}

.cta-subtext a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq-section {
  margin-top: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: clip;
}

.faq-question {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-primary);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* Group Info Banner (signup page) */
.group-info-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.group-info-content {
  max-width: 800px;
}

.group-info-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.group-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.group-info-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Sections */
.form-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-help-text {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.required-checkbox {
  font-weight: 600;
}

/* Consent Box */
.consent-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
}

.consent-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column-reverse;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

/* Success Message Overlay */
.success-message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.success-message-box {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 3rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.success-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .success-actions {
    flex-direction: column;
  }
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.no-results-message p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}


/* Testimonies Section */
.youth-testimonies {
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    background-color: var(--youth-bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-lg);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--youth-text);
    margin: 0;
}

.view-all-link {
    color: var(--youth-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--youth-transition);
}

.view-all-link:hover {
    color: var(--youth-primary-dark);
    text-decoration: underline;
}

.testimonies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
}

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

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

.testimony-card {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-xl);
    padding: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
    position: relative;
}

.testimony-card:hover {
    box-shadow: var(--youth-shadow-glow);
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimony-header {
    margin-bottom: var(--youth-spacing-sm);
}

.testimony-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    border-radius: var(--youth-radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--youth-shadow-sm);
}

.testimony-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
    line-height: 1.3;
}

.testimony-excerpt {
    color: var(--youth-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--youth-spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: clip;
}

.testimony-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--youth-spacing-sm);
    border-top: 1px solid var(--youth-border);
    margin-bottom: var(--youth-spacing-sm);
}

.testimony-author {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    font-style: italic;
}

.testimony-encourage-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    color: var(--youth-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--youth-transition);
    transition: var(--youth-transition);
}

.testimony-encourage-btn:hover:not(:disabled) {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--youth-accent);
    color: var(--youth-accent);
}

.testimony-encourage-btn:disabled,
.testimony-encourage-btn.encouraged {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--youth-accent);
    color: var(--youth-accent);
}

.testimony-link {
    color: var(--youth-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--youth-transition);
}

.testimony-link:hover {
    color: var(--youth-primary-dark);
    text-decoration: underline;
}

/* Notification Styles */
.youth-notification {
    position: fixed;
    top: var(--youth-spacing-md);
    right: var(--youth-spacing-md);
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-lg);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.youth-notification-success {
    background: var(--youth-success);
    color: white;
}

.youth-notification-error {
    background: var(--youth-danger);
    color: white;
}

.youth-notification-info {
    background: var(--youth-primary);
    color: white;
}

.youth-notification-warning {
    background: var(--youth-warning);
    color: white;
}

.notification-content {
    font-weight: 600;
}

/* ============================================
   Leaders' Corner Styles
   ============================================ */

/* Password Protection Screen */
.leaders-password-screen {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--youth-spacing-lg);
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
}

.password-form-wrapper {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-xl);
    padding: var(--youth-spacing-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--youth-shadow-lg);
}

.password-form-header {
    text-align: center;
    margin-bottom: var(--youth-spacing-lg);
}

.password-icon {
    font-size: 3rem;
    margin-bottom: var(--youth-spacing-sm);
}

.password-form-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.password-form-header p {
    color: var(--youth-text-secondary);
    font-size: 1rem;
}

.password-form {
    margin-bottom: var(--youth-spacing-lg);
}

.password-form .form-group {
    margin-bottom: var(--youth-spacing-md);
}

.password-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--youth-spacing-xs);
    color: var(--youth-text);
}

.password-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-md);
    font-size: 1rem;
    transition: var(--youth-transition);
}

.password-form .form-input:focus {
    outline: none;
    border-color: var(--youth-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.password-form .error-message {
    background: #fee2e2;
    color: var(--youth-danger);
    padding: var(--youth-spacing-sm);
    border-radius: var(--youth-radius-md);
    margin-bottom: var(--youth-spacing-md);
    font-size: 0.875rem;
}

.password-form .btn-full-width {
    width: 100%;
}

.password-help {
    text-align: center;
    padding-top: var(--youth-spacing-lg);
    border-top: 1px solid var(--youth-border);
}

.password-help p {
    margin-bottom: var(--youth-spacing-xs);
    color: var(--youth-text-secondary);
    font-size: 0.875rem;
}

.password-help a {
    color: var(--youth-primary);
    text-decoration: none;
    font-weight: 600;
}

.password-help a:hover {
    text-decoration: underline;
}

/* Leaders Hero */
.leaders-hero {
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    color: white;
    padding: var(--youth-spacing-xl) 0;
}

.leaders-hero .youth-hero-title {
    color: white;
}

.leaders-hero .youth-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Leaders Overview */
.leaders-overview {
    padding: var(--youth-spacing-xl) 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--youth-spacing-xl);
    color: var(--youth-text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* Volunteer Schedule */
.leaders-schedule {
    padding: var(--youth-spacing-xl) 0;
    background: var(--youth-bg-secondary);
}

.schedule-wrapper {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-md);
}

.schedule-header {
    margin-bottom: var(--youth-spacing-lg);
    text-align: center;
}

.schedule-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.schedule-header p {
    color: var(--youth-text-secondary);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-md);
}

.schedule-item {
    display: flex;
    gap: var(--youth-spacing-md);
    padding: var(--youth-spacing-md);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    border-left: 4px solid var(--youth-primary);
    transition: var(--youth-transition);
}

.schedule-item:hover {
    box-shadow: var(--youth-shadow-md);
    transform: translateY(-2px);
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: var(--youth-spacing-sm);
    background: var(--youth-primary);
    color: white;
    border-radius: var(--youth-radius-md);
}

.schedule-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.schedule-month {
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.schedule-details {
    flex: 1;
}

.schedule-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.schedule-details p {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
    margin-bottom: 0.25rem;
}

.schedule-role {
    font-weight: 600;
    color: var(--youth-primary);
}

.schedule-actions {
    display: flex;
    align-items: center;
}

.schedule-footer {
    margin-top: var(--youth-spacing-lg);
    padding-top: var(--youth-spacing-lg);
    border-top: 1px solid var(--youth-border);
    text-align: center;
}

.schedule-footer p {
    margin-bottom: var(--youth-spacing-md);
    color: var(--youth-text-secondary);
}

/* Content Moderation */
.leaders-moderation {
    padding: var(--youth-spacing-xl) 0;
}

.moderation-wrapper {
    background: var(--youth-bg);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-lg);
    box-shadow: var(--youth-shadow-md);
}

.moderation-header {
    margin-bottom: var(--youth-spacing-lg);
    text-align: center;
}

.moderation-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.moderation-header p {
    color: var(--youth-text-secondary);
}

.moderation-tabs {
    display: flex;
    gap: var(--youth-spacing-sm);
    margin-bottom: var(--youth-spacing-lg);
    border-bottom: 2px solid var(--youth-border);
    overflow-x: auto;
}

.tab-button {
    padding: var(--youth-spacing-sm) var(--youth-spacing-md);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--youth-text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--youth-transition);
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--youth-primary);
}

.tab-button.tab-active {
    color: var(--youth-primary);
    border-bottom-color: var(--youth-primary);
}

.moderation-content {
    min-height: 300px;
}

.moderation-list {
    display: flex;
    flex-direction: column;
    gap: var(--youth-spacing-md);
}

.no-items {
    text-align: center;
    padding: var(--youth-spacing-xl);
    color: var(--youth-text-secondary);
    font-style: italic;
}

.moderation-item {
    padding: var(--youth-spacing-md);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    border-left: 4px solid var(--youth-primary);
}

.moderation-item.flagged {
    border-left-color: var(--youth-danger);
    background: #fef2f2;
}

.moderation-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-sm);
}

.moderation-date {
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.flag-badge {
    background: var(--youth-danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--youth-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.moderation-item-content {
    margin-bottom: var(--youth-spacing-md);
}

.moderation-item-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-xs);
}

.moderation-item-content p {
    color: var(--youth-text);
    line-height: 1.6;
}

.moderation-item-meta {
    display: flex;
    gap: var(--youth-spacing-md);
    margin-bottom: var(--youth-spacing-md);
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.moderation-item-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background: var(--youth-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--youth-danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--youth-warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
    }
    
    .schedule-date {
        align-self: flex-start;
    }
    
    .schedule-actions {
        justify-content: flex-start;
    }
    
    .moderation-tabs {
        flex-wrap: wrap;
    }
    
    .moderation-item-actions {
        flex-direction: column;
    }
    
    .moderation-item-actions .btn {
        width: 100%;
    }
}


/* ========================================
   LEADERS' RESOURCES SECTION STYLES
   ======================================== */

/* Leaders Resources Section */
.leaders-resources-section {
    padding: var(--youth-spacing-xl) 0;
    background: var(--youth-bg);
}

.leaders-resources-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
    text-align: center;
}

.leaders-resources-section .section-intro {
    text-align: center;
    color: var(--youth-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--youth-spacing-xl);
    font-size: 1.1rem;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--youth-spacing-lg);
    padding: 0 var(--youth-spacing-md);
}

.resource-card {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-md);
}

.resource-icon {
    font-size: 2rem;
}

.resource-category {
    background: var(--youth-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.resource-description {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
    flex-grow: 1;
}

.resource-meta {
    display: flex;
    gap: var(--youth-spacing-md);
    margin-bottom: var(--youth-spacing-md);
    font-size: 0.875rem;
    color: var(--youth-text-secondary);
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resource-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
}

/* Training Materials */
.training-categories {
    padding: 0 var(--youth-spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.training-category {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.training-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-md);
    padding-bottom: var(--youth-spacing-sm);
    border-bottom: 2px solid var(--youth-primary);
}

.training-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.training-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--youth-spacing-md);
    border-bottom: 1px solid var(--youth-border);
    gap: var(--youth-spacing-md);
}

.training-item:last-child {
    border-bottom: none;
}

.training-item-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: 0.25rem;
}

.training-item-content p {
    color: var(--youth-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Safeguarding Section */
.safeguarding-section {
    background: var(--youth-bg-secondary);
}

.safeguarding-alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: var(--youth-spacing-lg);
    border-radius: var(--youth-radius);
    margin: 0 var(--youth-spacing-md) var(--youth-spacing-xl);
    display: flex;
    gap: var(--youth-spacing-md);
    align-items: flex-start;
}

.alert-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.alert-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.alert-content p {
    margin: 0;
    opacity: 0.95;
}

.safeguarding-policies {
    padding: 0 var(--youth-spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.policy-card {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--youth-spacing-md);
    flex-wrap: wrap;
    gap: var(--youth-spacing-sm);
}

.policy-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin: 0;
}

.policy-badge {
    background: var(--youth-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.policy-description {
    color: var(--youth-text-secondary);
    margin-bottom: var(--youth-spacing-md);
}

.policy-highlights {
    background: var(--youth-bg-secondary);
    padding: var(--youth-spacing-md);
    border-radius: var(--youth-radius);
    margin-bottom: var(--youth-spacing-md);
}

.policy-highlights h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.policy-highlights ul {
    margin: 0;
    padding-left: var(--youth-spacing-lg);
}

.policy-highlights li {
    color: var(--youth-text-secondary);
    margin-bottom: 0.5rem;
}

.policy-actions {
    display: flex;
    gap: var(--youth-spacing-sm);
    flex-wrap: wrap;
}

/* Staff Contact Section */
.contact-section {
    background: var(--youth-bg);
}

.staff-contacts {
    padding: 0 var(--youth-spacing-md);
    max-width: 1200px;
    margin: 0 auto var(--youth-spacing-xl);
}

.staff-card {
    background: var(--youth-card-bg);
    border-radius: var(--youth-radius);
    padding: var(--youth-spacing-lg);
    margin-bottom: var(--youth-spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: var(--youth-spacing-lg);
    align-items: flex-start;
}

.staff-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.staff-initials {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.staff-info {
    flex-grow: 1;
}

.staff-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: 0.25rem;
}

.staff-role {
    color: var(--youth-primary);
    font-weight: 600;
    margin-bottom: var(--youth-spacing-md);
}

.staff-contact-details {
    margin-bottom: var(--youth-spacing-sm);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-detail.emergency {
    color: #ff6b6b;
    font-weight: 600;
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-detail a {
    color: var(--youth-text);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--youth-primary);
    text-decoration: underline;
}

.staff-availability {
    color: var(--youth-text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Emergency Contacts */
.emergency-contacts {
    padding: var(--youth-spacing-xl) var(--youth-spacing-md);
    background: var(--youth-bg-secondary);
    border-radius: var(--youth-radius);
    margin: 0 var(--youth-spacing-md);
}

.emergency-contacts h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-lg);
    text-align: center;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--youth-spacing-lg);
}

.emergency-card {
    background: var(--youth-card-bg);
    padding: var(--youth-spacing-lg);
    border-radius: var(--youth-radius);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.emergency-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--youth-text);
    margin-bottom: var(--youth-spacing-sm);
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: var(--youth-spacing-md) 0;
}

.emergency-number a {
    color: #ff6b6b;
    text-decoration: none;
}

.emergency-number a:hover {
    text-decoration: underline;
}

.emergency-card p {
    color: var(--youth-text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .training-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .staff-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .staff-contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .policy-actions {
        flex-direction: column;
    }
    
    .policy-actions .btn {
        width: 100%;
    }
    
    .resource-actions {
        flex-direction: column;
    }
    
    .resource-actions .btn {
        width: 100%;
    }
    
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   Profile Page Styles
   ======================================== */

/* Youth Card */
.youth-card {
    background: var(--youth-bg);
    border: 2px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-md);
    transition: var(--youth-transition);
}

.youth-card:hover {
    box-shadow: var(--youth-shadow-lg);
}

/* Badge Card */
.badge-card {
    transition: var(--youth-transition);
}

.badge-card:hover {
    transform: scale(1.05);
}

/* Font Size Preferences */
body.font-small {
    font-size: 14px;
}

body.font-small .youth-page-title {
    font-size: 1.75rem;
}

body.font-small .section-title {
    font-size: 1.75rem;
}

body.font-medium {
    font-size: 16px;
}

body.font-large {
    font-size: 18px;
}

body.font-large .youth-page-title {
    font-size: 2.25rem;
}

body.font-large .section-title {
    font-size: 2.25rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--youth-bg-secondary);
    border-radius: var(--youth-radius-md);
    overflow: clip;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--youth-primary) 0%, var(--youth-secondary) 100%);
    transition: width 0.5s ease;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--youth-border);
    transition: var(--youth-transition);
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--youth-transition);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--youth-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Responsive Profile Page */
@media (max-width: 768px) {
    .youth-card {
        padding: 1rem;
    }
    
    .badge-card {
        padding: 0.75rem;
    }
}

/* ========================================
   Section context tuning (prayer, media, serve, search, testimonies)
   Ensures Tailwind-styled pages use youth tokens and feel consistent
   ======================================== */

/* Prayer: calm, reflective – main content uses youth spacing and text colors */
.youth-main .max-w-4xl,
.youth-main .max-w-5xl,
.youth-main .max-w-7xl {
    color: var(--youth-text);
}

.youth-main .text-gray-900 { color: var(--youth-text) !important; }
.youth-main .text-gray-600 { color: var(--youth-text-secondary) !important; }
.youth-main .text-gray-400 { color: var(--youth-text-secondary) !important; }
.youth-main .text-purple-600 { color: var(--youth-primary) !important; }
.youth-main .hover\:text-purple-600:hover { color: var(--youth-primary-dark) !important; }

.dark-mode .youth-main .text-white { color: var(--youth-text) !important; }
.dark-mode .youth-main .text-gray-300 { color: var(--youth-text-secondary) !important; }
.dark-mode .youth-main .dark\:text-white { color: var(--youth-text) !important; }
.dark-mode .youth-main .dark\:text-gray-300 { color: var(--youth-text-secondary) !important; }
.dark-mode .youth-main .dark\:text-gray-400 { color: var(--youth-text-secondary) !important; }
.dark-mode .youth-main .dark\:text-purple-400 { color: var(--youth-primary) !important; }

/* Media / Prayer / Serve / Testimonies: nav bar uses youth tokens in dark mode */
.dark-mode nav.bg-white {
    background: var(--youth-bg) !important;
    border-color: var(--youth-border);
}

.dark-mode .youth-main .bg-white {
    background: var(--youth-bg-secondary) !important;
}

.dark-mode .youth-main .dark\:bg-gray-800 {
    background: var(--youth-bg-secondary) !important;
}

/* Serve: strong CTA buttons */
.youth-main a.bg-purple-600,
.youth-main .bg-purple-600 {
    background: linear-gradient(135deg, var(--youth-primary), var(--youth-primary-dark)) !important;
    color: white !important;
    border-radius: var(--youth-radius-lg);
    box-shadow: var(--youth-shadow-sm);
}

.youth-main a.bg-purple-600:hover,
.youth-main .bg-purple-600:hover {
    box-shadow: var(--youth-shadow-glow);
}

/* Search: container and header use youth background in dark mode */
.dark-mode .youth-container {
    background-color: var(--youth-bg);
}

.dark-mode .youth-header {
    background: var(--youth-bg-secondary);
    border-color: var(--youth-border);
}

/* === youth/css/youth-dark.css === */
/* Youth Section - Dark Mode Styles */
/* Optimized for reduced eye strain and modern aesthetics */
/* WCAG AA Compliant - All text meets 4.5:1 contrast ratio minimum */

/* In-site dark mode: driven by .dark-mode class, not device preference */
html.dark-mode,
.dark-mode {
    color-scheme: dark;
}

.dark-mode {
    /* Dark mode color palette - WCAG AA Compliant */
    --youth-bg: #0f172a;              /* Slate 900 - Deep background */
    --youth-bg-secondary: #1e293b;    /* Slate 800 - Card backgrounds */
    --youth-text: #f1f5f9;            /* Slate 100 - Primary text (15.8:1 contrast) */
    --youth-text-secondary: #cbd5e1;  /* Slate 300 - Secondary text (9.8:1 contrast) */
    --youth-border: #334155;          /* Slate 700 - Borders */

    /* Aliases so Q&A/forms use correct dark values (no bleed from light) */
    --primary-color: #818cf8;
    --primary-color-dark: #6366f1;
    --secondary-color: #a78bfa;
    --card-bg: #1e293b;
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --heading-color: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: #334155;
    
    /* Adjusted primary colors for dark mode - Enhanced visibility */
    --youth-primary: #818cf8;         /* Indigo 400 - Primary actions */
    --youth-primary-dark: #6366f1;    /* Indigo 500 - Hover states */
    --youth-secondary: #a78bfa;       /* Violet 400 - Secondary actions */
    --youth-accent: #f472b6;          /* Pink 400 - Accent elements */
    
    /* Success, warning, danger colors - Dark mode optimized */
    --youth-success: #34d399;         /* Emerald 400 */
    --youth-warning: #fbbf24;         /* Amber 400 */
    --youth-danger: #f87171;          /* Red 400 */
    
    /* Shadows for dark mode - modern, layered */
    --youth-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.25), 0 1px 2px -1px rgba(0, 0, 0, 0.2);
    --youth-shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.35), 0 2px 6px -2px rgba(0, 0, 0, 0.25);
    --youth-shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.4), 0 4px 8px -2px rgba(0, 0, 0, 0.2);
    --youth-shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.5);
    --youth-shadow-glow: 0 0 0 1px rgba(129, 140, 248, 0.2), 0 4px 14px -2px rgba(129, 140, 248, 0.15);
    /* Design token overrides (for dashboard and components using --color-*) */
    --color-background: #0f172a;
    --color-surface: #1e293b;
    --color-surface-elevated: #334155;
    --color-text-primary: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-border: #334155;
    --color-border-hover: #475569;
    --color-divider: #1e293b;
    --color-hover-overlay: rgba(255, 255, 255, 0.05);
    --color-active-overlay: rgba(255, 255, 255, 0.1);
}

/* Apply dark mode to body and main content */
.dark-mode body,
.dark-mode .youth-main,
.dark-mode .main-content {
    background-color: var(--youth-bg);
    color: var(--youth-text);
}

/* Standalone youth pages: nav, footer, theme toggle (no bleed) - modern dark */
.dark-mode .youth-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--youth-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-mode .youth-nav .nav-logo {
    color: var(--youth-primary);
}

.dark-mode .youth-nav .nav-links a {
    color: var(--youth-text);
}

.dark-mode .youth-nav .nav-links a:hover,
.dark-mode .youth-nav .nav-links a.active {
    color: var(--youth-primary);
    background: rgba(129, 140, 248, 0.15);
}

.dark-mode .youth-footer {
    background-color: var(--youth-bg-secondary);
    border-top-color: var(--youth-border);
    color: var(--youth-text-secondary);
}

.dark-mode .youth-footer .footer-links a {
    color: var(--youth-text-secondary);
}

.dark-mode .youth-footer .footer-links a:hover {
    color: var(--youth-primary);
}

.dark-mode .theme-toggle-container .theme-toggle-btn {
    background: var(--youth-bg-secondary);
    border-color: var(--youth-border);
}

.dark-mode .theme-toggle-container .theme-toggle-btn:hover {
    background: var(--youth-primary);
    border-color: var(--youth-primary);
    color: white;
    box-shadow: var(--youth-shadow-glow);
}

/* Mobile bottom nav - dark mode */
.dark-mode .youth-mobile-bottom-nav {
    background: rgba(15, 23, 42, 0.95);
    border-top-color: var(--youth-border);
    box-shadow: 0 -4px 12px -2px rgba(0, 0, 0, 0.4);
}

.dark-mode .youth-mobile-bottom-nav__item {
    color: var(--youth-text-secondary);
}

.dark-mode .youth-mobile-bottom-nav__item:hover {
    background: var(--youth-bg-secondary);
}

.dark-mode .youth-mobile-bottom-nav__item.is-active {
    color: var(--youth-primary);
}

/* Q&A: question cards, lists, badges, forms in dark mode */
.dark-mode .question-card,
.dark-mode .question-item,
.dark-mode .question-content,
.dark-mode .related-questions,
.dark-mode .related-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .question-card h3,
.dark-mode .question-item h3,
.dark-mode .question-content h1,
.dark-mode .answer-header h2,
.dark-mode .related-questions h2,
.dark-mode .related-item h3 {
    color: var(--heading-color);
}

.dark-mode .question-preview,
.dark-mode .question-date,
.dark-mode .answer-date,
.dark-mode .helpful-count {
    color: var(--text-muted);
}

.dark-mode .section-header {
    border-bottom-color: var(--youth-primary);
}

.dark-mode .section-header::after {
    background: linear-gradient(90deg, var(--youth-primary), var(--youth-secondary));
}

.dark-mode .section-header h1,
.dark-mode .section-header p {
    color: var(--youth-text);
}

.dark-mode .section-header p {
    color: var(--youth-text-secondary);
}

.dark-mode .info-box {
    background: var(--card-bg);
    border-color: var(--youth-primary);
}

.dark-mode .info-box h3 {
    color: var(--youth-primary);
}

.dark-mode .info-box li {
    color: var(--text-color);
}

.dark-mode .loading-state,
.dark-mode .error-state {
    color: var(--youth-text);
}

.dark-mode .breadcrumb a,
.dark-mode .breadcrumb span {
    color: var(--youth-text-secondary);
}

.dark-mode .question-cta {
    background: linear-gradient(135deg, var(--youth-primary), var(--youth-secondary));
}

.dark-mode .form-actions .btn-secondary {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

.dark-mode .form-actions .btn-secondary:hover {
    background: var(--youth-border);
}

.dark-mode .success-message {
    background: var(--card-bg);
    border: 2px solid var(--youth-success);
    color: var(--text-color);
}

.dark-mode .success-message h3 {
    color: var(--youth-success);
}

/* Hero section in dark mode */
.dark-mode .youth-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Quick access section – subtle depth in dark */
.dark-mode .youth-quick-access {
    background-color: var(--youth-bg-secondary);
}

/* Cards in dark mode */
.dark-mode .quick-access-card {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
    border-color: var(--youth-border);
}

.dark-mode .quick-access-card:hover {
    border-color: var(--youth-primary);
    box-shadow: 0 10px 15px -3px rgba(129, 140, 248, 0.3);
}

.dark-mode .quick-access-card h3 {
    color: var(--youth-text);
}

.dark-mode .quick-access-card p {
    color: var(--youth-text-secondary);
}

/* App-icon grid in dark mode */
.dark-mode .youth-app-icon {
    color: var(--youth-text);
}

.dark-mode .youth-app-icon__glyph {
    background: var(--youth-bg-secondary);
    box-shadow: var(--youth-shadow-md);
}

.dark-mode .youth-app-icon:hover .youth-app-icon__glyph {
    background: var(--youth-border);
    box-shadow: 0 10px 15px -3px rgba(129, 140, 248, 0.2);
}

.dark-mode .youth-app-icon__label {
    color: var(--youth-text);
}

/* Devotional navigation in dark mode */
.dark-mode .devotional-navigation {
    background-color: var(--youth-bg-secondary);
    border: 1px solid var(--youth-border);
    border-radius: var(--youth-radius-lg);
    padding: var(--youth-spacing-md);
    margin-top: var(--youth-spacing-lg);
}

.dark-mode .devotional-navigation .btn {
    background-color: var(--youth-bg);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

.dark-mode .devotional-navigation .btn:hover {
    background-color: var(--youth-primary);
    color: white;
}

.dark-mode .devotional-navigation .btn-primary {
    background-color: var(--youth-primary);
    color: white;
}

.dark-mode .devotional-navigation .btn-primary:hover {
    background-color: var(--youth-primary-dark);
}

.dark-mode .devotional-navigation .btn-secondary {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
}

.dark-mode .devotional-navigation .btn-secondary:hover {
    background-color: var(--youth-border);
}

.dark-mode .devotional-navigation .btn-outline {
    background-color: transparent;
    color: var(--youth-text-secondary);
    border: 1px solid var(--youth-border);
}

.dark-mode .devotional-navigation .btn-outline:hover {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
}

/* Devotionals index: topic section and title in dark mode */
.dark-mode .devotional-topic-group {
    border-top-color: var(--youth-border);
}

.dark-mode .topic-title {
    color: var(--youth-text, #f1f5f9);
    border-bottom-color: var(--youth-primary, #818cf8);
}

/* Banner container in dark mode */
.dark-mode .banner-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
}

/* Banner content - ensure text is visible in dark mode */
.dark-mode .banner-slide h2,
.dark-mode .banner-slide p {
    color: var(--youth-text);
}

.dark-mode .banner-controls button {
    color: var(--youth-text);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .banner-controls button:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Theme toggle in dark mode */
.dark-mode .theme-toggle-btn {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.3);
}

.dark-mode .theme-toggle-btn:hover {
    background: rgba(30, 41, 59, 1);
}

/* Buttons in dark mode */
.dark-mode .btn-primary {
    background-color: var(--youth-primary);
    color: var(--youth-bg);
}

.dark-mode .btn-primary:hover {
    background-color: var(--youth-primary-dark);
}

.dark-mode .btn-secondary {
    background-color: var(--youth-secondary);
    color: var(--youth-bg);
}

.dark-mode .btn-secondary:hover {
    background-color: #9333ea;
}

/* Notifications in dark mode */
.dark-mode .youth-notification {
    background: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

/* Section titles in dark mode */
.dark-mode .section-title {
    color: var(--youth-text);
}

/* Focus styles for dark mode */
.dark-mode *:focus-visible {
    outline-color: var(--youth-primary);
}

/* Ensure proper contrast for accessibility (WCAG AA) */
/* Primary text: 15.8:1 contrast ratio */
/* Secondary text: 9.8:1 contrast ratio */
/* Links: 7.2:1 contrast ratio */
.dark-mode a {
    color: var(--youth-primary);
}

.dark-mode a:hover {
    color: var(--youth-primary-dark);
}

/* Form elements in dark mode */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border-color: var(--youth-border);
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
    color: var(--youth-text-secondary);
    opacity: 0.7;
}

.dark-mode input:focus,
.dark-mode textarea:focus,
.dark-mode select:focus {
    border-color: var(--youth-primary);
    outline-color: var(--youth-primary);
}

/* Header and footer in dark mode */
.dark-mode .site-header {
    background-color: var(--youth-bg-secondary);
    border-bottom: 1px solid var(--youth-border);
}

.dark-mode .site-footer {
    background-color: var(--youth-bg-secondary);
    border-top: 1px solid var(--youth-border);
    color: var(--youth-text);
}

.dark-mode .nav-link {
    color: var(--youth-text);
}

.dark-mode .nav-link:hover {
    color: var(--youth-primary);
}

/* Breadcrumb in dark mode */
.dark-mode .breadcrumb-bar {
    background-color: var(--youth-bg-secondary);
    border-bottom: 1px solid var(--youth-border);
}

.dark-mode .breadcrumb a {
    color: var(--youth-text-secondary);
}

.dark-mode .breadcrumb a:hover {
    color: var(--youth-primary);
}

.dark-mode .breadcrumb-current {
    color: var(--youth-text);
}

/* Smooth transition when switching themes */
body,
.youth-main,
.quick-access-card,
.banner-container,
.theme-toggle-btn,
.site-header,
.site-footer,
input,
textarea,
select {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Loading states in dark mode */
.dark-mode .loading {
    opacity: 0.5;
}

/* Skeleton screens in dark mode */
.dark-mode .skeleton {
    background: linear-gradient(
        90deg,
        var(--youth-bg-secondary) 0%,
        var(--youth-border) 50%,
        var(--youth-bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Code blocks in dark mode */
.dark-mode code,
.dark-mode pre {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

/* Tables in dark mode */
.dark-mode table {
    border-color: var(--youth-border);
}

.dark-mode th {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
}

.dark-mode td {
    border-color: var(--youth-border);
    color: var(--youth-text);
}

.dark-mode tr:hover {
    background-color: var(--youth-bg-secondary);
}

/* Modal/Dialog in dark mode */
.dark-mode .modal,
.dark-mode .dialog {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

.dark-mode .modal-overlay {
    background-color: rgba(15, 23, 42, 0.8);
}

/* Dividers in dark mode */
.dark-mode hr {
    border-color: var(--youth-border);
}

/* Badges and tags in dark mode */
.dark-mode .badge,
.dark-mode .tag {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

/* Tooltips in dark mode */
.dark-mode .tooltip {
    background-color: var(--youth-bg-secondary);
    color: var(--youth-text);
    border: 1px solid var(--youth-border);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .dark-mode *,
    .dark-mode *::before,
    .dark-mode *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dark-mode {
        --youth-bg: #000000;
        --youth-bg-secondary: #1a1a1a;
        --youth-text: #ffffff;
        --youth-border: #666666;
    }
    
    .dark-mode .quick-access-card {
        border-width: 3px;
    }
}

/* Color scheme preference detection */
@media (prefers-color-scheme: dark) {
    /* These styles apply if user hasn't manually toggled and prefers dark mode */
    /* The Alpine.js component will handle the initial state */
}

/* Dark Mode - Online Status and Notifications */
.dark-mode .online-status-indicator.online {
    background-color: var(--youth-success);
}

.dark-mode .online-status-indicator.offline {
    background-color: var(--youth-warning);
}

.dark-mode #pwa-install-button {
    background-color: var(--youth-primary);
}

.dark-mode #pwa-install-button:hover {
    background-color: var(--youth-primary-dark);
}

.dark-mode .youth-notification {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}


/* ===================================
   Search Page & Container Dark Mode
   =================================== */

.dark-mode .youth-container {
  background-color: var(--youth-bg);
  color: var(--youth-text);
}

.dark-mode .youth-header {
  background: var(--youth-bg-secondary);
  border-color: var(--youth-border);
  color: var(--youth-text);
}

.dark-mode .youth-back-link {
  color: var(--youth-primary);
}

/* ===================================
   Search Dark Mode Styles
   =================================== */

.dark-mode .search-input {
  background: var(--youth-bg-secondary);
  border-color: var(--youth-border);
  color: var(--youth-text);
}

.dark-mode .search-input:focus {
  border-color: var(--youth-primary);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

.dark-mode .tag-button {
  background: var(--youth-bg-secondary);
  border-color: var(--youth-border);
  color: var(--youth-text);
}

.dark-mode .tag-button:hover {
  background: var(--youth-primary);
  color: var(--youth-bg);
}

.dark-mode .result-card {
  background: var(--youth-bg-secondary);
  border-color: var(--youth-border);
  color: var(--youth-text);
}

.dark-mode .result-card:hover {
  border-color: var(--youth-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .result-title mark,
.dark-mode .result-excerpt mark {
  background: rgba(251, 191, 36, 0.35);
  color: var(--youth-warning);
}

.dark-mode .result-tags .tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--youth-text-secondary);
}

.dark-mode .popular-searches h2,
.dark-mode .result-group-title,
.dark-mode .search-loading,
.dark-mode .search-count,
.dark-mode .no-results-message {
  color: var(--youth-text);
}

.dark-mode .search-container {
  color: var(--youth-text-secondary);
}


/* ========================================
   Small Groups Dark Mode Styles
   ======================================== */

.dark-mode .small-group-card {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border-color);
}

.dark-mode .small-group-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dark-mode .group-status-bar,
.dark-mode .group-info-section,
.dark-mode .group-leader-contact {
  background: var(--dark-bg-primary);
}

.dark-mode .filter-select,
.dark-mode .form-input {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border-color);
  color: var(--dark-text-primary);
}

.dark-mode .filter-select:hover,
.dark-mode .form-input:focus {
  border-color: var(--primary-color);
}

.dark-mode .form-section {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border-color);
}

.dark-mode .consent-box {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.dark-mode .faq-item {
  background: var(--dark-bg-secondary);
  border-color: var(--dark-border-color);
}

.dark-mode .faq-question:hover {
  background: var(--dark-bg-primary);
}

.dark-mode .success-message-box {
  background: var(--dark-bg-secondary);
}

.dark-mode .highlight-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
}


/* Dark Mode - Testimonies Section */
.dark-mode .youth-testimonies {
    background-color: var(--youth-dark-bg-secondary);
}

.dark-mode .section-title {
    color: var(--youth-dark-text);
}

.dark-mode .view-all-link {
    color: var(--youth-dark-primary);
}

.dark-mode .view-all-link:hover {
    color: var(--youth-dark-primary-light);
}

.dark-mode .testimony-card {
    background: var(--youth-dark-bg-card);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.dark-mode .testimony-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.dark-mode .testimony-title {
    color: var(--youth-dark-text);
}

.dark-mode .testimony-excerpt {
    color: var(--youth-dark-text-secondary);
}

.dark-mode .testimony-footer {
    border-top-color: var(--youth-dark-border);
}

.dark-mode .testimony-author {
    color: var(--youth-dark-text-secondary);
}

.dark-mode .testimony-encourage-btn {
    border-color: var(--youth-dark-border);
    color: var(--youth-dark-text-secondary);
}

.dark-mode .testimony-encourage-btn:hover:not(:disabled) {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--youth-accent);
    color: var(--youth-accent);
}

.dark-mode .testimony-encourage-btn:disabled,
.dark-mode .testimony-encourage-btn.encouraged {
    background: rgba(236, 72, 153, 0.2);
    border-color: var(--youth-accent);
    color: var(--youth-accent);
}

.dark-mode .testimony-link {
    color: var(--youth-dark-primary);
}

.dark-mode .testimony-link:hover {
    color: var(--youth-dark-primary-light);
}


/* ========================================
   LEADERS' RESOURCES - DARK MODE
   ======================================== */

.dark-mode .leaders-resources-section {
    background: var(--youth-bg-dark);
}

.dark-mode .leaders-resources-section .section-title {
    color: var(--youth-text-dark);
}

.dark-mode .leaders-resources-section .section-intro {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .resource-card {
    background: var(--youth-card-bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .resource-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.dark-mode .resource-title {
    color: var(--youth-text-dark);
}

.dark-mode .resource-description {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .resource-meta {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .training-category {
    background: var(--youth-card-bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .training-category h3 {
    color: var(--youth-text-dark);
}

.dark-mode .training-item {
    border-bottom-color: var(--youth-border-dark);
}

.dark-mode .training-item-content h4 {
    color: var(--youth-text-dark);
}

.dark-mode .training-item-content p {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .safeguarding-section {
    background: var(--youth-bg-secondary-dark);
}

.dark-mode .policy-card {
    background: var(--youth-card-bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .policy-header h3 {
    color: var(--youth-text-dark);
}

.dark-mode .policy-description {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .policy-highlights {
    background: var(--youth-bg-dark);
}

.dark-mode .policy-highlights h4 {
    color: var(--youth-text-dark);
}

.dark-mode .policy-highlights li {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .contact-section {
    background: var(--youth-bg-dark);
}

.dark-mode .staff-card {
    background: var(--youth-card-bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .staff-info h3 {
    color: var(--youth-text-dark);
}

.dark-mode .contact-detail a {
    color: var(--youth-text-dark);
}

.dark-mode .contact-detail a:hover {
    color: var(--youth-primary);
}

.dark-mode .staff-availability {
    color: var(--youth-text-secondary-dark);
}

.dark-mode .emergency-contacts {
    background: var(--youth-bg-secondary-dark);
}

.dark-mode .emergency-contacts h3 {
    color: var(--youth-text-dark);
}

.dark-mode .emergency-card {
    background: var(--youth-card-bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .emergency-card h4 {
    color: var(--youth-text-dark);
}

.dark-mode .emergency-card p {
    color: var(--youth-text-secondary-dark);
}

/* === youth/css/youth-design-tokens.css === */
/* ===================================
   Youth UI/UX Modernization
   Design Tokens System
   =================================== */

/* This file contains all design tokens for the Youth Platform
   following the requirements from the UI/UX modernization spec.
   These tokens provide a single source of truth for visual properties. */

:root {
  /* ===================================
     Color Palette - Light Theme
     =================================== */
  
  /* Primary Colors */
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;
  
  /* Secondary Colors */
  --color-secondary-50: #faf5ff;
  --color-secondary-100: #f3e8ff;
  --color-secondary-200: #e9d5ff;
  --color-secondary-300: #d8b4fe;
  --color-secondary-400: #c084fc;
  --color-secondary-500: #8b5cf6;
  --color-secondary-600: #7c3aed;
  --color-secondary-700: #6d28d9;
  --color-secondary-800: #5b21b6;
  --color-secondary-900: #4c1d95;
  
  /* Accent Colors */
  --color-accent-50: #fdf2f8;
  --color-accent-100: #fce7f3;
  --color-accent-200: #fbcfe8;
  --color-accent-300: #f9a8d4;
  --color-accent-400: #f472b6;
  --color-accent-500: #ec4899;
  --color-accent-600: #db2777;
  --color-accent-700: #be185d;
  --color-accent-800: #9f1239;
  --color-accent-900: #831843;
  
  /* Success Colors */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success-300: #6ee7b7;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  --color-success-800: #065f46;
  --color-success-900: #064e3b;
  
  /* Warning Colors */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;
  --color-warning-900: #78350f;
  
  /* Error Colors */
  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error-300: #fca5a5;
  --color-error-400: #f87171;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;
  
  /* Neutral Colors */
  --color-neutral-50: #f9fafb;
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #4b5563;
  --color-neutral-700: #374151;
  --color-neutral-800: #1f2937;
  --color-neutral-900: #111827;
  
  /* ===================================
     Semantic Colors - Light Theme
     =================================== */
  
  --color-background: #ffffff;
  --color-surface: #f9fafb;
  --color-surface-elevated: #ffffff;
  --color-text-primary: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-border: #e5e7eb;
  --color-border-hover: #d1d5db;
  --color-divider: #f3f4f6;
  
  /* Interactive States */
  --color-hover-overlay: rgba(0, 0, 0, 0.05);
  --color-active-overlay: rgba(0, 0, 0, 0.1);
  --color-focus-ring: rgba(99, 102, 241, 0.3);
  
  /* ===================================
     Typography Scale
     =================================== */
  
  /* Font Families - Plus Jakarta Sans: sharp, geometric, modern (designer pick for youth) */
  --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-family-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  
  /* ===================================
     Spacing System (8px base)
     =================================== */
  
  --space-0: 0;
  --space-1: 0.5rem;      /* 8px */
  --space-2: 1rem;        /* 16px */
  --space-3: 1.5rem;      /* 24px */
  --space-4: 2rem;        /* 32px */
  --space-5: 2.5rem;      /* 40px */
  --space-6: 3rem;        /* 48px */
  --space-7: 3.5rem;      /* 56px */
  --space-8: 4rem;        /* 64px */
  --space-10: 5rem;       /* 80px */
  --space-12: 6rem;       /* 96px */
  --space-16: 8rem;       /* 128px */
  --space-20: 10rem;      /* 160px */
  --space-24: 12rem;      /* 192px */
  
  /* ===================================
     Border Radius
     =================================== */
  
  --radius-none: 0;
  --radius-sm: 0.375rem;    /* 6px */
  --radius-md: 0.5rem;      /* 8px */
  --radius-lg: 0.75rem;     /* 12px */
  --radius-xl: 1rem;        /* 16px */
  --radius-2xl: 1.5rem;     /* 24px */
  --radius-3xl: 2rem;       /* 32px */
  --radius-full: 9999px;
  
  /* ===================================
     Shadows
     =================================== */
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* ===================================
     Animation Durations
     =================================== */
  
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  --duration-slowest: 1000ms;
  
  /* ===================================
     Animation Easing Functions
     =================================== */
  
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
  
  /* ===================================
     Z-Index Scale
     =================================== */
  
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  --z-index-notification: 1080;
  
  /* ===================================
     Breakpoints (for reference in JS)
     =================================== */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* ===================================
     Gradients
     =================================== */
  
  --gradient-primary: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
  --gradient-accent: linear-gradient(135deg, var(--color-accent-500), var(--color-warning-500));
  --gradient-success: linear-gradient(135deg, var(--color-success-500), var(--color-primary-500));
  --gradient-shimmer: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  
  /* ===================================
     Glassmorphism Effects
     =================================== */
  
  --glass-background: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(10px);
  
  /* ===================================
     Resources Warm Bento Theme
     =================================== */
  
  /* Warm Color Palette */
  --resources-coral: #FF7B6B;
  --resources-coral-light: #FFA598;
  --resources-coral-lighter: #FFD4CD;
  --resources-amber: #F4A261;
  --resources-amber-light: #F8C291;
  --resources-amber-lighter: #FCDFC1;
  --resources-mint: #81B29A;
  --resources-mint-light: #A8D0C0;
  --resources-mint-lighter: #D4EAE0;
  --resources-lavender: #9B8EC2;
  --resources-lavender-light: #BDB3D4;
  --resources-lavender-lighter: #DED9E8;
  --resources-sky: #7EC8E3;
  --resources-sky-light: #A8DCEF;
  --resources-sky-lighter: #D4EBF4;
  
  /* Background Colors */
  --resources-bg-warm: #FFFBF7;
  --resources-bg-warm-secondary: #FFF5EB;
  --resources-text-warm: #5C4D4D;
  --resources-text-warm-secondary: #8B7B7B;
  
  /* Typography for Resources */
  --resources-font-heading: 'Fraunces', Georgia, serif;
  --resources-font-base: 'DM Sans', -apple-system, sans-serif;
}

/* ===================================
   Dark Theme Overrides for Resources
   =================================== */

[data-theme="dark"],
html.dark-mode {
  /* Warm theme dark mode colors */
  --resources-bg-warm: #1a1612;
  --resources-bg-warm-secondary: #2a2218;
  --resources-text-warm: #FFFBF7;
  --resources-text-warm-secondary: #D4EAE0;
  
  /* Slightly desaturated warm colors for dark backgrounds */
  --resources-coral: #E56B5B;
  --resources-coral-light: #FFA598;
  --resources-coral-lighter: #FFD4CD;
  --resources-amber: #E49251;
  --resources-amber-light: #F8C291;
  --resources-amber-lighter: #FCDFC1;
  --resources-mint: #71A28A;
  --resources-mint-light: #A8D0C0;
  --resources-mint-lighter: #D4EAE0;
  --resources-lavender: #8B7EB2;
  --resources-lavender-light: #BDB3D4;
  --resources-lavender-lighter: #DED9E8;
  --resources-sky: #6EB8D3;
  --resources-sky-light: #A8DCEF;
  --resources-sky-lighter: #D4EBF4;
}

/* ===================================
   Resources Warm Bento Theme
   =================================== */

/* ===================================
   Dark Theme Overrides
   Apply when either [data-theme="dark"] or .dark-mode is set so theme
   is consistent before/after paint and across all components.
   =================================== */

[data-theme="dark"],
html.dark-mode {
  /* Semantic Colors - Dark Theme */
  --color-background: #111827;
  --color-surface: #1f2937;
  --color-surface-elevated: #374151;
  --color-text-primary: #f9fafb;
  --color-text-secondary: #9ca3af;
  --color-text-tertiary: #6b7280;
  --color-border: #374151;
  --color-border-hover: #4b5563;
  --color-divider: #1f2937;
  
  /* Interactive States */
  --color-hover-overlay: rgba(255, 255, 255, 0.05);
  --color-active-overlay: rgba(255, 255, 255, 0.1);
  --color-focus-ring: rgba(99, 102, 241, 0.5);
  
  /* Glassmorphism Effects - Dark */
  --glass-background: rgba(31, 41, 55, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Shadows - Dark Theme (more subtle) */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Neo-Brutalism Theme Overrides
   =================================== */

[data-theme="neo-brutalism"] {
  /* ===================================
     Neo-Brutalism Color System
     =================================== */
  
  /* Primary Color - Teal */
  --color-primary-50: #f0fdfa;
  --color-primary-100: #ccfbf1;
  --color-primary-200: #99f6e4;
  --color-primary-300: #5eead4;
  --color-primary-400: #2dd4bf;
  --color-primary-500: #14b8a6;
  --color-primary-600: #0d9488;
  --color-primary-700: #0f766e;
  --color-primary-800: #115e59;
  --color-primary-900: #134e4a;
  
  /* Secondary Color - Yellow */
  --color-secondary-50: #fefce8;
  --color-secondary-100: #fef9c3;
  --color-secondary-200: #fef08a;
  --color-secondary-300: #fde047;
  --color-secondary-400: #facc15;
  --color-secondary-500: #fcd34d;
  --color-secondary-600: #ca8a04;
  --color-secondary-700: #a16207;
  --color-secondary-800: #854d0e;
  --color-secondary-900: #713f12;
  
  /* Accent Color - Pink */
  --color-accent-50: #fdf2f8;
  --color-accent-100: #fce7f3;
  --color-accent-200: #fbcfe8;
  --color-accent-300: #f9a8d4;
  --color-accent-400: #f472b6;
  --color-accent-500: #ec4899;
  --color-accent-600: #db2777;
  --color-accent-700: #be185d;
  --color-accent-800: #9f1239;
  --color-accent-900: #831843;
  
  /* Warning Color - Orange */
  --color-warning-50: #fff7ed;
  --color-warning-100: #ffedd5;
  --color-warning-200: #fed7aa;
  --color-warning-300: #fdba74;
  --color-warning-400: #fb923c;
  --color-warning-500: #f97316;
  --color-warning-600: #ea580c;
  --color-warning-700: #c2410c;
  --color-warning-800: #9a3412;
  --color-warning-900: #7c2d12;
  
  /* ===================================
     Neo-Brutalism Semantic Colors
     =================================== */
  
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-text-primary: #000000;
  --color-text-secondary: #000000;
  --color-text-tertiary: #4b5563;
  --color-border: #000000;
  --color-border-hover: #000000;
  --color-divider: #000000;
  
  /* Interactive States */
  --color-hover-overlay: rgba(0, 0, 0, 0.05);
  --color-active-overlay: rgba(0, 0, 0, 0.1);
  --color-focus-ring: rgba(20, 184, 166, 0.5);
  
  /* ===================================
     Neo-Brutalism Typography
     =================================== */
  
  /* Font Weights - Bolder for neo-brutalism */
  --font-weight-normal: 600;
  --font-weight-medium: 600;
  --font-weight-semibold: 700;
  --font-weight-bold: 800;
  --font-weight-extrabold: 800;
  
  /* Font Sizes - 12% increase */
  --font-size-xs: 0.84rem;      /* 13.44px */
  --font-size-sm: 0.98rem;      /* 15.68px */
  --font-size-base: 1.12rem;    /* 17.92px */
  --font-size-lg: 1.26rem;      /* 20.16px */
  --font-size-xl: 1.4rem;       /* 22.4px */
  --font-size-2xl: 1.68rem;     /* 26.88px */
  --font-size-3xl: 2.1rem;      /* 33.6px */
  --font-size-4xl: 2.52rem;     /* 40.32px */
  --font-size-5xl: 3.36rem;     /* 53.76px */
  --font-size-6xl: 4.2rem;      /* 67.2px */
  
  /* Line Heights - Optimized for readability */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.7;
  --line-height-loose: 2;
  
  /* ===================================
     Neo-Brutalism Borders
     =================================== */
  
  --border-width-thin: 2px;
  --border-width-base: 4px;
  --border-width-thick: 5px;
  --border-style: solid;
  --border-color: #000000;
  
  /* Border Radius - Sharp corners */
  --radius-none: 0;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 2px;
  --radius-xl: 4px;
  --radius-2xl: 4px;
  --radius-3xl: 4px;
  --radius-full: 0;
  
  /* ===================================
     Neo-Brutalism Shadows (Hard, No Blur)
     =================================== */
  
  --shadow-xs: 2px 2px 0 #000000;
  --shadow-sm: 3px 3px 0 #000000;
  --shadow-md: 6px 6px 0 #000000;
  --shadow-lg: 8px 8px 0 #000000;
  --shadow-xl: 10px 10px 0 #000000;
  --shadow-2xl: 12px 12px 0 #000000;
  --shadow-inner: none;
  
  /* Shadow States */
  --shadow-hover: 3px 3px 0 #000000;
  --shadow-active: 1px 1px 0 #000000;
  --shadow-focus: 4px 4px 0 var(--color-primary-500);
  
  /* ===================================
     Neo-Brutalism Animation
     =================================== */
  
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 250ms;
  --duration-slower: 300ms;
  --duration-slowest: 400ms;
  
  /* Easing - Mechanical feel */
  --ease-linear: linear;
  --ease-in: ease-in;
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;
  --ease-bounce: ease-in-out;
  --ease-elastic: ease-in-out;
  
  /* ===================================
     Neo-Brutalism Specific Properties
     =================================== */
  
  /* Gradients - None (flat colors only) */
  --gradient-primary: none;
  --gradient-accent: none;
  --gradient-success: none;
  --gradient-shimmer: none;
  
  /* Glassmorphism - Disabled */
  --glass-background: #ffffff;
  --glass-border: #000000;
  --glass-blur: none;
  
  /* Component-specific borders */
  --button-border: 4px solid #000000;
  --card-border: 4px solid #000000;
  --input-border: 4px solid #000000;
  --modal-border: 5px solid #000000;
  
  /* Component-specific shadows */
  --button-shadow: 6px 6px 0 #000000;
  --button-shadow-hover: 3px 3px 0 #000000;
  --button-shadow-active: 1px 1px 0 #000000;
  --card-shadow: 8px 8px 0 #000000;
  --modal-shadow: 10px 10px 0 #000000;
}

/* ===================================
   Neo-Brutalism Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
  [data-theme="neo-brutalism"] {
    /* Reduce border thickness on mobile */
    --border-width-base: 3px;
    --border-width-thick: 4px;
    
    /* Reduce shadow offsets by 50% */
    --shadow-xs: 1px 1px 0 #000000;
    --shadow-sm: 2px 2px 0 #000000;
    --shadow-md: 3px 3px 0 #000000;
    --shadow-lg: 4px 4px 0 #000000;
    --shadow-xl: 5px 5px 0 #000000;
    --shadow-2xl: 6px 6px 0 #000000;
    
    --shadow-hover: 2px 2px 0 #000000;
    --shadow-active: 1px 1px 0 #000000;
    
    --button-shadow: 3px 3px 0 #000000;
    --button-shadow-hover: 2px 2px 0 #000000;
    --button-shadow-active: 1px 1px 0 #000000;
    --card-shadow: 4px 4px 0 #000000;
    --modal-shadow: 5px 5px 0 #000000;
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
    --duration-slowest: 0ms;
  }
}

/* ===================================
   High Contrast Mode Support
   =================================== */

@media (prefers-contrast: high) {
  :root {
    --color-border: #000000;
    --color-text-secondary: #000000;
  }
  
  [data-theme="dark"] {
    --color-border: #ffffff;
    --color-text-secondary: #ffffff;
  }
}

/* === youth/css/youth-mobile-bottom-nav.css === */
/* ========================================
   Enhanced Mobile Bottom Navigation Bar
   Modern mobile-first navigation component with journey stage awareness
   ======================================== */

.youth-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-top: 2px solid var(--color-border);
    padding: var(--space-2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .youth-mobile-bottom-nav {
    background: rgba(17, 24, 39, 0.95);
    border-top-color: var(--color-border);
}

.youth-mobile-bottom-nav__item-wrapper {
    position: relative;
}

.youth-mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: var(--font-size-xs);
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-out);
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-md);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.youth-mobile-bottom-nav__item:hover {
    background-color: var(--color-surface);
}

.youth-mobile-bottom-nav__item:active {
    transform: scale(0.95);
}

.youth-mobile-bottom-nav__item.is-active {
    color: var(--color-primary-500);
}

.youth-mobile-bottom-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
    border-radius: 0 0 var(--radius-full) var(--radius-full);
    animation: slideDown var(--duration-base) var(--ease-out);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.youth-mobile-bottom-nav__icon {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--duration-fast) var(--ease-out);
    position: relative;
}

.youth-mobile-bottom-nav__item.is-active .youth-mobile-bottom-nav__icon {
    transform: scale(1.1);
}

/* Journey Stage Indicator */
.youth-mobile-bottom-nav__journey-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 0.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.journey-indicator--just_starting {
    background-color: #10B981;
    color: white;
}

.journey-indicator--going_deeper {
    background-color: #3B82F6;
    color: white;
}

.journey-indicator--all_in {
    background-color: #F59E0B;
    color: white;
}

.youth-mobile-bottom-nav__label {
    font-size: var(--font-size-xs);
    line-height: 1;
    white-space: nowrap;
}

/* Progress Ring */
.youth-mobile-bottom-nav__progress-ring {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-primary-500) 0deg,
        var(--color-primary-500) calc(var(--progress) * 3.6deg),
        var(--color-border) calc(var(--progress) * 3.6deg),
        var(--color-border) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.youth-mobile-bottom-nav__progress-ring::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-background);
    border-radius: 50%;
}

/* Badge for notifications */
.youth-mobile-bottom-nav__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--color-error-500);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Quick Resource Menu */
.youth-mobile-resource-quick-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1001;
}

[data-theme="dark"] .youth-mobile-resource-quick-menu {
    background: var(--color-surface);
    border-color: var(--color-border);
}

.quick-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.quick-menu__title {
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
}

.quick-menu__close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--space-1);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.quick-menu__close:hover {
    background-color: var(--color-error-100);
    color: var(--color-error-600);
}

.quick-menu__categories {
    padding: var(--space-3);
}

.quick-menu__category {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: all var(--duration-fast) var(--ease-out);
    margin-bottom: var(--space-2);
}

.quick-menu__category:hover {
    background-color: var(--color-primary-50);
    color: var(--color-primary-600);
    transform: translateX(4px);
}

.quick-menu__icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.quick-menu__name {
    flex: 1;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.quick-menu__count {
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

.quick-menu__journey-stages {
    padding: var(--space-3);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.quick-menu__journey-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-2);
    text-align: center;
}

.quick-menu__journey-buttons {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
}

.quick-menu__journey-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-background);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    flex: 1;
    min-width: 60px;
}

.quick-menu__journey-btn:hover {
    border-color: var(--color-primary-300);
    background-color: var(--color-primary-50);
    color: var(--color-primary-600);
    transform: translateY(-2px);
}

.quick-menu__journey-btn.active {
    border-color: var(--color-primary-500);
    background-color: var(--color-primary-500);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quick-menu__journey-icon {
    font-size: 1.25rem;
}

.quick-menu__journey-text {
    font-size: 0.625rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

/* Reserve space for fixed bottom nav on mobile so content is not hidden */
@media (max-width:767px) {
    .youth-main,
    .youth-section {
        padding-bottom: 80px;
    }
}

/* Hide on desktop */
@media (min-width: 768px) {
    .youth-mobile-bottom-nav {
        display: none;
    }
}

/* Adjust for very small screens */
@media (max-width: 360px) {
    .youth-mobile-bottom-nav {
        padding: var(--space-1);
    }

    .youth-mobile-bottom-nav__item {
        padding: var(--space-1);
        gap: 2px;
        min-width: 40px;
        min-height: 40px;
    }

    .youth-mobile-bottom-nav__icon {
        font-size: 1.25rem;
    }

    .youth-mobile-bottom-nav__label {
        font-size: 0.625rem;
    }

    .youth-mobile-resource-quick-menu {
        width: 280px;
    }

    .quick-menu__journey-btn {
        min-width: 50px;
        padding: var(--space-1);
    }

    .quick-menu__journey-icon {
        font-size: 1rem;
    }

    .quick-menu__journey-text {
        font-size: 0.5625rem;
    }
}

/* Accessibility */
.youth-mobile-bottom-nav__item:focus-visible {
    outline: 3px solid var(--color-primary-500);
    outline-offset: 2px;
}

.quick-menu__close:focus-visible,
.quick-menu__category:focus-visible,
.quick-menu__journey-btn:focus-visible {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .youth-mobile-bottom-nav__item,
    .youth-mobile-bottom-nav__icon,
    .youth-mobile-bottom-nav__item.is-active::before,
    .youth-mobile-bottom-nav__badge {
        animation: none;
        transition: none;
    }

    .youth-mobile-bottom-nav__item:active {
        transform: none;
    }

    .quick-menu__category:hover,
    .quick-menu__journey-btn:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .youth-mobile-bottom-nav {
        border-top-width: 3px;
    }

    .youth-mobile-bottom-nav__item {
        border: 1px solid transparent;
    }

    .youth-mobile-bottom-nav__item.is-active {
        border-color: currentColor;
    }

    .youth-mobile-resource-quick-menu {
        border-width: 3px;
    }

    .quick-menu__journey-btn {
        border-width: 2px;
    }
}

/* ========================================
   Neo-Brutalism Theme Styles
   ======================================== */

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav {
    background: #FFFFFF;
    backdrop-filter: none;
    border-top: 4px solid #000000;
    box-shadow: 0 -6px 0 #000000;
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item {
    border-radius: 0;
    font-weight: 700;
    transition: all 150ms ease-in-out;
    border: 3px solid transparent;
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item:hover {
    background-color: #14B8A6;
    color: #FFFFFF;
    border-color: #000000;
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item:active {
    transform: scale(0.9);
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item.is-active {
    color: #14B8A6;
    background-color: rgba(20, 184, 166, 0.1);
    border: 3px solid #000000;
    box-shadow: 2px 2px 0 #000000;
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #14B8A6;
    border-radius: 0;
    animation: none;
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__icon {
    transition: transform 150ms ease-in-out;
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item.is-active .youth-mobile-bottom-nav__icon {
    transform: scale(1.15);
}

[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.625rem;
}

/* Journey Stage Indicator - Neo-Brutalism */
[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__journey-indicator {
    border: 2px solid #000000;
    box-shadow: 2px 2px 0 #000000;
}

/* Quick Menu - Neo-Brutalism */
[data-theme="neo-brutalism"] .youth-mobile-resource-quick-menu {
    background: #FFFFFF;
    border: 4px solid #000000;
    border-radius: 0;
    box-shadow: 0 -6px 0 #000000;
}

[data-theme="neo-brutalism"] .quick-menu__header {
    border-bottom: 3px solid #000000;
    border-radius: 0;
}

[data-theme="neo-brutalism"] .quick-menu__close {
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

[data-theme="neo-brutalism"] .quick-menu__close:hover {
    background-color: #EC4899;
    box-shadow: 3px 3px 0 #000000;
}

[data-theme="neo-brutalism"] .quick-menu__category {
    border: 3px solid transparent;
    border-radius: 0;
}

[data-theme="neo-brutalism"] .quick-menu__category:hover {
    border-color: #000000;
    background-color: #14B8A6;
    color: #FFFFFF;
    box-shadow: 3px 3px 0 #000000;
}

[data-theme="neo-brutalism"] .quick-menu__count {
    border: 2px solid #000000;
    border-radius: 0;
}

[data-theme="neo-brutalism"] .quick-menu__journey-stages {
    border-top: 3px solid #000000;
}

[data-theme="neo-brutalism"] .quick-menu__journey-btn {
    border: 3px solid #000000;
    border-radius: 0;
    box-shadow: 2px 2px 0 #000000;
}

[data-theme="neo-brutalism"] .quick-menu__journey-btn:hover {
    border-color: #14B8A6;
    background-color: #14B8A6;
    color: #FFFFFF;
    box-shadow: 3px 3px 0 #000000;
}

[data-theme="neo-brutalism"] .quick-menu__journey-btn.active {
    background-color: #14B8A6;
    border-color: #000000;
    color: #FFFFFF;
    box-shadow: 3px 3px 0 #000000;
}

/* Badge - Neo-Brutalism */
[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__badge {
    background: #EC4899;
    color: #FFFFFF;
    font-weight: 800;
    border: 2px solid #000000;
    border-radius: 0;
    animation: none;
    box-shadow: 2px 2px 0 #000000;
}

/* Accessibility - Neo-Brutalism */
[data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item:focus-visible {
    outline: 4px solid #14B8A6;
    outline-offset: 2px;
}

/* Reduced motion - Neo-Brutalism */
@media (prefers-reduced-motion: reduce) {
    [data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item,
    [data-theme="neo-brutalism"] .youth-mobile-bottom-nav__icon {
        transition: none;
    }

    [data-theme="neo-brutalism"] .youth-mobile-bottom-nav__item:active {
        transform: none;
    }
}

/* === youth/css/youth-encouraging-messages.css === */
/**
 * Youth UI/UX Modernization
 * Encouraging Messages System Styles
 * 
 * Styles for context-appropriate encouragement, personalized messages,
 * and motivational quotes.
 * 
 * Requirements: 23.1, 23.2, 23.3, 23.4
 */

/* ===================================
   Encouraging Message Base Styles
   =================================== */

.encouraging-message {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-secondary-50));
  border-left: 4px solid var(--color-primary-500);
  margin: var(--space-4) 0;
  animation: fadeIn var(--duration-base) var(--ease-out);
}

[data-theme="dark"] .encouraging-message {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-left-color: var(--color-primary-400);
}

/* ===================================
   Motivational Quote Styles
   =================================== */

.motivational-quote {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}

.motivational-quote:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-500);
}

.motivational-quote::before {
  content: '"';
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-200);
  line-height: 1;
  font-family: Georgia, serif;
}

[data-theme="dark"] .motivational-quote::before {
  color: var(--color-primary-800);
}

.quote-text {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-3) 0;
  padding-left: var(--space-6);
  font-style: italic;
}

.quote-reference {
  display: block;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-600);
  text-align: right;
  font-style: normal;
}

[data-theme="dark"] .quote-reference {
  color: var(--color-primary-400);
}

/* ===================================
   Floating Encouragement
   =================================== */

.floating-encouragement {
  position: fixed;
  bottom: var(--space-20);
  right: var(--space-4);
  max-width: 320px;
  padding: var(--space-4);
  background: var(--color-background);
  border: 2px solid var(--color-primary-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  z-index: var(--z-index-notification);
  opacity: 0;
  transform: translateX(400px);
  transition: all var(--duration-base) var(--ease-out);
}

.floating-encouragement.show {
  opacity: 1;
  transform: translateX(0);
}

.floating-encouragement::before {
  content: '✨';
  font-size: var(--font-size-2xl);
  margin-right: var(--space-2);
}

.floating-encouragement.reduced-motion {
  transition: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .floating-encouragement {
    transition: none;
  }
  .floating-encouragement.show {
    opacity: 1;
    transform: none;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .floating-encouragement {
    bottom: var(--space-24);
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* ===================================
   Welcome Message Styles
   =================================== */

.welcome-message {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp var(--duration-base) var(--ease-out);
}

/* ===================================
   Streak Message Styles
   =================================== */

.streak-message {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--color-warning-500), var(--color-error-500));
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-md);
  animation: bounceIn var(--duration-base) var(--ease-bounce);
}

.streak-message::before {
  content: '🔥';
  font-size: var(--font-size-xl);
}

/* ===================================
   Completion Message Styles
   =================================== */

.completion-message {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-success-50), var(--color-primary-50));
  border: 2px solid var(--color-success-500);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success-700);
  animation: scaleIn var(--duration-base) var(--ease-bounce);
}

[data-theme="dark"] .completion-message {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(99, 102, 241, 0.1));
  color: var(--color-success-400);
}

.completion-message::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-success-500);
  color: white;
  border-radius: 50%;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

/* ===================================
   Difficult Topic Message Styles
   =================================== */

.difficult-topic-message {
  padding: var(--space-4);
  background: var(--color-warning-50);
  border-left: 4px solid var(--color-warning-500);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin: var(--space-4) 0;
}

[data-theme="dark"] .difficult-topic-message {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--color-warning-400);
}

.difficult-topic-message::before {
  content: '💭';
  font-size: var(--font-size-2xl);
  margin-right: var(--space-2);
}

/* ===================================
   Reading Progress Message
   =================================== */

.reading-progress-message {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  animation: fadeIn var(--duration-base) var(--ease-out);
}

[data-theme="dark"] .reading-progress-message {
  background: rgba(99, 102, 241, 0.2);
  color: var(--color-primary-300);
}

.reading-progress-message::before {
  content: '📖';
  font-size: var(--font-size-base);
}

/* ===================================
   Milestone Celebration Message
   =================================== */

.milestone-message {
  padding: var(--space-6);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-xl);
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  box-shadow: var(--shadow-xl);
  animation: celebrationPulse 1s var(--ease-bounce);
}

.milestone-message::before {
  content: '🎉';
  display: block;
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-3);
  animation: bounce 1s infinite;
}

/* ===================================
   Return Visit Message
   =================================== */

.return-visit-message {
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-accent-50), var(--color-primary-50));
  border: 2px solid var(--color-accent-500);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
  animation: fadeInDown var(--duration-base) var(--ease-out);
}

[data-theme="dark"] .return-visit-message {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.1));
  border-color: var(--color-accent-400);
}

.return-visit-message::before {
  content: '👋';
  font-size: var(--font-size-3xl);
  display: block;
  margin-bottom: var(--space-2);
}

/* ===================================
   Message Container Variants
   =================================== */

.message-container {
  margin: var(--space-4) 0;
}

.message-container--centered {
  text-align: center;
}

.message-container--highlight {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes celebrationPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  .encouraging-message,
  .motivational-quote,
  .floating-encouragement,
  .welcome-message,
  .streak-message,
  .completion-message,
  .milestone-message,
  .return-visit-message {
    animation: none;
  }
  
  .floating-encouragement.show {
    opacity: 1;
    transform: translateX(0);
  }
  
  .milestone-message::before {
    animation: none;
  }
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 640px) {
  .encouraging-message {
    font-size: var(--font-size-base);
    padding: var(--space-2);
  }
  
  .motivational-quote {
    padding: var(--space-4);
  }
  
  .quote-text {
    font-size: var(--font-size-lg);
    padding-left: var(--space-4);
  }
  
  .welcome-message {
    font-size: var(--font-size-xl);
  }
  
  .milestone-message {
    font-size: var(--font-size-xl);
    padding: var(--space-4);
  }
  
  .milestone-message::before {
    font-size: var(--font-size-4xl);
  }
}

/* === youth/css/youth-celebratory-animations.css === */
/**
 * Youth UI/UX Modernization
 * Celebratory Animations Styles
 * 
 * Styles for confetti, achievement celebrations, and milestone animations.
 * 
 * Requirements: 23.5
 */

/* ===================================
   Achievement Celebration Overlay
   =================================== */

.achievement-celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn var(--duration-base) var(--ease-out);
  padding: var(--space-4);
}

.achievement-celebration-overlay.fade-out {
  animation: fadeOut var(--duration-base) var(--ease-out);
}

.achievement-celebration-content {
  background: var(--color-background);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-2xl);
  animation: scaleInBounce var(--duration-slow) var(--ease-bounce);
  position: relative;
  overflow: clip;
}

.achievement-celebration-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle, var(--color-primary-100) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
  opacity: 0.3;
}

[data-theme="dark"] .achievement-celebration-content::before {
  background: radial-gradient(circle, var(--color-primary-900) 0%, transparent 70%);
}

.achievement-icon {
  font-size: 6rem;
  margin-bottom: var(--space-4);
  animation: bounceIn 0.8s var(--ease-bounce);
  display: inline-block;
}

.achievement-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.achievement-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
}

.achievement-close-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-lg);
}

.achievement-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===================================
   Milestone Celebration Overlay
   =================================== */

.milestone-celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn var(--duration-base) var(--ease-out);
  padding: var(--space-4);
}

.milestone-celebration-overlay.fade-out {
  animation: fadeOut var(--duration-base) var(--ease-out);
}

.milestone-celebration-content {
  background: var(--color-background);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-2xl);
  animation: scaleInBounce var(--duration-slow) var(--ease-bounce);
  position: relative;
  overflow: visible;
}

.milestone-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.burst-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--color-primary-500);
  border-radius: 50%;
  opacity: 0;
}

.burst-ring-1 {
  width: 100px;
  height: 100px;
  animation: burstExpand 1.5s ease-out;
}

.burst-ring-2 {
  width: 100px;
  height: 100px;
  animation: burstExpand 1.5s ease-out 0.2s;
}

.burst-ring-3 {
  width: 100px;
  height: 100px;
  animation: burstExpand 1.5s ease-out 0.4s;
}

.milestone-icon {
  font-size: 8rem;
  margin-bottom: var(--space-4);
  animation: rotateIn 1s var(--ease-bounce);
  display: inline-block;
  position: relative;
  z-index: 1;
}

.milestone-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.milestone-message {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-relaxed);
  position: relative;
  z-index: 1;
}

.milestone-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.milestone-stat {
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
}

.milestone-stat .stat-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-500);
  margin-bottom: var(--space-1);
}

.milestone-stat .stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.milestone-close-btn {
  padding: var(--space-3) var(--space-8);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.milestone-close-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-2xl);
}

/* ===================================
   Quick Celebration Message
   =================================== */

.quick-celebration-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: white;
  background: var(--gradient-primary);
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  z-index: 10001;
  opacity: 0;
  transition: all var(--duration-base) var(--ease-bounce);
}

.quick-celebration-message.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ===================================
   Firework Effects
   =================================== */

.firework {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
}

.firework-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

/* ===================================
   Sparkle Effect
   =================================== */

.sparkle-effect {
  position: fixed;
  width: 50px;
  height: 50px;
  pointer-events: none;
  z-index: 10000;
  animation: sparkleRotate 1s ease-out;
}

.sparkle-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 25px;
  background: linear-gradient(to bottom, var(--color-warning-400), transparent);
  transform-origin: center top;
  animation: sparkleRay 0.6s ease-out;
}

/* ===================================
   Star Burst
   =================================== */

.star-burst {
  position: fixed;
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 10000;
  animation: starBurstRotate 1.5s ease-out;
}

.burst-star {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: var(--font-size-2xl);
  transform-origin: center;
  animation: burstStarFly 1s ease-out forwards;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes scaleInBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(20deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes rotateIn {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-360deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(20deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

@keyframes burstExpand {
  0% {
    width: 100px;
    height: 100px;
    opacity: 1;
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}

@keyframes sparkleRotate {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(180deg);
    opacity: 0;
  }
}

@keyframes sparkleRay {
  0% {
    height: 0;
    opacity: 1;
  }
  50% {
    height: 25px;
    opacity: 1;
  }
  100% {
    height: 25px;
    opacity: 0;
  }
}

@keyframes starBurstRotate {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5) rotate(360deg);
    opacity: 0;
  }
}

@keyframes burstStarFly {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translateY(-100px) scale(0.5);
    opacity: 0;
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  .achievement-celebration-overlay,
  .milestone-celebration-overlay,
  .quick-celebration-message,
  .achievement-icon,
  .milestone-icon,
  .burst-ring,
  .sparkle-effect,
  .star-burst,
  .firework {
    animation: none !important;
  }
  
  .achievement-celebration-content,
  .milestone-celebration-content {
    animation: fadeIn var(--duration-base) var(--ease-out);
  }
  
  .quick-celebration-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: opacity var(--duration-base) var(--ease-out);
  }
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 640px) {
  .achievement-celebration-content,
  .milestone-celebration-content {
    padding: var(--space-6);
  }
  
  .achievement-icon {
    font-size: 4rem;
  }
  
  .milestone-icon {
    font-size: 5rem;
  }
  
  .achievement-title {
    font-size: var(--font-size-2xl);
  }
  
  .milestone-title {
    font-size: var(--font-size-3xl);
  }
  
  .achievement-description,
  .milestone-message {
    font-size: var(--font-size-base);
  }
  
  .quick-celebration-message {
    font-size: var(--font-size-2xl);
    padding: var(--space-4) var(--space-6);
  }
  
  .milestone-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === youth/css/youth-empathetic-messaging.css === */
/**
 * Youth UI/UX Modernization
 * Empathetic Messaging Styles
 * 
 * Styles for supportive messages, gentle errors, and warm conversational tone.
 * 
 * Requirements: 23.6
 */

/* ===================================
   Empathetic Error Messages
   =================================== */

.empathetic-error {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  text-align: center;
  max-width: 500px;
  margin: var(--space-6) auto;
  animation: fadeInUp var(--duration-base) var(--ease-out);
}

.error-icon {
  font-size: var(--font-size-6xl);
  margin-bottom: var(--space-3);
  display: inline-block;
  animation: gentleBounce 2s ease-in-out infinite;
}

.error-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.error-message {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.error-details {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  padding: var(--space-3);
  background: var(--color-background);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-family: var(--font-family-mono);
}

.error-action-btn {
  padding: var(--space-3) var(--space-6);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: var(--shadow-md);
}

.error-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   Difficult Topic Support
   =================================== */

.difficult-topic-support {
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-secondary-50));
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--color-primary-500);
  margin: var(--space-6) 0;
  animation: fadeIn var(--duration-base) var(--ease-out);
}

[data-theme="dark"] .difficult-topic-support {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.support-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-3);
  text-align: center;
}

.support-message {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
}

.support-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-3);
}

.support-resources {
  font-size: var(--font-size-base);
  color: var(--color-primary-600);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-4);
}

[data-theme="dark"] .support-resources {
  color: var(--color-primary-400);
}

.support-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.support-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-500);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
}

.support-btn:hover {
  background: var(--color-primary-600);
  transform: translateY(-2px);
}

.support-btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
}

.support-btn-secondary:hover {
  background: var(--color-background);
  border-color: var(--color-primary-500);
}

/* ===================================
   Supportive Feedback
   =================================== */

.supportive-feedback {
  padding: var(--space-4);
  background: var(--color-success-50);
  border-left: 4px solid var(--color-success-500);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  animation: slideInLeft var(--duration-base) var(--ease-out);
}

[data-theme="dark"] .supportive-feedback {
  background: rgba(16, 185, 129, 0.1);
}

.feedback-message {
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-2);
}

.feedback-encouragement {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success-700);
  line-height: var(--line-height-relaxed);
}

[data-theme="dark"] .feedback-encouragement {
  color: var(--color-success-400);
}

/* ===================================
   Gentle Notification
   =================================== */

.gentle-notification {
  position: fixed;
  bottom: var(--space-20);
  right: var(--space-4);
  max-width: 400px;
  background: var(--color-background);
  border: 2px solid var(--color-primary-300);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-index-notification);
  opacity: 0;
  transform: translateX(450px);
  transition: all var(--duration-base) var(--ease-out);
}

.gentle-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.notification-icon {
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
}

.notification-message {
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .gentle-notification {
    bottom: var(--space-24);
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* ===================================
   Gentle Form Validation
   =================================== */

.gentle-validation {
  display: flex;
  align-items: start;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-warning-50);
  border-left: 3px solid var(--color-warning-500);
  border-radius: var(--radius-md);
  animation: slideInLeft var(--duration-fast) var(--ease-out);
}

[data-theme="dark"] .gentle-validation {
  background: rgba(245, 158, 11, 0.1);
}

.validation-icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.validation-message {
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
}

.has-gentle-validation {
  border-color: var(--color-warning-500) !important;
}

/* ===================================
   Empathetic Loading
   =================================== */

.empathetic-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-index-modal);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out);
}

.empathetic-loading.show {
  opacity: 1;
}

.loading-content {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-background);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 400px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-message {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===================================
   Conversational Messages
   =================================== */

.conversational-message {
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 2px solid var(--color-border);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  line-height: var(--line-height-relaxed);
  margin: var(--space-4) 0;
  position: relative;
  animation: fadeIn var(--duration-base) var(--ease-out);
}

.conversational-message::before {
  content: '💬';
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-size: var(--font-size-xl);
}

.conversational-message p {
  margin-left: var(--space-6);
}

/* ===================================
   Guidance Messages
   =================================== */

.guidance-message {
  padding: var(--space-4);
  background: linear-gradient(135deg, var(--color-accent-50), var(--color-primary-50));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent-500);
  margin: var(--space-4) 0;
  animation: fadeInUp var(--duration-base) var(--ease-out);
}

[data-theme="dark"] .guidance-message {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.1));
}

.guidance-message-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.guidance-message-tip {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  .empathetic-error,
  .difficult-topic-support,
  .supportive-feedback,
  .gentle-notification,
  .gentle-validation,
  .conversational-message,
  .guidance-message {
    animation: none;
  }
  
  .error-icon {
    animation: none;
  }
  
  .loading-spinner {
    animation: spin 2s linear infinite;
  }
  
  .gentle-notification.show {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--duration-base) var(--ease-out);
  }
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 640px) {
  .empathetic-error {
    padding: var(--space-4);
  }
  
  .error-icon {
    font-size: var(--font-size-4xl);
  }
  
  .error-title {
    font-size: var(--font-size-xl);
  }
  
  .error-message {
    font-size: var(--font-size-base);
  }
  
  .difficult-topic-support {
    padding: var(--space-4);
  }
  
  .support-icon {
    font-size: var(--font-size-3xl);
  }
  
  .support-actions {
    flex-direction: column;
  }
  
  .support-btn {
    width: 100%;
  }
  
  .loading-content {
    padding: var(--space-4);
    margin: var(--space-4);
  }
}

/* === youth/css/youth-surprise-interactions.css === */
/**
 * Youth UI/UX Modernization
 * Delightful Surprise Interactions Styles
 * 
 * Styles for Easter eggs, random surprises, and special celebrations.
 * 
 * Requirements: 23.8
 */

/* ===================================
   Surprise Message
   =================================== */

.surprise-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  padding: var(--space-6) var(--space-8);
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-2xl);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  z-index: 10002;
  opacity: 0;
  transition: all var(--duration-base) var(--ease-bounce);
  max-width: 90%;
}

.surprise-message.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ===================================
   Floating Surprise
   =================================== */

.floating-surprise {
  position: fixed;
  bottom: var(--space-20);
  right: var(--space-4);
  max-width: 350px;
  padding: var(--space-4);
  background: var(--color-background);
  border: 3px solid var(--color-accent-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-index-notification);
  opacity: 0;
  transform: translateX(400px) rotate(5deg);
  transition: all var(--duration-base) var(--ease-bounce);
}

.floating-surprise.show {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.surprise-emoji {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-2);
  animation: bounce 1s ease-in-out infinite;
}

.surprise-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
  line-height: var(--line-height-relaxed);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .floating-surprise {
    bottom: var(--space-24);
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
}

/* ===================================
   Sparkle Effects
   =================================== */

.surprise-sparkle {
  position: fixed;
  font-size: var(--font-size-3xl);
  pointer-events: none;
  z-index: 10000;
  animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(360deg) translateY(-50px);
  }
}

.rain-sparkle {
  position: fixed;
  top: -50px;
  font-size: var(--font-size-2xl);
  pointer-events: none;
  z-index: 10000;
  animation: sparkleRain 3s linear forwards;
}

@keyframes sparkleRain {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* ===================================
   Heart Effects
   =================================== */

.floating-heart {
  position: fixed;
  bottom: -50px;
  font-size: var(--font-size-2xl);
  pointer-events: none;
  z-index: 10000;
  animation: heartFloat 4s ease-out forwards;
}

@keyframes heartFloat {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) scale(1.2) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.8) rotate(-10deg);
    opacity: 0;
  }
}

/* ===================================
   Ripple Effect
   =================================== */

.surprise-ripple {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-primary-500);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  animation: rippleExpand 2s ease-out forwards;
}

@keyframes rippleExpand {
  0% {
    width: 50px;
    height: 50px;
    opacity: 1;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

/* ===================================
   Special Date Decorations
   =================================== */

.special-date-decoration {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  animation: decorationFloat 5s ease-in-out infinite;
}

@keyframes decorationFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Christmas snow */
.christmas-snow {
  position: fixed;
  top: -10px;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: snowFall 10s linear infinite;
}

@keyframes snowFall {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(100px);
    opacity: 0;
  }
}

/* Hearts for Valentine's */
.valentine-heart {
  position: fixed;
  font-size: var(--font-size-3xl);
  pointer-events: none;
  z-index: 9999;
  animation: valentineFloat 8s ease-in-out infinite;
}

@keyframes valentineFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-30px) scale(1.1);
    opacity: 1;
  }
}

/* Fireworks for celebrations */
.celebration-firework {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

/* ===================================
   Easter Egg Indicators
   =================================== */

.easter-egg-hint {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  opacity: 0.5;
  transition: opacity var(--duration-base) var(--ease-out);
  z-index: 100;
}

.easter-egg-hint:hover {
  opacity: 1;
}

/* ===================================
   Achievement Unlock Animation
   =================================== */

.surprise-achievement {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-4);
  background: var(--color-background);
  border: 3px solid var(--color-success-500);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 10001;
  opacity: 0;
  transform: translateX(400px);
  transition: all var(--duration-base) var(--ease-bounce);
  max-width: 300px;
}

.surprise-achievement.show {
  opacity: 1;
  transform: translateX(0);
}

.achievement-icon {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-2);
}

.achievement-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-1);
}

.achievement-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-align: center;
}

/* ===================================
   Combo Counter
   =================================== */

.combo-counter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-warning-500);
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  pointer-events: none;
  z-index: 10001;
  opacity: 0;
  animation: comboAppear 0.5s var(--ease-bounce) forwards;
}

@keyframes comboAppear {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* ===================================
   Secret Unlocked Banner
   =================================== */

.secret-unlocked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background: var(--gradient-accent);
  color: white;
  text-align: center;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  z-index: 10001;
  transform: translateY(-100%);
  animation: bannerSlide 3s ease-in-out;
}

@keyframes bannerSlide {
  0%, 100% {
    transform: translateY(-100%);
  }
  10%, 90% {
    transform: translateY(0);
  }
}

/* ===================================
   Animations
   =================================== */

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

/* ===================================
   Reduced Motion Support
   =================================== */

@media (prefers-reduced-motion: reduce) {
  .surprise-message,
  .floating-surprise,
  .surprise-sparkle,
  .rain-sparkle,
  .floating-heart,
  .surprise-ripple,
  .surprise-achievement,
  .combo-counter,
  .secret-unlocked {
    animation: none !important;
  }
  
  .surprise-message.show,
  .floating-surprise.show,
  .surprise-achievement.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .surprise-emoji {
    animation: none;
  }
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 640px) {
  .surprise-message {
    font-size: var(--font-size-xl);
    padding: var(--space-4) var(--space-6);
  }
  
  .surprise-achievement {
    top: auto;
    bottom: var(--space-24);
    right: var(--space-4);
    left: var(--space-4);
    max-width: none;
  }
  
  .combo-counter {
    font-size: var(--font-size-4xl);
  }
  
  .secret-unlocked {
    font-size: var(--font-size-lg);
    padding: var(--space-3);
  }
}

/* === youth/resources/css/resources-system.css === */
/**
 * Resources System - Enhanced Library UI
 * Beautiful, modern design for youth resources section
 */

/* ============================================
   GLOBAL OVERFLOW FIXES
   ============================================ */

/* Prevent horizontal overflow at all levels */
.resources-homepage {
  overflow-x: clip;
  max-width: 100vw;
}

.resources-homepage * {
  box-sizing: border-box;
}

/* Container fixes - allow wider on large screens for bento grid */
.resources-homepage .container {
  max-width: min(1400px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--youth-spacing-lg);
  overflow-x: clip;
}

@media (max-width: 768px) {
  .resources-homepage .container {
    padding: 0 var(--youth-spacing-sm);
  }
}

/* ============================================
   LIBRARY CARD HEADER
   ============================================ */

.library-card-header {
  margin-bottom: var(--youth-spacing-xl);
}

.library-card {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.95) 0%, 
    rgba(139, 92, 246, 0.9) 25%, 
    rgba(236, 72, 153, 0.85) 75%, 
    rgba(245, 158, 11, 0.8) 100%
  );
  border-radius: 20px;
  padding: 2rem;
  overflow: clip;
  box-shadow: 
    0 20px 40px rgba(99, 102, 241, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.library-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 25px 50px rgba(99, 102, 241, 0.3),
    0 15px 30px rgba(0, 0, 0, 0.15);
}

.library-card__bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.library-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.library-card__main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.library-card__icon {
  font-size: 3.5rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.library-card__text {
  flex: 1;
  min-width: 250px;
}

.library-card__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.library-card__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.library-card__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.stat-item--streak {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.15) 100%);
  border-color: rgba(245, 158, 11, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
  }
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.library-card__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-quick-start {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-quick-start:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

/* Quick Start Panel */
.quick-start-panel {
  background: var(--youth-bg-secondary);
  border: 2px solid var(--youth-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--youth-shadow-md);
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-start-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--youth-bg);
  border: 2px solid var(--youth-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  overflow: clip;
}

.quick-start-card:hover {
  border-color: var(--youth-primary);
  transform: translateY(-2px);
  box-shadow: var(--youth-shadow-md);
}

.quick-start-card--featured {
  border-color: var(--youth-accent);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, var(--youth-bg) 100%);
}

.quick-start-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--youth-accent), var(--youth-warning));
}

.quick-start-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--youth-accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
  z-index: 1;
}

.quick-start-icon {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.quick-start-card:hover .quick-start-icon {
  transform: scale(1.1);
}

.quick-start-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--youth-text);
}

.quick-start-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--youth-text-secondary);
}

/* Grid overflow fixes */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--youth-spacing-lg);
  max-width: 100%;
  margin: 0 auto var(--youth-spacing-xl);
  padding: 0 var(--youth-spacing-md);
  overflow-x: clip;
  box-sizing: border-box;
}

.featured-grid,
.recommended-grid,
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--youth-spacing-lg);
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .categories-grid,
  .featured-grid,
  .recommended-grid,
  .resources-grid {
    grid-template-columns: 1fr;
    gap: var(--youth-spacing-md);
    padding: 0 var(--youth-spacing-sm);
  }
}

/* Main content fixes */
.main-content {
  overflow-x: clip;
  max-width: 100vw;
}

/* Section fixes */
.homepage-header,
.featured-section,
.recommended-section,
.my-journey-section,
.all-resources-section {
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

/* Category cards overflow fixes */
.category-card,
.featured-card,
.recommended-card,
.resource-card {
  max-width: 100%;
  overflow: clip;
  box-sizing: border-box;
}

/* Journey section fixes */
.continue-grid,
.saved-grid,
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--youth-spacing-lg);
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .continue-grid,
  .saved-grid,
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: var(--youth-spacing-md);
  }
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

.resources-nav-mobile {
  position: relative;
  margin-bottom: var(--youth-spacing-lg);
  overflow-x: clip;
}

.nav-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--youth-primary);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--youth-shadow-md);
}

.nav-toggle-btn:hover {
  background: var(--youth-primary-dark);
  transform: translateY(-1px);
}

.nav-toggle-btn.is-open {
  background: var(--youth-secondary);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav-toggle-btn.is-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-btn.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle-btn.is-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.nav-label {
  font-size: 0.9375rem;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: var(--youth-bg);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.nav-menu.is-open {
  right: 0;
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 2px solid var(--youth-border);
  background: var(--youth-bg-secondary);
}

.nav-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--youth-text);
}

.nav-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--youth-text-secondary);
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-close-btn:hover {
  background: var(--youth-bg-secondary);
  color: var(--youth-text);
}

.nav-links {
  padding: 1rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  color: var(--youth-text);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.nav-link:hover {
  background: var(--youth-bg-secondary);
  transform: translateX(4px);
}

.nav-link.is-active {
  background: var(--youth-primary);
  color: white;
}

.nav-icon {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

/* ============================================
   COLLAPSIBLE TAG FILTERS
   ============================================ */

.tag-filters-section {
  background: var(--youth-bg-secondary);
  border: 2px solid var(--youth-border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: var(--youth-spacing-lg);
}

.tag-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  transition: background-color 0.2s ease;
}

.tag-filters-header:hover {
  background: var(--youth-bg);
}

.tag-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tag-count {
  font-size: 0.875rem;
  color: var(--youth-text-secondary);
  font-weight: 500;
}

.tag-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  color: var(--youth-text-secondary);
}

.tag-toggle-btn:hover {
  background: var(--youth-bg-secondary);
  color: var(--youth-text);
}

.toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.tag-toggle-btn.is-expanded .toggle-icon {
  transform: rotate(180deg);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
}

/* ============================================
   RECOMMENDATIONS SECTION
   ============================================ */

.recommended-section {
  margin-bottom: var(--youth-spacing-xl);
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.05) 0%, 
    rgba(236, 72, 153, 0.03) 100%
  );
  border-radius: 20px;
  padding: 2rem;
  border: 2px solid rgba(139, 92, 246, 0.1);
}

.recommended-header {
  text-align: center;
  margin-bottom: 2rem;
}

.recommended-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--youth-text);
  margin: 0 0 0.5rem 0;
}

.recommended-subtitle {
  font-size: 1rem;
  color: var(--youth-text-secondary);
  margin: 0;
}

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

.recommended-card {
  background: var(--youth-bg);
  border-radius: 16px;
  overflow: clip;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--youth-border);
}

.recommended-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--youth-primary);
}

.recommended-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  overflow: clip;
}

.recommended-thumbnail {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, 
    var(--youth-primary) 0%, 
    var(--youth-secondary) 50%, 
    var(--youth-accent) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recommended-icon {
  font-size: 2rem;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.recommended-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.recommended-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--youth-text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  display: -ms-flexbox;
  display: box;
  -webkit-line-clamp: 2;
  -ms-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: clip;
}

.recommended-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
}

.recommended-category {
  background: var(--youth-primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.recommended-time {
  color: var(--youth-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.recommended-excerpt {
  font-size: 0.875rem;
  color: var(--youth-text-secondary);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: box;
  -webkit-line-clamp: 2;
  -ms-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: clip;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================/* Mobile Responsive */
@media (max-width: 768px) {
  .library-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .library-card__main {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .library-card__icon {
    font-size: 3rem;
  }
  
  .library-card__title {
    font-size: 2rem;
  }
  
  .library-card__subtitle {
    font-size: 1rem;
  }
  
  .library-card__stats {
    gap: 1rem;
  }
  
  .stat-item {
    padding: 0.75rem 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .library-card__actions {
    justify-content: center;
    width: 100%;
  }
  
  .btn-quick-start {
    flex: 1;
    justify-content: center;
  }
  
  .quick-start-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .nav-menu {
    width: 100%;
    max-width: 100%;
  }
  
  .nav-links {
    padding: 0.75rem;
  }
  
  .nav-link {
    padding: 0.875rem;
  }

  /* Enhanced mobile touch targets */
  .filter-select,
  .search-box {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .tag-filter-btn {
    min-height: 40px;
    padding: 0.75rem 1rem;
  }

  /* Improved mobile filter panel */
  .resources-filters {
    flex-direction: column;
    gap: var(--youth-spacing-md);
  }

  .filter-group {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .library-card {
    padding: 1rem;
  }
  
  .library-card__title {
    font-size: 1.75rem;
  }
  
  .library-card__stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .stat-item {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem;
  }
  
  .library-card__actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .tag-filters-section {
    padding: 0.75rem;
  }
  
  .tag-filters {
    gap: 0.375rem;
  }
  
  .recommended-section {
    padding: 1.5rem;
    margin-bottom: var(--youth-spacing-lg);
  }
  
  .recommended-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .recommended-card {
    flex-direction: column;
  }
  
  .recommended-link {
    flex-direction: column;
  }
  
  .recommended-thumbnail {
    width: 100%;
    height: 120px;
  }
  
  .recommended-content {
    padding: 1rem;
  }
}

/* ============================================
   ENHANCED FILTERS & CONTROLS
   ============================================ */

.resources-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--youth-spacing-md);
  padding: var(--youth-spacing-lg) 0;
  margin-bottom: var(--youth-spacing-lg);
  background: var(--youth-bg-secondary);
  border-radius: var(--youth-radius-lg);
  padding: var(--youth-spacing-lg);
  border: 1px solid var(--youth-border);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--youth-spacing-xs);
  flex: 1;
  min-width: 180px;
}

.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--youth-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-select,
.search-box {
  padding: 0.75rem 1rem;
  border: 2px solid var(--youth-border);
  border-radius: var(--youth-radius-md);
  background: var(--youth-bg);
  color: var(--youth-text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: var(--youth-transition);
}

.filter-select:focus,
.search-box:focus {
  outline: none;
  border-color: var(--youth-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-box {
  width: 100%;
  position: relative;
}

.search-box::placeholder {
  color: var(--youth-text-secondary);
  opacity: 0.8;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--youth-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.search-clear-btn:hover {
  background: var(--youth-bg-secondary);
  color: var(--youth-text);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--youth-bg);
  border: 2px solid var(--youth-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--youth-shadow-lg);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.search-suggestion {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--youth-border);
  font-size: 0.875rem;
  color: var(--youth-text);
}

.search-suggestion:hover {
  background: var(--youth-bg-secondary);
  color: var(--youth-primary);
}

.search-suggestion:last-child {
  border-bottom: none;
}

/* Tag filter pills */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: var(--youth-spacing-lg);
}

.tag-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--youth-border);
  border-radius: var(--youth-radius-pill);
  background: var(--youth-bg);
  color: var(--youth-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--youth-transition);
}

.tag-filter-btn:hover {
  border-color: var(--youth-primary);
  color: var(--youth-primary);
  background: rgba(99, 102, 241, 0.06);
}

.tag-filter-btn.active {
  background: var(--youth-primary);
  color: white;
  border-color: var(--youth-primary);
}

/* ============================================
   RESOURCES HEADER NAV (in site-header)
   ============================================ */

/* Prevent any vertical scroll within the resources header */
.site-header.resources-section-header {
  overflow-y: hidden;
  overflow-x: clip;
}

/* Resources sub-nav toggle button (hamburger) - right side of header */
.resources-sub-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: 0.5rem;
  background: transparent;
  border: 2px solid var(--youth-border, #e2e8f0);
  border-radius: var(--youth-radius-md, 8px);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: var(--youth-text, #1e293b);
}
.resources-sub-nav-toggle:hover {
  border-color: var(--youth-primary, #6366f1);
  background: rgba(99, 102, 241, 0.08);
  color: var(--youth-primary, #6366f1);
}
.resources-sub-nav-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--youth-primary, #6366f1);
}
.resources-sub-nav-toggle[aria-expanded="true"] {
  border-color: var(--youth-primary, #6366f1);
  background: rgba(99, 102, 241, 0.12);
}

.resources-sub-nav-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}
.resources-sub-nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.resources-sub-nav-toggle[aria-expanded="true"] .resources-sub-nav-toggle__icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.resources-sub-nav-toggle[aria-expanded="true"] .resources-sub-nav-toggle__icon span:nth-child(2) {
  opacity: 0;
}
.resources-sub-nav-toggle[aria-expanded="true"] .resources-sub-nav-toggle__icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.resources-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--youth-bg-secondary, #f8fafc);
  border-bottom: 1px solid var(--youth-border, #e2e8f0);
  overflow: clip;
  max-height: 200px;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.resources-header-nav.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
  opacity: 0;
  pointer-events: none;
}

.resources-header-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.resources-header-nav__link {
  padding: 0.375rem 0.75rem;
  border-radius: var(--youth-radius-md, 8px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--youth-text-secondary, #64748b);
  text-decoration: none;
  transition: all 0.2s ease;
}

.resources-header-nav__link:hover {
  color: var(--youth-primary, #6366f1);
  background: rgba(99, 102, 241, 0.08);
}

.resources-header-nav__link.is-active {
  color: var(--youth-primary, #6366f1);
  background: rgba(99, 102, 241, 0.12);
}

/* Ensure resources sub-nav toggle is visible and doesn't get hidden */
@media (max-width: 1024px) {
  .resources-section-header .main-nav {
    flex-wrap: nowrap;
  }
  .resources-sub-nav-toggle {
    margin-left: 0.25rem;
  }
}

@media (max-width: 768px) {
  .resources-header-nav {
    padding: 0.5rem;
    overflow-x: clip;
    overflow-y: hidden;
  }
  .resources-header-nav__link {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ============================================
   SUB-NAV (legacy, used in some pages)
   ============================================ */

.resources-sub-nav {
  margin-bottom: var(--youth-spacing-lg);
  padding-bottom: var(--youth-spacing-md);
  border-bottom: 2px solid var(--youth-border);
}

.resources-sub-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.resources-sub-nav__link {
  padding: 0.5rem 1rem;
  border-radius: var(--youth-radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--youth-text-secondary);
  text-decoration: none;
  transition: var(--youth-transition);
}

.resources-sub-nav__link:hover {
  color: var(--youth-primary);
  background: rgba(99, 102, 241, 0.08);
}

.resources-sub-nav__link.is-active {
  color: var(--youth-primary);
  background: rgba(99, 102, 241, 0.12);
}

/* ============================================
   RESOURCE CARDS
   ============================================ */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--youth-spacing-lg);
  margin-bottom: var(--youth-spacing-xl);
}

.resource-card {
  background: var(--youth-bg);
  border: 2px solid var(--youth-border);
  border-radius: var(--youth-radius-lg);
  overflow: clip;
  transition: var(--youth-transition);
  position: relative;
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--youth-primary), var(--youth-secondary));
  opacity: 0;
  transition: opacity var(--youth-transition);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--youth-shadow-lg);
  border-color: var(--youth-primary);
}

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

.resource-link {
  display: block;
  padding: var(--youth-spacing-lg);
  text-decoration: none;
  color: inherit;
}

.resource-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--youth-spacing-sm);
  gap: var(--youth-spacing-sm);
}

.resource-type-icon {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.9;
}

.resource-badges {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  align-items: flex-end;
}

.category-badge,
.type-badge {
  padding: 0.25rem 0.625rem;
  border-radius: var(--youth-radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-badge {
  color: white;
}

.type-badge {
  background: var(--youth-bg-secondary);
  color: var(--youth-text-secondary);
  border: 1px solid var(--youth-border);
}

.resource-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--youth-text);
  margin: 0 0 var(--youth-spacing-xs);
  line-height: 1.35;
  display: -webkit-box;
  display: -ms-flexbox;
  display: box;
  -webkit-line-clamp: 2;
  -ms-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: clip;
}

.resource-author {
  font-size: 0.8125rem;
  color: var(--youth-text-secondary);
  font-style: italic;
  margin: 0 0 var(--youth-spacing-sm);
}

.resource-excerpt {
  font-size: 0.875rem;
  color: var(--youth-text-secondary);
  line-height: 1.55;
  margin: 0 0 var(--youth-spacing-md);
  display: -webkit-box;
  display: -ms-flexbox;
  display: box;
  -webkit-line-clamp: 3;
  -ms-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: clip;
}

.resource-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  padding-top: var(--youth-spacing-sm);
  border-top: 1px solid var(--youth-border);
}

.resource-tags .tag {
  padding: 0.25rem 0.5rem;
  background: var(--youth-bg-secondary);
  border-radius: var(--youth-radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--youth-text-secondary);
  border: 1px solid var(--youth-border);
}

.mental-health-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--youth-spacing-sm);
  padding: var(--youth-spacing-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--youth-warning);
  border-radius: var(--youth-radius-md);
  font-size: 0.75rem;
  color: var(--youth-text);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading-state,
.empty-state {
  padding: var(--youth-spacing-xl);
  text-align: center;
  background: var(--youth-bg-secondary);
  border-radius: var(--youth-radius-lg);
  border: 2px dashed var(--youth-border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--youth-spacing-md);
}

.loading-state p,
.empty-state p {
  margin: 0;
  color: var(--youth-text-secondary);
  font-size: 1rem;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--youth-border);
  border-top-color: var(--youth-primary);
  border-radius: 50%;
  animation: resources-spin 0.8s linear infinite;
}

@keyframes resources-spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */

.category-section {
  margin-bottom: var(--youth-spacing-xl);
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--youth-primary);
  margin: 0 0 var(--youth-spacing-md);
  padding-bottom: var(--youth-spacing-sm);
  border-bottom: 3px solid var(--youth-primary);
  display: inline-block;
}

/* ============================================
   DARK MODE
   ============================================ */

.dark-mode .resources-filters {
  background: var(--youth-bg-secondary);
  border-color: var(--youth-border);
}

.dark-mode .resource-card:hover {
  border-color: var(--youth-primary);
}

.dark-mode .loading-state,
.dark-mode .empty-state {
  background: var(--youth-bg-secondary);
  border-color: var(--youth-border);
}

/* === youth/resources/css/category-navigation.css === */
/**
 * Category Navigation Styles
 * 
 * Styles for category grid/list view with resource counts.
 * Mobile-first responsive design.
 */

.category-navigation {
  margin-bottom: 2rem;
}

.category-navigation__header {
  margin-bottom: 1.5rem;
}

.category-navigation__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.category-navigation__subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

/* View Toggle */
.category-navigation__view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.view-toggle-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.view-toggle-btn--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

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

.category-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.category-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.category-card:active {
  transform: translateY(0);
}

.category-card--selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.category-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.category-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem 0;
}

.category-card__description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  flex: 1;
}

.category-card__count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #3b82f6;
  font-weight: 600;
  margin-top: auto;
}

.category-card__count-number {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 700;
}

/* List View */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-list-item {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.category-list-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.category-list-item--selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.category-list-item__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.category-list-item__content {
  flex: 1;
  min-width: 0;
}

.category-list-item__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.category-list-item__description {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
  overflow: clip;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-list-item__count {
  flex-shrink: 0;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.875rem;
}

/* All Categories Option */
.category-card--all,
.category-list-item--all {
  border-color: #d1d5db;
  background: #f9fafb;
}

.category-card--all:hover,
.category-list-item--all:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
}

.category-card--all.category-card--selected,
.category-list-item--all.category-list-item--selected {
  border-color: #6b7280;
  background: #e5e7eb;
}

/* Loading State */
.category-navigation--loading {
  opacity: 0.6;
  pointer-events: none;
}

.category-navigation__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  color: #6b7280;
}

.category-navigation__loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Empty State */
.category-navigation__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.category-navigation__empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.category-navigation__empty-text {
  font-size: 1rem;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    min-height: auto;
    padding: 1.25rem;
  }

  .category-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .category-list-item__description {
    white-space: normal;
  }

  .category-list-item__count {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .category-navigation__title {
    font-size: 1.25rem;
  }

  .category-card__icon,
  .category-list-item__icon {
    font-size: 2rem;
  }

  .category-card__name,
  .category-list-item__name {
    font-size: 1rem;
  }
}

/* Accessibility */
.category-card:focus,
.category-list-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Print Styles */
@media print {
  .category-navigation__view-toggle {
    display: none;
  }

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

/* === youth/resources/css/filter-panel.css === */
/**
 * Filter Panel Styles
 * 
 * Styles for the multi-select filter UI with four filter categories.
 * Mobile-first responsive design with touch-friendly interactions.
 */

.filter-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.filter-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.filter-panel__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.filter-panel__clear-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-panel__clear-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

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

.filter-panel__clear-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.filter-panel__count {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f0f9ff;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: #0369a1;
}

.filter-panel__count-number {
  font-weight: 700;
  font-size: 1.125rem;
}

.filter-panel__categories {
  display: grid;
  gap: 1.5rem;
}

/* Filter Category */
.filter-category {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
}

.filter-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0;
  user-select: none;
}

.filter-category__title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.filter-category__toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.filter-category--expanded .filter-category__toggle {
  transform: rotate(180deg);
}

.filter-category__options {
  display: none;
  padding-top: 0.75rem;
  gap: 0.5rem;
  flex-direction: column;
}

.filter-category--expanded .filter-category__options {
  display: flex;
}

/* Filter Option (Checkbox) */
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 44px; /* Touch-friendly */
}

.filter-option:hover {
  background: #f9fafb;
}

.filter-option__checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-option__checkbox--checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.filter-option__checkbox--checked::after {
  content: "✓";
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.filter-option__label {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

.filter-option__count {
  font-size: 0.75rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

/* Active Filters Summary */
.filter-panel__active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.375rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
}

.filter-tag__remove {
  background: transparent;
  border: none;
  color: #1e40af;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.filter-tag__remove:hover {
  background: rgba(30, 64, 175, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .filter-panel {
    padding: 1rem;
  }

  .filter-panel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-panel__clear-btn {
    width: 100%;
  }

  .filter-category__header {
    padding: 0.75rem 0;
  }

  .filter-option {
    padding: 0.75rem;
  }
}

/* Mobile Bottom Sheet (for small screens) */
@media (max-width: 640px) {
  .filter-panel--mobile-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .filter-panel--mobile-sheet.active {
    transform: translateY(0);
  }

  .filter-panel__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .filter-panel__mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Loading State */
.filter-panel--loading {
  opacity: 0.6;
  pointer-events: none;
}

.filter-panel__loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Accessibility */
.filter-option:focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.filter-category__header:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print Styles */
@media print {
  .filter-panel {
    display: none;
  }
}

/* === youth/resources/css/search-ui.css === */
/**
 * Search UI Styles
 * 
 * Styles for:
 * - Search input with autocomplete
 * - Scenario prompts
 * - Search results with highlighting
 * - Empty state
 * 
 * Requirements: 4.1, 4.2, 4.6, 4.7
 */

/* ============================================================================
   Search Container
   ============================================================================ */

.search-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.search-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

/* ============================================================================
   Search Input
   ============================================================================ */

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input-group:focus-within {
  border-color: #4a90e2;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.search-icon {
  font-size: 1.25rem;
  color: #666;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
  background: transparent;
}

.search-input::placeholder {
  color: #999;
}

.search-clear-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: none;
}

.search-input-group.has-value .search-clear-btn {
  display: block;
}

.search-clear-btn:hover {
  background: #f0f0f0;
  color: #666;
}

/* ============================================================================
   Autocomplete Dropdown
   ============================================================================ */

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-top: -10px;
  padding-top: 10px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.autocomplete-dropdown.visible {
  display: block;
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: #f5f5f5;
}

.autocomplete-item-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.autocomplete-item-text {
  flex: 1;
  color: #333;
  font-size: 0.95rem;
}

.autocomplete-item-type {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.autocomplete-section-title {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #f0f0f0;
  margin-top: 0.5rem;
}

.autocomplete-section-title:first-child {
  border-top: none;
  margin-top: 0;
}

/* ============================================================================
   Scenario Prompts
   ============================================================================ */

.scenario-prompts {
  margin-bottom: 2rem;
}

.scenario-prompts-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scenario-chip {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.scenario-chip:hover {
  background: #e8f4ff;
  border-color: #4a90e2;
  color: #4a90e2;
}

.scenario-chip-icon {
  font-size: 1rem;
}

/* ============================================================================
   Search Results
   ============================================================================ */

.search-results {
  margin-top: 2rem;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.search-results-count {
  font-size: 1rem;
  color: #666;
}

.search-results-count strong {
  color: #333;
  font-weight: 600;
}

.search-results-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-results-sort label {
  font-size: 0.875rem;
  color: #666;
}

.search-results-sort select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #333;
  background: white;
  cursor: pointer;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ============================================================================
   Search Result Item
   ============================================================================ */

.search-result-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-result-item:hover {
  border-color: #4a90e2;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
  transform: translateY(-2px);
}

.search-result-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.search-result-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.search-result-title mark {
  background: #fff3cd;
  color: #333;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.search-result-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.search-result-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.search-result-description mark {
  background: #fff3cd;
  color: #333;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
  font-weight: 500;
}

.search-result-matched-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.matched-field-badge {
  background: #e8f4ff;
  color: #4a90e2;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.search-result-relevance {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
}

/* ============================================================================
   Empty State
   ============================================================================ */

.search-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.search-empty-icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.search-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0.5rem;
}

.search-empty-message {
  color: #999;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.search-suggestions {
  margin-top: 2rem;
}

.search-suggestions-title {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 1rem;
}

.search-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.search-suggestion-chip {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-suggestion-chip:hover {
  background: #4a90e2;
  border-color: #4a90e2;
  color: white;
}

/* ============================================================================
   Loading State
   ============================================================================ */

.search-loading {
  text-align: center;
  padding: 3rem 2rem;
}

.search-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0f0f0;
  border-top-color: #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.search-loading-text {
  color: #999;
  font-size: 0.875rem;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
  .search-container {
    padding: 0 1rem;
  }

  .search-input-group {
    padding: 0.625rem 0.875rem;
  }

  .search-input {
    font-size: 0.9375rem;
  }

  .search-result-item {
    padding: 1rem;
  }

  .search-result-title {
    font-size: 1.125rem;
  }

  .search-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .scenario-chips {
    gap: 0.375rem;
  }

  .scenario-chip {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .search-result-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .search-result-icon {
    font-size: 1.5rem;
  }

  .search-result-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* === youth/resources/css/resource-card.css === */
/**
 * Enhanced Resource Card Styles
 * Beautiful, modern cards with better visual hierarchy
 */

/* Grid Layout */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* List Layout */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

/* Enhanced Card Base */
.resource-card {
  background: var(--youth-bg);
  border-radius: 16px;
  overflow: clip;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--youth-border);
  position: relative;
}

.resource-card:hover {
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: var(--youth-primary);
}

.resource-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--youth-primary), var(--youth-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* Category-specific card colors */
.resource-card[data-category="faith_basics"]::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.resource-card[data-category="apologetics"]::before {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.resource-card[data-category="relationships"]::before {
  background: linear-gradient(90deg, #ec4899, #f59e0b);
}

.resource-card[data-category="mental_health"]::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.resource-card[data-category="culture"]::before {
  background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.resource-card[data-category="identity_purpose"]::before {
  background: linear-gradient(90deg, #10b981, #6366f1);
}

.resource-card[data-category="tough_questions"]::before {
  background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
}

/* Compact variant for list view */
.resource-card--compact {
  flex-direction: row;
  max-height: 180px;
}

.resource-card--compact .resource-card__thumbnail {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.resource-card--compact .resource-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Enhanced Thumbnail */
.resource-card__thumbnail {
  position: relative;
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: clip;
}

.resource-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-card__thumbnail img {
  transform: scale(1.05);
}

.resource-card__thumbnail--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    var(--youth-primary) 0%, 
    var(--youth-secondary) 50%, 
    var(--youth-accent) 100%
  );
}

.resource-card__thumbnail--error {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.resource-card__type-icon {
  font-size: 4rem;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.resource-card:hover .resource-card__type-icon {
  transform: scale(1.1);
}

.resource-card__type-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 1.25rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Enhanced Content */
.resource-card__content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Enhanced Header */
.resource-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.resource-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--youth-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: clip;
  transition: color 0.3s ease;
}

.resource-card:hover .resource-card__title {
  color: var(--youth-primary);
}

.resource-card__category {
  font-size: 0.8125rem;
  color: var(--youth-text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced Description */
.resource-card__description {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--youth-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: clip;
  flex: 1;
}

/* Enhanced Metadata Badges */
.resource-card__metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.resource-card__badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.resource-card__badge--category {
  background: var(--youth-primary);
  color: white;
}

.resource-card__badge--type {
  background: var(--youth-bg-secondary);
  color: var(--youth-text-secondary);
  border: 1px solid var(--youth-border);
}

.resource-card__badge--time {
  background: var(--youth-success);
  color: white;
}

/* Enhanced Tags */
.resource-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
}

.resource-card__tag {
  padding: 0.25rem 0.625rem;
  background: var(--youth-bg-secondary);
  color: var(--youth-text-secondary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--youth-border);
  transition: all 0.2s ease;
}

.resource-card:hover .resource-card__tag {
  background: var(--youth-primary);
  color: white;
  border-color: var(--youth-primary);
}

/* Progress Indicator */
.resource-card__progress {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--youth-success);
  color: white;
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mental Health Warning */
.mental-health-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 2px solid var(--youth-warning);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--youth-text);
  font-weight: 500;
}

/* Cached Indicator */
.resource-card__cached {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: var(--youth-success);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .resource-card {
    border-radius: 12px;
  }
  
  .resource-card__content {
    padding: 1.25rem;
  }
  
  .resource-card__title {
    font-size: 1.125rem;
  }
  
  .resource-card__thumbnail {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .resource-grid {
    gap: 1rem;
  }
  
  .resource-card__content {
    padding: 1rem;
  }
  
  .resource-card__thumbnail {
    height: 140px;
  }
  
  .resource-card__type-icon {
    font-size: 3rem;
  }
}

/* Loading State */
.resource-card--loading {
  opacity: 0.6;
  pointer-events: none;
}

.resource-card--loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* === youth/resources/css/responsive.css === */
/**
 * Mobile-First Responsive Design
 * Youth Resources Section
 * 
 * Requirements: 13.1, 13.2, 13.3, 13.7
 * - Mobile-first breakpoints
 * - Touch-friendly tap targets (44x44px minimum)
 * - Optimized filter UI for small screens
 * - Responsive typography and spacing
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Breakpoints */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;

  /* Touch Target Sizes */
  --touch-target-min: 44px;
  --touch-target-comfortable: 48px;
  --touch-target-large: 56px;

  /* Spacing Scale (Mobile-First) */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 1rem; /* 16px */
  --spacing-lg: 1.5rem; /* 24px */
  --spacing-xl: 2rem; /* 32px */
  --spacing-2xl: 3rem; /* 48px */
  --spacing-3xl: 4rem; /* 64px */

  /* Typography Scale (Mobile-First) */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* ============================================
   BASE MOBILE STYLES
   ============================================ */

/* Ensure proper box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Mobile-first body styles */
body {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

/* Container with mobile-first padding */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

/* ============================================
   TYPOGRAPHY - MOBILE FIRST
   ============================================ */

/* Headings - Mobile sizes */
h1,
.h1 {
  font-size: var(--font-size-3xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-lg);
}

h2,
.h2 {
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h3,
.h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h4,
.h4 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-normal);
  margin-bottom: var(--spacing-sm);
}

/* Body text */
p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   TOUCH-FRIENDLY INTERACTIVE ELEMENTS
   ============================================ */

/* All buttons and links must meet minimum touch target */
button,
.btn,
a.button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: var(--spacing-sm) var(--spacing-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly form inputs */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  min-height: var(--touch-target-min);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: var(--font-size-base);
  border-radius: 8px;
  width: 100%;
}

/* Larger tap targets for primary actions */
.btn-primary,
.btn-cta {
  min-height: var(--touch-target-comfortable);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
}

/* ============================================
   GRID LAYOUTS - MOBILE FIRST
   ============================================ */

/* Resource grid - single column on mobile */
.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

/* Category grid - single column on mobile */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

/* Filter grid - stacked on mobile */
.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

/* ============================================
   MOBILE-OPTIMIZED COMPONENTS
   ============================================ */

/* Mobile-optimized filter panel */
.filter-panel {
  position: relative;
  background: var(--youth-bg, #ffffff);
  border-radius: 12px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.filter-panel__header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.filter-panel__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.filter-panel__clear-btn {
  width: 100%;
  min-height: var(--touch-target-min);
}

/* Mobile-optimized search */
.search-box {
  width: 100%;
  min-height: var(--touch-target-comfortable);
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  border-radius: 12px;
}

/* Mobile-optimized resource cards */
.resource-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: clip;
}

.resource-card__content {
  padding: var(--spacing-md);
}

.resource-card__title {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
}

.resource-card__description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

/* Mobile-optimized badges */
.badge {
  padding: 0.375rem 0.75rem;
  font-size: var(--font-size-xs);
  border-radius: 6px;
  white-space: nowrap;
}

/* Mobile-optimized engagement buttons */
.engagement-btn {
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-sm);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

/* Mobile-friendly navigation */
.nav-menu {
  display: none;
}

.nav-toggle {
  display: block;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
}

/* Mobile bottom navigation spacing */
body {
  padding-bottom: 80px; /* Space for bottom nav */
}

/* ============================================
   TABLET BREAKPOINT (640px+)
   ============================================ */

@media (min-width: 640px) {
  /* Container padding increase */
  .container {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }

  /* Typography scale up */
  h1,
  .h1 {
    font-size: var(--font-size-4xl);
  }

  h2,
  .h2 {
    font-size: var(--font-size-3xl);
  }

  /* Two-column grids */
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  /* Filter panel horizontal layout */
  .filter-panel__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .filter-panel__clear-btn {
    width: auto;
  }

  /* Two-column filter grid */
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   DESKTOP BREAKPOINT (768px+)
   ============================================ */

@media (min-width: 768px) {
  /* Container max-width */
  .container {
    max-width: var(--container-md);
  }

  /* Three-column grids */
  .resource-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* Horizontal filter layout */
  .filter-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Larger spacing */
  .filter-panel {
    padding: var(--spacing-lg);
  }

  .resource-card__content {
    padding: var(--spacing-lg);
  }

  /* Show desktop navigation */
  .nav-menu {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  /* Remove bottom nav spacing */
  body {
    padding-bottom: 0;
  }

  .youth-mobile-bottom-nav {
    display: none;
  }
}

/* ============================================
   LARGE DESKTOP BREAKPOINT (1024px+)
   ============================================ */

@media (min-width: 1024px) {
  /* Container max-width */
  .container {
    max-width: var(--container-lg);
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }

  /* Four-column grids */
  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
  }

  /* Typography scale up */
  h1,
  .h1 {
    font-size: 3rem;
  }

  /* Larger spacing */
  .filter-panel {
    padding: var(--spacing-xl);
  }
}

/* ============================================
   EXTRA LARGE DESKTOP BREAKPOINT (1280px+)
   ============================================ */

@media (min-width: 1280px) {
  /* Container max-width */
  .container {
    max-width: var(--container-xl);
  }

  /* Optional: 5-column grid for very large screens */
  .resource-grid--wide {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

/* Detect touch devices */
@media (hover: none) and (pointer: coarse) {
  /* Increase all tap targets */
  button,
  .btn,
  a.button {
    min-height: var(--touch-target-comfortable);
    padding: var(--spacing-md) var(--spacing-lg);
  }

  /* Larger form inputs */
  input,
  textarea,
  select {
    min-height: var(--touch-target-comfortable);
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Remove hover effects on touch devices */
  .resource-card:hover {
    transform: none;
  }

  /* Increase spacing between interactive elements */
  .engagement-btn {
    margin: var(--spacing-xs);
  }

  /* Larger filter options */
  .filter-option {
    min-height: var(--touch-target-comfortable);
    padding: var(--spacing-md);
  }

  /* Larger checkbox hit areas */
  .filter-option__checkbox {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
  button,
  .btn {
    border: 2px solid currentColor;
  }

  .resource-card {
    border: 2px solid currentColor;
  }

  .badge {
    border: 1px solid currentColor;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  /* Hide interactive elements */
  .filter-panel,
  .nav-toggle,
  .youth-mobile-bottom-nav,
  .engagement-btn,
  button {
    display: none !important;
  }

  /* Optimize for print */
  .resource-card {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Remove shadows and backgrounds */
  .resource-card,
  .filter-panel {
    box-shadow: none;
    background: white;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Responsive visibility utilities */
.mobile-only {
  display: block;
}

.tablet-up {
  display: none;
}

.desktop-up {
  display: none;
}

@media (min-width: 640px) {
  .mobile-only {
    display: none;
  }

  .tablet-up {
    display: block;
  }
}

@media (min-width: 768px) {
  .desktop-up {
    display: block;
  }
}

/* Responsive spacing utilities */
.spacing-mobile {
  padding: var(--spacing-md);
}

.spacing-tablet {
  padding: var(--spacing-md);
}

.spacing-desktop {
  padding: var(--spacing-md);
}

@media (min-width: 640px) {
  .spacing-tablet {
    padding: var(--spacing-lg);
  }
}

@media (min-width: 768px) {
  .spacing-desktop {
    padding: var(--spacing-xl);
  }
}

/* Responsive text alignment */
.text-center-mobile {
  text-align: center;
}

@media (min-width: 768px) {
  .text-center-mobile {
    text-align: left;
  }
}

/* Touch-friendly spacing */
.touch-spacing {
  margin: var(--spacing-sm);
}

@media (hover: none) and (pointer: coarse) {
  .touch-spacing {
    margin: var(--spacing-md);
  }
}

/* === youth/resources/css/category-theme.css === */
/* ===================================
   Category Page Themes
   Matches colors from resources homepage cards (resources-bento-grid.css)
   =================================== */

/* Base category page - uses CSS variables set by theme class */
.category-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--youth-bg) 0%, var(--cat-bg-tint) 100%);
  overscroll-behavior-y: none;
}

.category-theme-faith_basics {
  --cat-primary: #FF6B5B;
  --cat-primary-hover: #E85A4A;
  --cat-primary-light: #FFA598;
  --cat-bg-tint: rgba(255, 107, 91, 0.05);
  --cat-scripture-gradient: linear-gradient(135deg, #FF6B5B 0%, #FFA598 100%);
  --cat-shadow: rgba(255, 107, 91, 0.3);
}

.category-theme-apologetics {
  --cat-primary: #FFB347;
  --cat-primary-hover: #E5A03A;
  --cat-primary-light: #FFDDA0;
  --cat-bg-tint: rgba(255, 243, 214, 0.6);
  --cat-scripture-gradient: linear-gradient(135deg, #FFB347 0%, #FFDDA0 100%);
  --cat-shadow: rgba(255, 179, 71, 0.3);
}

.category-theme-identity_purpose {
  --cat-primary: #5AA8D8;
  --cat-primary-hover: #4A98C8;
  --cat-primary-light: #AADCF5;
  --cat-bg-tint: rgba(220, 240, 252, 0.8);
  --cat-scripture-gradient: linear-gradient(135deg, #7BC8F6 0%, #AADCF5 100%);
  --cat-shadow: rgba(123, 200, 246, 0.3);
}

.category-theme-tough_questions {
  --cat-primary: #1C1B2E;
  --cat-primary-hover: #2A2940;
  --cat-primary-light: #3A3850;
  --cat-bg-tint: rgba(28, 27, 46, 0.05);
  --cat-scripture-gradient: linear-gradient(135deg, #1C1B2E 0%, #3A3850 100%);
  --cat-shadow: rgba(28, 27, 46, 0.4);
}

.category-theme-culture_media {
  --cat-primary: #F7A8B8;
  --cat-primary-hover: #E895A5;
  --cat-primary-light: #FBCFE8;
  --cat-bg-tint: rgba(247, 168, 184, 0.15);
  --cat-scripture-gradient: linear-gradient(135deg, #F7A8B8 0%, #FBCFE8 100%);
  --cat-shadow: rgba(247, 168, 184, 0.3);
}

.category-theme-dating_friendships {
  --cat-primary: #6DDAB4;
  --cat-primary-hover: #5AC9A3;
  --cat-primary-light: #99F6E4;
  --cat-bg-tint: rgba(109, 218, 180, 0.08);
  --cat-scripture-gradient: linear-gradient(135deg, #6DDAB4 0%, #99F6E4 100%);
  --cat-shadow: rgba(109, 218, 180, 0.3);
}

.category-theme-daily_discipleship {
  --cat-primary: #C3B1E1;
  --cat-primary-hover: #B3A0D1;
  --cat-primary-light: #D4C5F0;
  --cat-bg-tint: rgba(195, 177, 225, 0.12);
  --cat-scripture-gradient: linear-gradient(135deg, #C3B1E1 0%, #D4C5F0 100%);
  --cat-shadow: rgba(195, 177, 225, 0.3);
}

.category-theme-emotional_health {
  --cat-primary: #A8D5A2;
  --cat-primary-hover: #98C592;
  --cat-primary-light: #C8E8C4;
  --cat-bg-tint: rgba(168, 213, 162, 0.12);
  --cat-scripture-gradient: linear-gradient(135deg, #A8D5A2 0%, #C8E8C4 100%);
  --cat-shadow: rgba(168, 213, 162, 0.3);
}

/* Category header */
.category-header {
  text-align: center;
  padding: var(--youth-spacing-xl) var(--youth-spacing-md) var(--youth-spacing-lg);
  max-width: 800px;
  margin: 0 auto;
}

.category-icon {
  font-size: 4rem;
  margin-bottom: var(--youth-spacing-lg);
  display: block;
}

.category-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--youth-text);
  margin-bottom: var(--youth-spacing-md);
  line-height: 1.2;
}

.category-description {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--youth-text-secondary);
  margin-bottom: var(--youth-spacing-xl);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Scripture block - themed */
.category-scripture {
  background: var(--cat-scripture-gradient);
  color: white;
  padding: var(--youth-spacing-lg);
  border-radius: 16px;
  margin-bottom: var(--youth-spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.scripture-text {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
}

.scripture-reference {
  font-weight: 600;
  margin-bottom: var(--youth-spacing-sm);
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Journey Stage Selector - themed */
.journey-stages {
  max-width: 600px;
  margin: 0 auto var(--youth-spacing-xl);
  padding: var(--youth-spacing-lg);
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.journey-stages-label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--youth-text);
  margin-bottom: var(--youth-spacing-md);
  text-align: center;
}

.journey-stages-tabs {
  display: flex;
  gap: var(--youth-spacing-sm);
  background: var(--youth-bg-secondary);
  padding: 0.25rem;
  border-radius: 12px;
}

.journey-stage-tab {
  flex: 1;
  padding: var(--youth-spacing-md);
  border: none;
  background: transparent;
  color: var(--youth-text-secondary);
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 0.875rem;
}

.journey-stage-tab:hover {
  background: color-mix(in srgb, var(--cat-primary) 15%, transparent);
  color: var(--youth-text);
}

/* Fallback for color-mix - use primary with opacity */
@supports not (background: color-mix(in srgb, red, transparent)) {
  .category-theme-faith_basics .journey-stage-tab:hover { background: rgba(255, 107, 91, 0.15); }
  .category-theme-apologetics .journey-stage-tab:hover { background: rgba(255, 179, 71, 0.15); }
  .category-theme-identity_purpose .journey-stage-tab:hover { background: rgba(123, 200, 246, 0.15); }
  .category-theme-tough_questions .journey-stage-tab:hover { background: rgba(28, 27, 46, 0.15); }
  .category-theme-culture_media .journey-stage-tab:hover { background: rgba(247, 168, 184, 0.15); }
  .category-theme-dating_friendships .journey-stage-tab:hover { background: rgba(109, 218, 180, 0.15); }
  .category-theme-daily_discipleship .journey-stage-tab:hover { background: rgba(195, 177, 225, 0.15); }
  .category-theme-emotional_health .journey-stage-tab:hover { background: rgba(168, 213, 162, 0.15); }
}

.journey-stage-tab.active {
  background: var(--cat-primary);
  color: white;
  box-shadow: 0 2px 8px var(--cat-shadow);
}

.journey-stage-icon {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
}

/* Resources Grid - themed */
.resources-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--youth-spacing-xl) var(--youth-spacing-md);
}

.resources-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--youth-spacing-lg);
  flex-wrap: wrap;
  gap: var(--youth-spacing-md);
}

.resources-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--youth-text);
}

.resources-count {
  color: var(--youth-text-secondary);
  font-size: 0.875rem;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--youth-spacing-lg);
}

.resource-card {
  background: white;
  border-radius: 16px;
  padding: var(--youth-spacing-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 2px solid var(--youth-border);
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--cat-primary);
}

.resource-thumbnail {
  width: 100%;
  height: 160px;
  background: var(--cat-scripture-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--youth-spacing-md);
  font-size: 3rem;
  color: white;
}

.resource-type-badge {
  position: absolute;
  top: var(--youth-spacing-md);
  right: var(--youth-spacing-md);
  background: color-mix(in srgb, var(--cat-primary) 90%, black);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.resource-content {
  flex: 1;
}

.resource-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--youth-text);
  margin-bottom: var(--youth-spacing-sm);
  line-height: 1.3;
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: var(--youth-spacing-sm);
  margin-bottom: var(--youth-spacing-sm);
  font-size: 0.875rem;
  color: var(--youth-text-secondary);
}

.resource-duration {
  background: var(--youth-bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.resource-description {
  font-size: 0.875rem;
  color: var(--youth-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--youth-spacing-md);
}

.load-more {
  text-align: center;
  margin-top: var(--youth-spacing-xl);
}

.load-more-btn {
  background: var(--cat-primary);
  color: white;
  border: none;
  padding: var(--youth-spacing-md) var(--youth-spacing-xl);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.load-more-btn:hover {
  background: var(--cat-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--cat-shadow);
}

/* Additional fallback: resource-type-badge uses var(--cat-primary) when color-mix unsupported */
@supports not (background: color-mix(in srgb, red, blue)) {
  .resource-type-badge {
    background: var(--cat-primary);
  }
}

/* Tough Questions: dark theme needs white text on scripture */
.category-theme-tough_questions .category-scripture {
  color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-header {
    padding: var(--youth-spacing-lg) var(--youth-spacing-sm) var(--youth-spacing-md);
  }

  .journey-stages {
    margin: 0 var(--youth-spacing-md);
    padding: var(--youth-spacing-md);
  }

  .journey-stage-tab {
    font-size: 0.75rem;
    padding: var(--youth-spacing-sm);
  }

  .journey-stage-icon {
    font-size: 1rem;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: var(--youth-spacing-md);
  }

  .resources-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-thumbnail {
    height: 120px;
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .category-icon {
    font-size: 3rem;
  }

  .journey-stages-tabs {
    flex-direction: column;
  }

  .resource-thumbnail {
    height: 100px;
  }
}

