/**
 * Asimot POS - Responsive Stylesheet
 * Mobile and Tablet Optimizations
 */

/* ========================================
   TABLET STYLES (max-width: 991px)
======================================== */
@media (max-width: 991px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    /* Navigation */
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-sm);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        position: relative !important;
        width: 100%;
        margin: 0;
        box-shadow: none;
        background: var(--light-color);
    }
    
    .nav-cta {
        margin-top: 15px;
        display: inline-block;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    /* Sections */
    .section {
        padding: 60px 0;
    }
    
    /* Features */
    .feature-card {
        margin-bottom: 30px;
    }
    
    /* Pricing */
    .pricing-card {
        margin-bottom: 30px;
    }
    
    .pricing-card.recommended {
        transform: none;
    }
    
    /* CTA Section */
    .cta-section {
        text-align: center;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-section .btn {
        margin: 10px 5px;
    }
    
    /* Footer */
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
    
    .newsletter-form {
        margin-top: 20px;
    }
}

/* ========================================
   MOBILE STYLES (max-width: 767px)
======================================== */
@media (max-width: 767px) {
    /* Typography */
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Top Bar */
    .top-bar {
        display: none;
    }
    
    /* Navigation */
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Features */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Pricing */
    .pricing-price {
        font-size: 2.5rem;
    }
    
    .pricing-card.recommended {
        margin-top: 30px;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin: 10px 0;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    /* Footer */
    .site-footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-social {
        text-align: center;
        margin-top: 20px;
    }
    
    .footer-newsletter {
        padding: 20px;
    }
    
    .newsletter-title {
        font-size: 1.25rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
        margin-top: 10px;
        border-radius: 25px !important;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-bottom-links li {
        margin: 5px 10px;
    }
    
    /* Back to Top & WhatsApp */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 12px;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: var(--border-radius);
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Cards */
    .feature-card,
    .pricing-card,
    .testimonial-card {
        padding: 20px;
    }
    
    /* CTA */
    .cta-title {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-widget {
        margin-bottom: 40px;
    }
}

/* ========================================
   LANDSCAPE MOBILE (max-height: 600px)
======================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    /* Hide unnecessary elements */
    .top-bar,
    .navbar,
    .cta-section,
    .site-footer,
    .back-to-top,
    .whatsapp-float {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* ========================================
   HIGH DPI DISPLAYS
======================================== */
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   HOVER EFFECTS (Desktop Only)
======================================== */
@media (hover: hover) and (pointer: fine) {
    /* Enable hover effects only on devices that support it */
    .feature-card:hover,
    .pricing-card:hover,
    .testimonial-card:hover {
        transform: translateY(-10px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* ========================================
   DARK MODE SUPPORT
======================================== */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles here if needed */
}