/* BOLO - მობილური ოპტიმიზაცია */

/* სმარტფონები (portrait) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .personality-avatar {
    width: 80px;
    height: 80px;
  }
  
  .navbar-brand .brand-text {
    font-size: 1.5rem;
  }
  
  footer {
    padding: 2rem 0 1rem;
  }
  
  .social-icons {
    margin-bottom: 1.5rem;
  }
}

/* ტაბლეტები (portrait) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  .card-category {
    font-size: 0.7rem;
  }
}

/* ტაბლეტები (landscape) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .personality-avatar {
    width: 100px;
    height: 100px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
}

/* დესკტოპები */
@media (min-width: 992px) {
  .hero-section {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.35rem;
  }
  
  .section-title {
    margin-bottom: 3rem;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
}

/* პრინტ ოპტიმიზაცია */
@media print {
  .navbar, 
  .footer, 
  .btn,
  .sidebar,
  .skip-link {
    display: none !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .container {
    width: 100% !important;
    max-width: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000 !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000 !important;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  
  .card-img-overlay {
    position: static !important;
    background: none !important;
    color: #000 !important;
  }
}

/* მაღალი DPI მოწყობილობები */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ვიწრო ეკრანის მობილურები */
@media (max-width: 320px) {
  .navbar-brand .brand-text {
    font-size: 1.25rem;
  }
  
  .personality-avatar {
    width: 70px;
    height: 70px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* ტემნი მოდის ოპტიმიზაცია */
@media (prefers-color-scheme: dark) {
  body.auto-dark-mode {
    --background: #1a1a1a;
    --secondary: #e9ecef;
    --light-gray: #2d3748;
    --medium-gray: #4a5568;
    --dark-gray: #cbd5e0;
    --border-color: #4a5568;
  }
  
  body.auto-dark-mode .card {
    background-color: #2d3748;
    color: #e9ecef;
  }
  
  body.auto-dark-mode .navbar {
    background-color: #1a1a1a;
  }
  
  body.auto-dark-mode .nav-link {
    color: #e9ecef;
  }
  
  body.auto-dark-mode .btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
  }
  
  body.auto-dark-mode .btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
  }
}

/* აფექტები მომხმარებლებისთვის შეზღუდული მოძრაობის ეფექტებით */
@media (prefers-reduced-motion: reduce) {
  .hover-lift:hover,
  .hover-scale:hover,
  .card:hover,
  .btn:hover,
  .fade-in,
  .slide-up {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}