/* 
 * Chamii AI Admin Website
 * Responsive Stylesheet
 */

/* ===== RESPONSIVE BREAKPOINTS ===== */
/* 
 * Large Desktop: 1200px and up
 * Desktop: 992px to 1199px
 * Tablet: 768px to 991px
 * Mobile Large: 576px to 767px
 * Mobile Small: 575px and below
 */

/* ===== DESKTOP (992px to 1199px) ===== */
@media (max-width: 1199px) {
  :root {
    --h1-size: 2.25rem;
    --h2-size: 1.75rem;
    --h3-size: 1.35rem;
    --h4-size: 1.15rem;
  }
  
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .carousel-item img {
    height: 350px;
  }
  
  .footer-container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* ===== TABLET (768px to 991px) ===== */
@media (max-width: 991px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.6rem;
    --h3-size: 1.25rem;
    --h4-size: 1.1rem;
    --spacing-xxl: 2.5rem;
  }
  
  .container {
    max-width: 720px;
  }
  
  /* Header & Navigation */
  .header-container {
    flex-wrap: wrap;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    margin-top: var(--spacing-md);
    justify-content: center;
  }
  
  /* Hero Section */
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Carousel */
  .carousel-item img {
    height: 300px;
  }
  
  /* Grid Layout */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .about-image {
    order: -1;
  }
  
  .about-image img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
  }
  
  /* Login Section */
  .login-container {
    grid-template-columns: 1fr;
  }
  
  .login-image {
    display: none;
  }
  
  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    margin-top: var(--spacing-lg);
  }
}

/* ===== MOBILE LARGE (576px to 767px) ===== */
@media (max-width: 767px) {
  :root {
    --h1-size: 1.8rem;
    --h2-size: 1.5rem;
    --h3-size: 1.2rem;
    --h4-size: 1.05rem;
    --body-size: 0.95rem;
    --spacing-xl: 1.75rem;
    --spacing-xxl: 2rem;
  }
  
  .container {
    max-width: 540px;
    padding: 0 var(--spacing-md);
  }
  
  /* Header & Navigation */
  .header-container {
    padding: var(--spacing-sm) 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: var(--spacing-md);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    margin: var(--spacing-xs) 0;
    width: 100%;
    text-align: center;
  }
  
  .header-right {
    margin-left: auto;
  }
  
  .language-switcher {
    margin-right: var(--spacing-md);
  }
  
  /* Hero Section */
  .hero {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  /* Carousel */
  .carousel-item img {
    height: 250px;
  }
  
  .carousel-caption {
    padding: var(--spacing-md);
  }
  
  .carousel-caption h3 {
    font-size: 1.2rem;
  }
  
  /* Section Headers */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }
  
  .search-container {
    width: 100%;
  }
  
  /* Grid Layout */
  .grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Cards */
  .card-img {
    height: 180px;
  }
  
  /* Device Actions */
  .device-actions {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .device-actions .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Category Filters */
  .category-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
  }
  
  .category-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Purchase Section */
  .purchase-info {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
  }
  
  /* Role Options */
  .role-options {
    grid-template-columns: 1fr;
  }
}

/* ===== MOBILE SMALL (575px and below) ===== */
@media (max-width: 575px) {
  :root {
    --h1-size: 1.6rem;
    --h2-size: 1.4rem;
    --h3-size: 1.15rem;
    --h4-size: 1rem;
    --body-size: 0.9rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
    --spacing-xxl: 1.75rem;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* Header */
  .logo a {
    font-size: 1.5rem;
  }
  
  .language-switcher select {
    padding: 0.25rem;
    font-size: 0.8rem;
  }
  
  /* Hero Section */
  .hero-title {
    font-size: 1.6rem;
  }
  
  /* Carousel */
  .carousel-item img {
    height: 200px;
  }
  
  .carousel-controls {
    display: none;
  }
  
  /* Cards */
  .card-body {
    padding: var(--spacing-md);
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  /* Login Form */
  .login-form-container {
    padding: var(--spacing-lg);
  }
  
  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 var(--spacing-md);
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
  }
  
  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
  }
  
  .btn-large {
    padding: 0.8rem 1.5rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body {
    background-color: white;
    color: black;
    font-size: 12pt;
  }
  
  .header, .footer, .hero-cta, .social-links, .nav-links {
    display: none;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  .card, .modal-content, .login-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .grid {
    display: block;
  }
  
  .grid > * {
    margin-bottom: 20px;
  }
}
