/* Good for Good Website - Enhanced Responsive Styles */
/* Mobile-first responsive design with comprehensive breakpoints */

/* Enhanced Mobile Styles (320px and up) */
@media (min-width: 320px) {
  .container {
    padding: 0 1rem;
  }
  
  /* Mobile-optimized typography */
  h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Mobile navigation */
  .navbar {
    padding: 0.75rem 0;
    gap: var(--spacing-sm);
  }
  
  .logo {
    font-size: 1.25rem;
    margin-right: 0;
  }
  
  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    order: 3;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--neutral-light);
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--neutral-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    gap: 0;
    z-index: 1000;
  }
  
  .nav-menu.active {
    display: flex;
    animation: slideDown 0.3s ease;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
    text-align: center;
    height: auto;
    justify-content: center;
  }
  
  /* Mobile button adjustments */
  .nav-menu .btn-primary {
    width: 100%;
    max-width: none;
    margin: 0.5rem 0;
  }
  
  /* Mobile hero section */
  .hero {
    padding: calc(70px + 2rem) 0 2rem;
    text-align: center;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-image {
    order: 2;
  }
  
  .hero-text h1 {
    margin-bottom: 1rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Mobile button styles */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
  
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Mobile stats grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  /* Mobile program grid */
  .program-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .program-card {
    margin: 0 0.5rem;
  }
  
  .program-image {
    height: 180px;
  }
  
  .program-content {
    padding: 1.25rem;
  }
  
  /* Mobile forms */
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  
  .form-textarea {
    min-height: 100px;
  }
  
  /* Mobile footer */
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  /* Mobile sections */
  .section {
    padding: 2rem 0;
  }
  
  .section-sm {
    padding: 1.5rem 0;
  }
  
  /* Mobile curve dividers */
  .curve-divider {
    height: 60px;
  }
}

/* Small Mobile Devices (375px and up) */
@media (min-width: 375px) {
  .container {
    padding: 0 1.25rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    max-width: 320px;
  }
  
  .stat-number {
    font-size: 2.75rem;
  }
  
  .program-image {
    height: 200px;
  }
}

/* Large Mobile Devices (425px and up) */
@media (min-width: 425px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.875rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.2rem;
  }
  
  .btn {
    max-width: 350px;
    display: inline-block;
    width: auto;
    min-width: 200px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .stat-number {
    font-size: 3rem;
  }
}

/* Tablet Portrait (768px and up) */
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex !important;
    position: static;
    background: transparent;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    gap: 2rem;
  }
  
  .nav-link {
    display: inline-block;
    width: auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    text-align: left;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  h1 {
    font-size: 2.75rem;
  }
  
  h2 {
    font-size: 2.25rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: calc(80px + 3rem) 0 3rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }
  
  .hero-text {
    order: 0;
  }
  
  .hero-image {
    order: 0;
  }
  
  .hero-text .subtitle {
    font-size: 1.25rem;
  }
  
  .btn {
    width: auto;
    display: inline-block;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .program-card {
    margin: 0;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .curve-divider {
    height: 80px;
  }
}

/* Tablet Landscape (1024px and up) */
@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: calc(80px + 4rem) 0 4rem;
  }
  
  .hero-content {
    gap: 4rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .curve-divider {
    height: 100px;
  }
}

/* Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
  
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.75rem;
  }
  
  .hero-text .subtitle {
    font-size: 1.4rem;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  .btn,
  .nav-link,
  .program-card,
  .stat-card {
    min-height: 44px; /* Minimum touch target size */
  }
  
  .btn {
    padding: 1rem 1.5rem;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
  }
  
  /* Remove hover effects on touch devices */
  .btn:hover,
  .nav-link:hover,
  .program-card:hover,
  .stat-card:hover {
    transform: none;
  }
  
  /* Add active states for touch feedback */
  .btn:active {
    transform: scale(0.98);
  }
  
  .nav-link:active {
    background: var(--primary-yellow);
    color: var(--secondary-dark);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for retina displays */
  .logo-icon {
    background-size: contain;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: calc(60px + 1.5rem) 0 1.5rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .mobile-menu-toggle {
    padding: 0.25rem;
  }
  
  .navbar {
    padding: 0.5rem 0;
  }
}

/* Animation keyframes for mobile interactions */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Accessibility improvements for mobile */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in,
  .slide-in-left,
  .slide-in-right {
    transition: none;
  }
}

/* Force light mode - dark mode disabled */
:root {
  --neutral-white: #FFFFFF;
  --neutral-light: #F8F9FA;
  --neutral-dark: #333333;
  --neutral-gray: #6C757D;
}

/* Ensure all elements use light mode colors */
body,
.header,
.nav-menu,
.program-card,
.stat-card,
.form-input,
.form-textarea,
.form-select {
  background-color: var(--neutral-white) !important;
  color: var(--neutral-dark) !important;
}

/* Override any system dark mode preferences */
@media (prefers-color-scheme: dark) {
  :root {
    --neutral-white: #FFFFFF !important;
    --neutral-light: #F8F9FA !important;
    --neutral-dark: #333333 !important;
    --neutral-gray: #6C757D !important;
  }
}

/* Print styles for mobile */
@media print {
  .header,
  .mobile-menu-toggle,
  .nav-menu,
  .btn,
  .footer {
    display: none !important;
  }
  
  .hero {
    padding: 1rem 0;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

/* Responsive adjustments for login button */
.login-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  overflow: hidden !important;
}

.login-text {
  display: none !important;
}

.login-btn .login-icon {
  width: 18px !important;
  height: 18px !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Responsive adjustments for user avatar */
.avatar-circle {
  width: 36px;
  height: 36px;
}

.avatar-text {
  font-size: 1rem;
}

