/**
 * VitaWie - Mobile Responsive Styles
 * Optimized for mobile devices and tablets
 */

/* Mobile-First Base Adjustments */
@media (max-width: 768px) {
    /* Reduce hero image height on mobile */
    .hero-image,
    .content-page img.hero-image,
    article img.img-fluid {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
    
    /* Hero section adjustments */
    .hero-section,
    .hero {
        min-height: 200px !important;
        padding: 2rem 0 !important;
    }
    
    .hero h1,
    .hero-section h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .hero p,
    .hero-section p {
        font-size: 1rem !important;
    }
    
    /* Container and spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Recipe meta badges */
    .recipe-meta {
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }
    
    .recipe-meta .badge {
        font-size: 0.75rem !important;
        padding: 0.35em 0.65em;
    }
    
    /* Button adjustments */
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Form elements */
    .form-control,
    .form-select {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Alerts */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Lists */
    .list-group-item {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Video player */
    .ratio {
        margin-bottom: 1rem;
    }
    
    /* Custom links section */
    .card .d-flex.flex-wrap {
        gap: 0.5rem !important;
    }
    
    .card .d-flex.flex-wrap .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Footer adjustments */
    footer {
        font-size: 0.9rem;
        padding: 1.5rem 0;
    }
    
    /* Category cards on homepage */
    .category-card {
        margin-bottom: 1rem;
    }
    
    /* Content grid */
    .row > [class*='col-'] {
        margin-bottom: 1rem;
    }
    
    /* Images in content */
    .content-page img {
        margin-bottom: 1rem;
    }
    
    /* Blockquotes for quotes page */
    .blockquote {
        font-size: 1.25rem !important;
        margin: 2rem 0;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
}

/* Tablet adjustments (medium screens) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-image,
    .content-page img.hero-image,
    article img.img-fluid {
        max-height: 300px;
        object-fit: cover;
    }
    
    .hero-section,
    .hero {
        min-height: 300px !important;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero-image,
    .content-page img.hero-image,
    article img.img-fluid {
        max-height: 150px;
    }
    
    .hero-section,
    .hero {
        min-height: 150px !important;
        padding: 1rem 0 !important;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .btn-lg {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    
    /* Make badges smaller */
    .badge {
        font-size: 0.7rem !important;
    }
    
    /* Reduce card margins */
    .card {
        margin-bottom: 0.75rem;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section,
    .hero {
        min-height: 150px !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Better spacing for touch */
    .btn {
        margin: 0.25rem;
    }
}

/* Newsletter form on mobile */
@media (max-width: 768px) {
    #newsletterForm {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #newsletterForm input {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    #newsletterForm button {
        width: 100%;
    }
}

/* Contact form mobile adjustments */
@media (max-width: 768px) {
    .contact-page textarea {
        min-height: 120px;
    }
}
/* Content page hero adjustments for mobile */
/* Content Hero Section (reduced height for all devices) */
.content-hero {
  position: relative;
  width: 100%;
  height: 25vh; /* reduced from 50vh */
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #d7f3e3; /* fallback light green */
}

.content-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;  
  background-position: center;
  filter: blur(4px) brightness(0.7);
  z-index: 1;
}

.content-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(215, 243, 227, 0.5);
  z-index: 2;
}

.content-hero .hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #1f3a2e;
  padding: 0 15px;
}

.content-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  margin: 0;
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .content-hero {
    height: 20vh;
    min-height: 150px;
  }
  .content-hero h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .content-hero {
    height: 18vh; /* smaller hero height */
    min-height: 120px;
  }
  .content-hero h1 {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .content-hero {
    height: 15vh;
    min-height: 1
