/* Hostxolo - Mobile Responsive Enhancements */

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav {
        background: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 0.25rem;
        margin: 0.25rem 0;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background: #fff7ed;
        color: #f97316;
    }
    
    .navbar-nav .dropdown-menu {
        background: #f8f9fa;
        border: none;
        box-shadow: none;
        padding: 0 1rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        margin: 0.25rem 0;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: #f97316;
        color: white;
    }
    
    .navbar-nav .btn {
        margin: 0.5rem 0;
        width: 100%;
    }
}

/* Mobile Hero Sections */
@media (max-width: 768px) {
    .hero-section,
    .about-hero,
    .support-hero {
        padding: 3rem 0 !important;
        text-align: center;
    }
    
    .hero-section h1,
    .about-hero h1,
    .support-hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p,
    .about-hero p,
    .support-hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .btn,
    .about-hero .btn,
    .support-hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.5rem;
        display: inline-block;
    }
}

/* Mobile Cards and Grids */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1.5rem;
        border-radius: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .row {
        margin: 0;
    }
    
    .col-md-6,
    .col-md-4,
    .col-lg-3,
    .col-lg-4 {
        padding: 0.75rem;
    }
    
    .stat-card,
    .value-card,
    .team-card,
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .stat-icon,
    .value-icon {
        margin: 0 auto 1rem;
    }
}

/* Mobile Forms */
@media (max-width: 768px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
    }
    
    .form-floating > label {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 0.5rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
}

/* Mobile Tables */
@media (max-width: 768px) {
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: middle;
    }
    
    .table-responsive {
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

/* Mobile Dashboard Specific */
@media (max-width: 768px) {
    .welcome-banner {
        padding: 2rem 1rem !important;
        text-align: center;
    }
    
    .welcome-banner h2 {
        font-size: 1.5rem;
    }
    
    .subscription-card,
    .profile-card {
        margin-bottom: 1.5rem;
    }
    
    .progress-ring {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .timeline {
        margin-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .quick-action {
        text-align: center;
        padding: 1rem;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
    
    footer .social-links {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    footer .text-center {
        text-align: center !important;
    }
}

/* Mobile Contact Form */
@media (max-width: 768px) {
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .contact-info .icon {
        margin: 0 auto 1rem;
    }
}

/* Mobile Pricing Tables */
@media (max-width: 768px) {
    .pricing-card {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .pricing-header {
        padding: 2rem 1rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .pricing-features {
        padding: 1.5rem;
    }
}

/* Mobile Blog */
@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 2rem;
    }
    
    .blog-card img {
        height: 200px;
        object-fit: cover;
    }
    
    .blog-meta {
        font-size: 0.875rem;
    }
    
    .blog-title {
        font-size: 1.25rem;
    }
}

/* Mobile Testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem;
        text-align: center;
    }
    
    .testimonial-avatar {
        margin: 0 auto 1rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Mobile FAQ */
@media (max-width: 768px) {
    .faq-button {
        padding: 1rem;
        font-size: 0.9rem;
        text-align: left;
    }
    
    .faq-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .dropdown-item,
    .card-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .clickable {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Mobile-specific animations */
@media (max-width: 768px) {
    .fade-in-mobile {
        animation: fadeIn 0.6s ease-in;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .slide-up-mobile {
        animation: slideUp 0.5s ease-out;
    }
    
    @keyframes slideUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}

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

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section h1,
    .about-hero h1,
    .support-hero h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .stat-icon,
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
