/* ===== responsive.css ===== */
/* Aesthetic Coffee Shop Responsive Design - Blue Theme */

/* ===== SMALL MOBILE DEVICES (up to 480px) ===== */
@media (max-width: 480px) {
  /* Cart Sidebar */
  .cart-sidebar {
    max-width: 100%;
    border-left: none;
    border-top: 4px solid var(--primary-color);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(30, 106, 208, 0.15);
  }
  
  .cart-sidebar.open {
    animation: slideUpMobile 0.4s ease-out;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    padding: 1.2rem;
    margin: 0.5rem;
    max-height: 85vh;
  }
  
  /* Typography */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  /* Container Padding */
  .container {
    padding: 0 1rem;
  }
  
  /* Grid Adjustments */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  /* Buttons */
  button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Form Elements */
  input, select, textarea {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  
  /* Navigation */
  .nav-link {
    padding: 0.4rem 0;
    font-size: 0.9rem;
  }
  
  /* Cards */
  .coffee-card {
    padding: 1rem;
  }
  
  /* Category Tabs */
  .category-tabs {
    gap: 0.3rem;
    padding: 0.5rem 0;
  }
  
  .category-tab {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Menu Items */
  .menu-item-card {
    padding: 1rem;
  }
  
  .menu-item-card h3 {
    font-size: 1.1rem;
  }
  
  /* Price Tags */
  .price-tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }
  
  /* Status Badges */
  .status-badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }
  
  /* Success Modal */
  #orderSuccessModal .bg-white {
    padding: 1.5rem;
    width: 90%;
  }
  
  #orderSuccessModal h2 {
    font-size: 1.5rem;
  }
  
  /* Quick Action Buttons */
  .quick-action-buttons {
    bottom: 1rem;
    right: 1rem;
  }
  
  .quick-action-buttons button {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  /* Footer */
  footer {
    padding: 1rem;
    font-size: 0.7rem;
  }
  
  /* Animations */
  @keyframes slideUpMobile {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* ===== MOBILE DEVICES (up to 640px) ===== */
@media (max-width: 640px) {
  /* Tables */
  table {
    min-width: 100%;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  table th,
  table td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  
  /* Grid Gaps */
  .gap-4 {
    gap: 1rem;
  }
  
  /* Hero Section */
  .hero-section {
    height: 400px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  /* Featured Categories */
  .category-card {
    padding: 1rem;
  }
  
  .category-card i {
    font-size: 2rem;
  }
  
  .category-card h3 {
    font-size: 1rem;
  }
  
  /* Success Modal */
  #orderSuccessModal .bg-white {
    padding: 1.5rem;
  }
  
  #orderSuccessModal .bg-white {
    margin: 1rem;
  }
  
  /* Reservation Form */
  .reservation-form {
    padding: 1.5rem;
  }
  
  .reservation-form h3 {
    font-size: 1.5rem;
  }
  
  /* Contact Info Cards */
  .contact-card {
    padding: 1rem;
  }
  
  .contact-card i {
    font-size: 1.5rem;
  }
  
  /* Coffee Grid */
  .coffee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ===== TABLET DEVICES (up to 768px) ===== */
@media (max-width: 768px) {
  /* Cart Sidebar */
  .cart-sidebar {
    max-width: 100%;
    width: 100%;
    border-radius: 20px 20px 0 0;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    padding: 1.2rem;
    max-height: 80vh;
  }
  
  /* Navigation */
  .desktop-nav {
    display: none;
  }
  
  .mobile-nav {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* Header */
  .header {
    padding: 0.8rem 1rem;
  }
  
  .logo img {
    height: 35px;
  }
  
  /* Layout */
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 2px solid var(--border-light);
    padding: 1rem;
  }
  
  .admin-main {
    margin-left: 0;
    padding: 1rem;
  }
  
  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Form Layout */
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  /* About Page */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    height: 300px;
  }
  
  /* Team Grid */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  /* Reservation Info */
  .reservation-info {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  
  /* FAQ Grid */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Map */
  .map-container {
    height: 300px;
  }
  
  /* Coffee Shop Specific */
  .coffee-stain {
    display: none;
  }
  
  /* Scroll Animations */
  .scroll-fade-in,
  .scroll-slide-up,
  .scroll-slide-down,
  .scroll-slide-left,
  .scroll-slide-right,
  .scroll-scale {
    transition-duration: 0.4s;
  }
}

/* ===== LAPTOP DEVICES (up to 1024px) ===== */
@media (max-width: 1024px) {
  /* Menu Grid */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  
  /* Container */
  .container {
    padding: 0 1.5rem;
  }
  
  /* Hero Section */
  .hero-section {
    height: 500px;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
  }
  
  /* Category Tabs */
  .category-tabs {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Featured Items */
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Dashboard Cards */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Coffee Cards */
  .coffee-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== DESKTOP DEVICES (min-width 1024px) ===== */
@media (min-width: 1024px) {
  /* Menu Grid */
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Hero Section */
  .hero-section {
    height: 600px;
  }
  
  .hero-section h1 {
    font-size: 4.5rem;
  }
  
  /* Featured Items */
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Dashboard */
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Coffee Cards */
  .coffee-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  /* Custom Scrollbar for Desktop */
  ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
  }
}

/* ===== LARGE DESKTOP DEVICES (min-width 1440px) ===== */
@media (min-width: 1440px) {
  /* Container */
  .container {
    max-width: 1400px;
  }
  
  /* Menu Grid */
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  /* Hero Section */
  .hero-section {
    height: 700px;
  }
  
  .hero-section h1 {
    font-size: 5rem;
  }
  
  /* Featured Items */
  .featured-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Font Sizes */
  html {
    font-size: 18px;
  }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cart-sidebar,
  .modal,
  .notification {
    transition: none !important;
  }
  
  .hover-lift:hover,
  .hover-scale:hover,
  .hover-glow:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .coffee-stain::before,
  .category-tab::before,
  .payment-option::before,
  .delivery-type-option::after,
  .menu-item-card::before {
    display: none !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  /* Hide unnecessary elements */
  .no-print,
  .cart-sidebar,
  .modal,
  .notification,
  .back-to-top,
  .quick-action-buttons,
  .view-toggle,
  .admin-sidebar,
  .category-tabs,
  .search-bar,
  footer {
    display: none !important;
  }
  
  /* Show printable content */
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  
  /* Ensure proper page breaks */
  .page-break {
    page-break-before: always;
  }
  
  /* Simplify styles for print */
  .coffee-card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  
  /* Ensure colors are visible */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  /* Table styles for print */
  table {
    border-collapse: collapse;
    width: 100%;
  }
  
  th {
    background: #f0f0f0;
    font-weight: bold;
  }
  
  td, th {
    border: 1px solid #ddd;
    padding: 8px;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 600px) {
  /* Adjust for landscape mobile */
  .hero-section {
    height: 300px;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .cart-sidebar {
    max-height: 100vh;
    overflow-y: auto;
  }
  
  .modal-content {
    max-height: 90vh;
  }
}

/* ===== DARK MODE SUPPORT (optional) ===== */
@media (prefers-color-scheme: dark) {
  /* You can add dark mode styles here if needed */
  /* Currently using light mode as default for coffee shop aesthetic */
}

/* ===== COFFEE SHOP SPECIFIC RESPONSIVE ===== */

/* Coffee Steam Animation - Hide on mobile */
@media (max-width: 768px) {
  .coffee-steam {
    display: none;
  }
  
  .coffee-beam {
    opacity: 0.3;
  }
}

/* Coffee Cards - Mobile Optimization */
@media (max-width: 480px) {
  .coffee-card {
    border-radius: 16px;
  }
  
  .coffee-card-header {
    padding: 1rem;
  }
  
  .coffee-card-body {
    padding: 1rem;
  }
  
  .coffee-card-footer {
    padding: 1rem;
  }
}

/* Coffee Shop Logo - Responsive */
@media (max-width: 640px) {
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo-icon {
    width: 35px;
    height: 35px;
  }
}

/* Coffee Shop Navigation */
@media (max-width: 768px) {
  .coffee-nav {
    padding: 0.5rem;
  }
  
  .coffee-nav-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Coffee Shop Footer */
@media (max-width: 640px) {
  .coffee-footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }
  
  .coffee-footer-section {
    align-items: center;
  }
}

/* Coffee Shop Grid Systems */
.coffee-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .coffee-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .coffee-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .coffee-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Coffee Shop Spacing System */
@media (max-width: 640px) {
  .coffee-space-y > * + * {
    margin-top: 1rem;
  }
  
  .coffee-space-x > * + * {
    margin-left: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .coffee-space-y > * + * {
    margin-top: 1.5rem;
  }
  
  .coffee-space-x > * + * {
    margin-left: 1rem;
  }
}