/* ============================================
   AIBE Prep - Responsive Styles
   Location: assets/css/responsive.css
   ============================================
   Mobile-first responsive overrides
   70% of users access on mobile devices
   ============================================ */

/* ============================================
   TABLET & BELOW (768px and down)
   ============================================ */
@media (max-width: 768px) {
    
    /* Hero Section */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    /* Form Containers */
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .price-tag {
        font-size: 2rem;
    }
    
    /* Feature Cards */
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    /* Dashboard Stats */
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    /* Footer */
    footer {
        margin-top: 2rem;
        padding: 2rem 0 1rem;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Tables */
    .table-responsive {
        font-size: 0.875rem;
    }
	
    /* Mobile Quick Actions - Ensure proper layout */
    .navbar-brand {
        flex: 0 0 auto;
    }
    
    .mobile-quick-actions {
        display: flex;
        order: 2;
    }
    
    .navbar-toggler {
        order: 3;
        margin-left: 0;
    }
    
    .navbar > .container {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    /* Ensure buttons are touch-friendly */
    .btn-mobile-quick {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Show FAB on mobile only */
    .fab-dashboard {
        display: none;
    }	
    
    /* Stats Alert */
    .stats-alert {
        padding: 1rem;
    }
    
    .stat-highlight {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    /* Accordion */
    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }
    
    .accordion-body {
        font-size: 0.9rem;
    }
    
    /* Error 404 */
    .error-404-content h1 {
        font-size: 6rem;
    }
    
    .error-404-content {
        padding: 2rem 0;
    }
}

/* ============================================
   MOBILE (576px and down)
   ============================================ */
@media (max-width: 576px) {
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Containers */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Form Containers */
    .form-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    /* Pricing Cards */
    .price-tag {
        font-size: 1.75rem;
    }
    
    .price-original {
        font-size: 1.25rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    /* Dashboard Cards */
    .dashboard-card {
        padding: 1rem;
    }
    
    /* Stat Boxes */
    .stat-box {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Section Headings */
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Stats Alert */
    .stats-alert h5 {
        font-size: 1rem;
    }
    
    .stat-highlight {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
    }
    
    /* Navigation */
    .nav-link {
        margin: 0.25rem 0;
    }
    
    /* Back to Top Button */
    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Error 404 */
    .error-404-content h1 {
        font-size: 4rem;
    }
    
    .error-404-content h2 {
        font-size: 1.5rem;
    }
    
    /* Badge Plan */
    .badge-plan {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    /* Gap utilities for small screens */
    .gap-3 {
        gap: 0.5rem !important;
    }
	
	/* Slightly smaller on very small screens */
	.btn-mobile-quick {
		min-width: 50px;
		min-height: 46px;
		padding: 4px 6px;
		font-size: 0.9rem;
	}

	.btn-mobile-quick i {
		font-size: 1rem;
	}

	.btn-mobile-quick span {
		font-size: 0.6rem;
	}

	.mobile-quick-actions {
		gap: 6px;
		margin-right: 8px;
	}
}

/* ============================================
   LARGE SCREENS (1200px and up)
   ============================================ */
@media (min-width: 1200px) {
    
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .feature-card {
        min-height: 280px;
    }
    
    .pricing-card {
        min-height: 500px;
    }
}

/* ============================================
   LANDSCAPE MOBILE (SPECIFIC FIXES)
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .form-container {
        max-width: 90%;
    }
}

/* ============================================
   PRINT STYLES (FOR RESULTS/REPORTS)
   ============================================ */
@media print {
    
    /* Hide navigation and footer */
    .navbar,
    footer,
    .btn,
    #backToTop {
        display: none !important;
    }
    
    /* Optimize for printing */
    body {
        background: white;
        color: black;
    }
    
    .dashboard-card,
    .feature-card,
    .pricing-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    /* Links */
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-card,
    .pricing-card,
    .dashboard-card {
        border: 2px solid var(--color-border-dark);
    }
}