/* Hostxolo - Enhanced Mobile Responsive Styles */

/* ======== GLOBAL MOBILE ======== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        border: 1px solid #e2e8f0;
    }
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem !important;
        border-radius: 0.5rem;
        margin: 2px 0;
        color: #1e293b !important;
    }
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(249,115,22,0.08);
        color: #f97316 !important;
    }
    .navbar-nav .dropdown-menu {
        background: #f8fafc;
        border: none;
        box-shadow: none;
        padding: 0 0.5rem;
        margin: 0;
    }
    .navbar-nav .dropdown-item {
        padding: 0.6rem 1rem;
        border-radius: 0.375rem;
        color: #475569;
    }
    .navbar-nav .dropdown-item:hover {
        background: #f97316;
        color: #fff;
    }
    .navbar-nav .btn {
        width: 100%;
        margin: 0.375rem 0;
        justify-content: center;
    }
    
    /* Admin sidebar responsive */
    .admin-sidebar {
        min-height: auto !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 1040;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    .admin-sidebar .nav-link {
        padding: 0.75rem 1rem;
    }
    .admin-content {
        margin-left: 0 !important;
    }
}

/* ======== MOBILE (max-width: 768px) ======== */
@media (max-width: 768px) {
    /* Hero */
    .hero-section,
    .about-hero,
    .support-hero {
        padding: 5rem 0 3rem !important;
        text-align: center;
    }
    .hero-section h1,
    .hero-title,
    .about-hero h1,
    .support-hero h1 {
        font-size: 1.875rem !important;
        margin-bottom: 1rem;
        line-height: 1.15;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        text-align: center;
    }
    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.625rem !important;
        line-height: 1.3;
    }
    .section-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
    
    /* Stats */
    .stat-number { font-size: 2.25rem !important; }
    .stat-label { font-size: 0.875rem; }
    .stat-item { padding: 1rem 0.5rem; }
    
    /* Cards */
    .card { margin-bottom: 1rem; }
    .service-card,
    .software-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 1.25rem;
    }
    .service-card { padding: 1.5rem; }
    .service-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 1rem;
    }
    .service-icon i { font-size: 1.5rem; }
    .service-card h3 { font-size: 1.125rem; }
    
    /* Pricing */
    .pricing-section { padding: 3.5rem 0; }
    .pricing-card {
        margin-bottom: 1.5rem;
        padding: 1.75rem 1.5rem;
    }
    .pricing-card .price {
        font-size: 2.5rem;
        margin: 1rem 0;
    }
    .pricing-card.featured {
        transform: none;
    }
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    /* Blog */
    .blog-image { height: 180px; }
    .blog-body { padding: 1.25rem; }
    .blog-title { font-size: 1.1rem; }
    
    /* CTA */
    .cta-section { padding: 3.5rem 0; }
    .cta-section h2 { font-size: 1.75rem !important; }
    .cta-section p { font-size: 1rem; }
    
    /* Page header */
    .page-header {
        padding: 5.5rem 0 2.5rem !important;
    }
    .page-header h1 {
        font-size: 1.75rem !important;
    }
    
    /* Tables */
    .table { font-size: 0.8125rem; }
    .table th, .table td {
        padding: 0.5rem 0.625rem;
        white-space: nowrap;
    }
    .table-responsive {
        border-radius: 0.75rem;
        border: 1px solid #e2e8f0;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        font-size: 16px;
        padding: 0.7rem 0.875rem;
    }
    .btn {
        min-height: 44px;
        font-size: 0.9375rem;
    }
    .btn-group .btn {
        min-height: auto;
    }
    
    /* Footer */
    footer { padding: 2.5rem 0 1rem; }
    footer .row > div { margin-bottom: 1.5rem; }
    footer h5 { font-size: 1rem; margin-bottom: 0.75rem; }
    footer .d-flex.gap-3 { justify-content: flex-start; }
    
    /* Back to top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    /* Testimonials */
    .testimonial-card { padding: 1.5rem; }
    .testimonial-content { font-size: 0.9375rem; }
    
    /* User dashboard */
    .user-sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .welcome-banner {
        padding: 1.5rem !important;
        text-align: center;
    }
    .welcome-banner h2 { font-size: 1.375rem; }
    
    /* Contact */
    .contact-form { padding: 1rem; }
    .contact-info { margin-bottom: 1.5rem; text-align: center; }
    .contact-info .icon { margin: 0 auto 0.75rem; }
    
    /* Modals */
    .modal-dialog { margin: 0.75rem; }
    
    /* Dashboard stat cards */
    .stat-card { padding: 1rem; }
    .stat-card .icon { width: 44px; height: 44px; font-size: 1.125rem; }
    .stat-card h3 { font-size: 1.25rem; }
    .stat-card h6 { font-size: 0.6875rem; }
}

/* ======== SMALL MOBILE ======== */
@media (max-width: 480px) {
    .container { padding: 0 0.875rem; }
    
    .hero-section h1,
    .hero-title {
        font-size: 1.625rem !important;
    }
    .hero-subtitle { font-size: 0.9375rem !important; }
    
    .section-title { font-size: 1.375rem !important; }
    
    .pricing-card .price { font-size: 2rem; }
    
    .cta-section h2 { font-size: 1.5rem !important; }
    
    .page-header h1 { font-size: 1.5rem !important; }
    
    .stat-number { font-size: 1.875rem !important; }
    
    .card-body { padding: 1rem; }
    
    /* Stack buttons */
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.375rem 0;
    }
    
    .btn-group {
        flex-direction: column;
    }
    .btn-group .btn {
        border-radius: 0.5rem !important;
        margin-bottom: 0.25rem;
    }
}

/* ======== LANDSCAPE ======== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section,
    .about-hero,
    .support-hero {
        padding: 4rem 0 2rem !important;
    }
    .navbar { padding: 0.25rem 0; }
}

/* ======== TOUCH DEVICES ======== */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .dropdown-item, .card-link {
        min-height: 44px;
    }
    .btn:active,
    .nav-link:active,
    .card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* ======== PRINT ======== */
@media print {
    .navbar, footer, .back-to-top, .admin-sidebar { display: none !important; }
    .hero-section { padding: 1rem 0 !important; background: none !important; color: #000 !important; }
    .admin-content { margin: 0 !important; }
}
