/* ===== HOME PAGE MOBILE OPTIMIZATION ===== */

/* Mobile First Approach */
@media (max-width: 768px) {
  
  /* Hero Section Mobile Optimization */
  .hero-section {
    padding: 2rem 0;
    min-height: auto;
  }
  
  .hero-section .min-vh-75 {
    min-height: auto !important;
    padding: 2rem 0;
  }
  
  .hero-content {
    padding: 0 !important;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .hero-content .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-image {
    margin-top: 1rem;
  }
  
  .hero-icon {
    font-size: 4rem !important;
  }
  
  .floating-elements {
    display: none; /* Hide floating elements on mobile */
  }
  
  /* Stats Section Mobile Optimization */
  .stats-section {
    padding: 2rem 0;
  }
  
  .stats-section .row {
    margin: 0;
  }
  
  .stats-section .col-md-3 {
    margin-bottom: 1.5rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
    text-align: center;
    background: var(--site-card-bg-color, #ffffff);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .stat-icon {
    margin-bottom: 1rem;
  }
  
  .stat-icon i {
    font-size: 2rem !important;
  }
  
  .stat-number {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }
  
  .stat-label {
    font-size: 0.875rem;
  }
  
  /* Featured Sections Mobile Optimization */
  .featured-section {
    padding: 0 1rem;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .section-header .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .section-header .btn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
  
  /* Cards Mobile Optimization */
  .video-card,
  .product-card,
  .post-card {
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
  }
  
  .card-img-top {
    height: 200px;
    object-fit: cover;
  }
  
  .default-cover {
    height: 200px;
    background: var(--site-section-bg-color, #f8f9fa);
  }
  
  .card-body {
    padding: 1.25rem;
  }
  
  .card-title {
    font-size: 1rem !important;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
  
  /* Video Cards Specific */
  .video-cover,
  .product-cover,
  .post-cover {
    position: relative;
  }
  
  .video-overlay,
  .product-overlay,
  .post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .video-card:hover .video-overlay,
  .product-card:hover .product-overlay,
  .post-card:hover .post-overlay {
    opacity: 1;
  }
  
  .video-badges,
  .product-badges,
  .post-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Meta Information Mobile */
  .video-meta,
  .product-meta,
  .post-meta {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .video-meta span,
  .product-meta span,
  .post-meta span {
    font-size: 0.8rem;
  }
  
  /* Action Buttons Mobile */
  .card-body .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .card-body .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* CTA Section Mobile */
  .cta-section {
    padding: 0 1rem;
  }
  
  .cta-card {
    padding: 2rem 1.5rem !important;
    text-align: center;
  }
  
  .cta-content h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
  }
  
  .cta-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .cta-content .btn {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.5rem;
  }
  
  /* Newsletter Section Mobile */
  .newsletter-section {
    padding: 0 1rem;
  }
  
  .newsletter-card {
    padding: 1.5rem !important;
  }
  
  .newsletter-content {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .newsletter-content h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 1rem;
  }
  
  .newsletter-form .input-group {
    width: 100%;
  }
  
  .newsletter-form .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }
  
  /* Empty States Mobile */
  .empty-state {
    padding: 3rem 1rem;
  }
  
  .empty-state i {
    font-size: 3rem !important;
    margin-bottom: 1.5rem;
  }
  
  .empty-state h4 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem;
  }
  
  .empty-state p {
    font-size: 0.9rem;
  }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
  
  .hero-content h1 {
    font-size: 1.75rem !important;
  }
  
  .hero-content .lead {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.25rem !important;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 0.9rem !important;
  }
  
  .cta-card {
    padding: 1.5rem 1rem !important;
  }
  
  .newsletter-card {
    padding: 1rem !important;
  }
  
  .stats-section .col-md-3 {
    width: 50%;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-icon i {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.25rem !important;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
  
  .hero-content h1 {
    font-size: 1.5rem !important;
  }
  
  .hero-content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.1rem !important;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .card-title {
    font-size: 0.85rem !important;
  }
  
  .stats-section .col-md-3 {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  
  .hero-section .min-vh-75 {
    min-height: 60vh !important;
    padding: 1rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.5rem !important;
  }
  
  .hero-content .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .hero-content .btn {
    width: auto;
    margin: 0 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .stats-section {
    padding: 1rem 0;
  }
  
  .stats-section .col-md-3 {
    width: 25%;
    margin-bottom: 0;
  }
  
  .stat-card {
    padding: 1rem 0.5rem;
  }
  
  .stat-icon i {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 1.1rem !important;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  
  .video-card:hover .video-overlay,
  .product-card:hover .product-overlay,
  .post-card:hover .post-overlay {
    opacity: 1;
  }
  
  .btn:hover {
    transform: none !important;
  }
  
  .card:hover {
    transform: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  
  .card {
    border: 2px solid var(--site-card-border-color, #000000);
  }
  
  .btn {
    border-width: 2px;
  }
  
  .badge {
    border: 1px solid currentColor;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  
  .video-overlay,
  .product-overlay,
  .post-overlay {
    transition: none;
  }
  
  .btn {
    transition: none;
  }
  
  .card {
    transition: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  
  .stat-card {
    background: var(--site-card-bg-color, #2d3748);
    color: var(--site-text-primary-color, #e2e8f0);
  }
  
  .card {
    background: var(--site-card-bg-color, #2d3748);
    color: var(--site-text-primary-color, #e2e8f0);
  }
  
  .newsletter-card {
    background: var(--site-card-bg-color, #2d3748);
    color: var(--site-text-primary-color, #e2e8f0);
  }
}
