/* Responsive Styles for DhakaDocsTheme */
/* Mobile-first responsive design */

/* Mobile Styles (default) */
@media only screen and (max-width: 767px) {
  :root {
    --heading-one: 25px;
    --heading-two: 20px;
    --heading-three: 18px;
    --heading-four: 16px;
    --heading-five: 15px;
    --heading-six: 14px;
    --title-size: 17px;
    --p-size: 16px;
    --p-line-height: 25px;
  }

  /* Hide desktop elements on mobile */
  .desktop-hide {
    display: none;
  }

  /* Mobile-specific styles */
  .mobile-hide {
    display: none;
  }

  /* Header adjustments */
  .header-container {
    padding: 10px 15px;
  }

  /* Hero section adjustments */
  .hero-wrapper {
    height: auto;
    padding: 30px 15px;
    padding-bottom: 20px;
  }

  .hero-content-text {
    text-align: center;
  }

  .hero-search-wrapper {
    width: 90%;
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Featured sections */
  .featured-city-title-wrapper {
    text-align: center;
    margin-top: 17px;
    margin-bottom: 0px;
    max-width: 95%;
    margin: auto;
  }

  /* Grid adjustments */
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Card adjustments */
  .card {
    padding: 15px;
    margin-bottom: 15px;
  }

  /* Button adjustments */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Form adjustments */
  .form-control {
    padding: 12px 15px;
    font-size: 16px;
  }

  /* Navigation adjustments */
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }

  /* Content area adjustments */
  .single-content-area {
    padding: 15px;
    margin-top: 10px;
  }

  .page-content-area {
    padding: 15px;
  }

  /* Sidebar adjustments */
  .sidebar {
    margin-top: 20px;
  }

  /* Footer adjustments */
  .footer {
    padding: 20px 15px;
  }

  .footer .grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Tablet Styles */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  :root {
    --heading-one: 28px;
    --heading-two: 23px;
    --heading-three: 19px;
    --heading-four: 17px;
    --heading-five: 16px;
    --heading-six: 15px;
    --title-size: 18px;
  }

  /* Hide mobile elements on tablet */
  .mobile-hide {
    display: block;
  }

  /* Grid adjustments for tablet */
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero adjustments */
  .hero-wrapper {
    padding: 40px 20px;
  }

  .hero-search-wrapper {
    width: 80%;
  }

  /* Content adjustments */
  .single-content-area {
    padding: 20px;
  }

  .page-content-area {
    padding: 20px;
  }
}

/* Desktop Styles */
@media only screen and (min-width: 1024px) {
  /* Hide mobile elements on desktop */
  .mobile-hide {
    display: block;
  }

  .desktop-hide {
    display: block;
  }

  /* Grid adjustments for desktop */
  .grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hero adjustments */
  .hero-wrapper {
    padding: 60px 30px;
  }

  .hero-search-wrapper {
    width: 70%;
  }

  /* Content adjustments */
  .single-content-area {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .page-content-area {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /* Navigation adjustments */
  .nav-menu {
    flex-direction: row;
  }

  .nav-menu li {
    width: auto;
    text-align: left;
    border-bottom: none;
  }
}

/* Large Desktop Styles */
@media only screen and (min-width: 1440px) {
  :root {
    --heading-one: 32px;
    --heading-two: 27px;
    --heading-three: 22px;
    --heading-four: 20px;
    --heading-five: 19px;
    --heading-six: 18px;
    --title-size: 21px;
  }

  /* Container adjustments */
  .container {
    max-width: 1400px;
  }

  /* Grid adjustments for large desktop */
  .grid-cols-4 {
    grid-template-columns: repeat(5, 1fr);
  }

  .grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }

  .single-content-area {
    padding: 0;
    margin: 0;
  }

  .page-content-area {
    padding: 0;
    margin: 0;
  }
}

/* High DPI / Retina Display Styles */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (min-resolution: 192dpi) {
  /* Optimize images for retina displays */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --background-one: rgba(30, 30, 30, 0.5);
    --background-two: rgba(12, 41, 171, 0.1);
    --background-three: rgba(20, 20, 20, 1);
    --white: #1a1a1a;
    --black: #ffffff;
    --gray: #a0a0a0;
    --p-color: #e0e0e0;
    --mini-color: #c0c0c0;
    --heading-color: #ffffff;
    --title-color: #ffffff;
    --mini-title-color: #ffffff;
    --border-color: #404040;
  }
}
