/*!
 * Volunteer Platform - Responsive CSS
 * Mobile-First Responsive Design
 * 2025 Design - Digital Platform for Local Volunteer Projects
 */

/* Base Mobile Styles (up to 576px) */
/* Already defined in main.css as default */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .hero h1 {
    font-size: var(--font-size-4xl);
  }
  
  /* Bootstrap handles responsive grid - no custom grid needed */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  /* Header */
  .navbar-brand {
    font-size: var(--font-size-xl) !important;
  }
  
  .nav-link {
    font-size: var(--font-size-base);
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  /* Hero Section */
  .hero {
    padding: var(--spacing-3xl) 0;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: var(--font-size-xl);
  }
  
  /* Decorative Blobs */
  .blob-1 {
    width: 400px;
    height: 400px;
  }
  
  .blob-2 {
    width: 250px;
    height: 250px;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: var(--font-size-xl);
  }
  
  /* Bootstrap handles responsive grid - no custom grid needed */
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-2xl);
  }
  
  /* Testimonials styles removed - now using Bootstrap 5 cards */
  
  /* Forms */
  .contact-form {
    padding: var(--spacing-3xl);
  }
  
  .form-control {
    font-size: var(--font-size-base);
  }
  
  /* Team Member Images */
  .team-member img {
    width: 180px;
    height: 180px;
  }
  
  /* Process Steps */
  .process-step::before {
    height: 80px;
  }
  
  .process-number {
    width: 80px;
    height: 80px;
    font-size: var(--font-size-xl);
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  /* Header */
  .navbar-brand {
    font-size: var(--font-size-2xl) !important;
  }
  
  .nav-link {
    font-size: var(--font-size-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: var(--font-size-2xl);
  }
  
  /* Decorative Blobs */
  .blob-1 {
    width: 500px;
    height: 500px;
  }
  
  .blob-2 {
    width: 300px;
    height: 300px;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 3rem;
  }
  
  .section-subtitle {
    font-size: var(--font-size-2xl);
  }
  
  /* Bootstrap handles responsive grid - no custom grid needed */
  
  /* Bootstrap handles responsive layouts */
  
  /* Team Member Images */
  .team-member img {
    width: 200px;
    height: 200px;
  }
  
  /* Process Steps */
  .process-step::before {
    height: 100px;
  }
  
  .process-number {
    width: 100px;
    height: 100px;
    font-size: var(--font-size-2xl);
  }
  
  /* Two Column Layout for Hero - using Bootstrap grid */
  .hero-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
  }
  
  /* Bootstrap handles all other responsive layouts */
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 4rem;
  }
  
  .hero p {
    font-size: var(--font-size-2xl);
  }
  
  /* Section Titles */
  .section-title {
    font-size: 3.5rem;
  }
  
  /* Bootstrap handles responsive grid - no custom grid needed */
  
  /* Bootstrap handles responsive layouts */
}

/* Extra extra large devices (extra large desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  /* Hero Section */
  .hero h1 {
    font-size: 4.5rem;
  }
  
  /* Section Titles */
  .section-title {
    font-size: 4rem;
  }
  
  /* Decorative Blobs */
  .blob-1 {
    width: 600px;
    height: 600px;
  }
  
  .blob-2 {
    width: 350px;
    height: 350px;
  }
}

/* Mobile-specific styles (max-width: 767px) */
@media (max-width: 767px) {
  /* Header */
  .navbar-brand {
    font-size: var(--font-size-base) !important;
  }
  
  .nav-link {
    font-size: var(--font-size-sm);
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  /* Hero Section */
  .hero {
    padding: var(--spacing-2xl) 0;
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: var(--font-size-2xl);
  }
  
  .hero p {
    font-size: var(--font-size-base);
  }
  
  /* Section Titles */
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-subtitle {
    font-size: var(--font-size-base);
  }
  
  /* Spacing */
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-lg);
  }
  
  /* Testimonials styles removed - now using Bootstrap 5 cards */
  
  /* Forms */
  .contact-form {
    padding: var(--spacing-lg);
  }
  
  .form-control {
    font-size: var(--font-size-sm);
  }
  
  /* Team Member Images */
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Process Steps */
  .process-step::before {
    display: none;
  }
  
  .process-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-base);
  }
  
  /* Bootstrap handles responsive layouts */
  
  /* Hide decorative blobs on mobile */
  .decorative-blob {
    display: none;
  }
  
  /* Simplified animations on mobile */
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .team-member:hover {
    transform: none;
  }
  
  /* FAQ styles removed - now using Bootstrap 5 cards */
}

/* Tablet-specific styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Hero content layout */
  .hero-content {
    display: block;
  }
  
  /* Bootstrap handles responsive layouts */
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  /* Disable all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover effects */
  .card:hover,
  .team-member:hover,
  .gallery-item:hover,
  .blog-item:hover {
    transform: none !important;
  }
  
  /* Remove floating animation */
  .decorative-blob {
    animation: none !important;
  }
  
  /* Remove loading animation */
  .loading {
    animation: none !important;
    border: 4px solid var(--primary-color) !important;
  }
  
  /* Remove fade-in animations */
  .fade-in,
  .slide-in-left,
  .slide-in-right,
  .scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0000ff;
    --secondary-color: #800080;
    --accent-color: #008080;
    --success-color: #008000;
    --warning-color: #ff8000;
    --black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --dark-gray: #333333;
    --light-gray: #f0f0f0;
  }
  
  /* Increase border thickness */
  .card,
  .contact-form,
  .form-control {
    border: 2px solid var(--dark-gray) !important;
  }
  
  /* Enhance focus states */
  .form-control:focus,
  .btn:focus,
  .nav-link:focus {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px;
  }
}

/* Dark Mode (if implemented) */

/* Print Styles */
@media print {
  /* Hide non-essential elements */
  .header,
  .footer,
  .btn,
  .scroll-progress,
  .decorative-blob,
  .nav-link,
  .navbar-brand {
    display: none !important;
  }
  
  /* Ensure proper printing */
  body {
    color: black !important;
    background: white !important;
    font-size: 12pt !important;
  }
  
  .section {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }
  
  .card {
    border: 1px solid black !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  /* Adjust typography for print */
  h1, h2, h3, h4, h5, h6 {
    color: black !important;
  }
  
  p {
    color: black !important;
  }
  
  /* Hide images for faster printing */
  .gallery-item img,
  .team-member img,
  .blog-item img {
    display: none !important;
  }
  
  /* Bootstrap handles responsive layouts */
}

/* Accessibility Improvements */
@media (max-width: 575px) {
  /* Improve touch targets on mobile */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* FAQ removed - using Bootstrap 5 cards */
  
  /* Improve form elements */
  .form-control {
    min-height: 44px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* Focus Management */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
  border-radius: 4px;
}

.skip-link:focus {
  top: 6px;
}

/* Reduce motion for specific elements */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none !important;
  }
  
  .scroll-progress {
    transition: none !important;
  }
} 