/**
 * ফিশ কেয়ার সিস্টেম - Responsive Design
 * Mobile First Approach
 */

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    /* Typography Adjustments */
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    
    /* Spacing Reduction */
    .main-content {
        padding: var(--space-8) 0;
    }
    
    /* Glass Effects Optimization */
    .glass-navbar,
    .glass-card,
    .glass-footer {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .glass-card {
        padding: var(--space-6);
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        right: 0;
        width: 280px;
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--space-6);
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(100%);
        transition: transform var(--duration-slow) var(--easing-smooth);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Grid System */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Table */
    .table-container {
        padding: var(--space-4);
    }
    
    .data-table {
        font-size: var(--text-small);
    }
    
    .data-table th,
    .data-table td {
        padding: var(--space-2) var(--space-3);
    }
}

/* Mobile (640px and below) */
@media screen and (max-width: 640px) {
    /* Typography */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    /* Hero Section */
    .hero-section {
        padding: var(--space-12) 0;
        min-height: 400px;
    }
    
    /* Grid - Stack to Single Column */
    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-sm {
        width: auto;
    }
    
    /* Cards */
    .glass-card {
        padding: var(--space-4);
    }
    
    .data-card-value {
        font-size: 28px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    /* Flash Messages */
    .flash-message {
        right: var(--space-4);
        left: var(--space-4);
        max-width: none;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        padding: var(--space-6);
    }
    
    /* Table - Responsive */
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Dashboard Sidebar */
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        transition: left var(--duration-slow) var(--easing-smooth);
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-content {
        margin-left: 0 !important;
    }
}

/* Large Desktop (1536px and above) */
@media screen and (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
    
    h1 { font-size: 72px; }
    h2 { font-size: 56px; }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .glass-navbar,
    .glass-card,
    .glass-footer {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Print Styles */
@media print {
    .glass-navbar,
    .glass-footer,
    .btn,
    .flash-message {
        display: none !important;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    body {
        background: white;
    }
}
