/* Mobile Responsive Styles for GO Anyquizi */

/* Base Mobile Styles */
@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-description {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .header-social {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-social .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Hero Section */
    .hero__v6 {
        padding: 2rem 0;
    }
    
    .hero__v6 .container {
        padding: 0 1rem;
    }
    
    .cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Cards and Sections */
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }
    
    .price-table {
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-control-lg {
        font-size: 18px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
    
    /* FAQ Page */
    .faq-categories .btn {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }
    
    .accordion-button {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .accordion-body {
        font-size: 0.875rem;
        padding: 1rem;
    }
    
    /* Search Box */
    .search-box {
        position: relative;
    }
    
    .search-box input {
        padding-right: 3rem;
    }
    
    .search-box i {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
    }
    
    /* Navigation */
    .navbar-brand img {
        max-height: 30px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Stats cards */
    .stat-card {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.5rem !important;
    }
    
    /* Pricing tables */
    .price-table {
        padding: 1rem !important;
    }
    
    .price-table .price {
        font-size: 1.5rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn + .btn {
        margin-left: 0;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    /* Dashboard specific */
    .dashboard-stats .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .dashboard-stats .card {
        text-align: center;
    }
    
    /* Analytics dashboard */
    .chart-container {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .chart-container canvas {
        max-height: 300px;
    }
    
    /* FAQ page */
    .faq-categories .row {
        margin: 0;
    }
    
    .faq-categories .col-md-3 {
        padding: 0 0.25rem;
    }
    
    .faq-categories .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Hero section */
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    /* Cards */
    .service-card {
        padding: 2rem !important;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Pricing */
    .price-table {
        padding: 2rem !important;
    }
    
    /* Dashboard */
    .dashboard-stats .col-md-3 {
        margin-bottom: 1.5rem;
    }
}

/* Large Mobile Devices (Landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .hero__v6 {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .navbar-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: none;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    /* Increase touch targets */
    .nav-link,
    .btn,
    .form-control,
    .accordion-button {
        min-height: 44px;
    }
    
    /* Improve button spacing */
    .btn + .btn {
        margin-left: 0.5rem;
    }
    
    /* Better form spacing */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Improve table readability */
    .table th,
    .table td {
        min-width: 80px;
    }
    
    /* Better modal handling */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Improve dropdown menus */
    .dropdown-menu {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .cta {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .section {
        padding: 1rem 0 !important;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* This can be expanded for dark mode support */
    .card {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .form-control {
        background-color: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Focus improvements for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes for mobile */
.mobile-hidden {
    display: none !important;
}

.mobile-visible {
    display: block !important;
}

@media (min-width: 769px) {
    .mobile-hidden {
        display: block !important;
    }
    
    .mobile-visible {
        display: none !important;
    }
}

/* Text truncation for mobile */
.mobile-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .mobile-truncate {
        max-width: 200px;
    }
}

/* Improved spacing for mobile */
@media (max-width: 768px) {
    .mb-mobile-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-mobile-3 {
        margin-top: 1rem !important;
    }
    
    .p-mobile-3 {
        padding: 1rem !important;
    }
}

