/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .upload-card {
        padding: 30px;
    }
    
    .tool-card {
        margin-bottom: 20px;
    }
}

/* Mobile Styles (max-width: 767px) */
@media (max-width: 767px) {
    /* Typography */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Upload Card */
    .upload-card {
        margin-top: 30px;
        padding: 20px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    /* Tool Cards */
    .tool-card {
        margin-bottom: 20px;
    }
    
    /* Stats Section */
    .stat-box {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 20px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
        margin: 20px 0;
    }
    
    /* Dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    /* Tables */
    .table-responsive {
        border-radius: 10px;
    }
    
    /* For very small screens, stack table cells */
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 10px;
        padding: 10px;
    }
    
    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table tbody td:last-child {
        border-bottom: none;
    }
    
    .table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        color: #6c757d;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevent zoom on mobile */
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    footer .col-md-4,
    footer .col-md-2 {
        margin-bottom: 30px;
    }
    
    /* Navigation */
    .navbar-nav {
        padding: 15px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
    }
    
    .navbar-nav .btn {
        margin-top: 10px;
        width: auto;
    }
    
    /* Toast Notifications */
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    /* Accordion */
    .accordion-button {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    /* Testimonial Cards */
    .testimonial-card {
        margin-bottom: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .display-4 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
    
    .upload-card {
        padding: 15px;
    }
    
    .tool-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
    
    .tool-icon i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
    }
    
    .min-vh-75 {
        min-height: auto;
    }
    
    .upload-card {
        margin-top: 20px;
    }
}

/* Dark Mode Support (if user prefers dark mode) */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background: #1a1a2e;
        color: #fff;
    }
    
    body.dark-mode .card,
    body.dark-mode .tool-card,
    body.dark-mode .feature-card,
    body.dark-mode .testimonial-card,
    body.dark-mode .stat-box,
    body.dark-mode .pricing-card {
        background: #16213e;
        color: #fff;
    }
    
    body.dark-mode .text-muted {
        color: #a0a0a0 !important;
    }
    
    body.dark-mode .table thead th {
        background: #0f3460;
        color: #fff;
    }
    
    body.dark-mode .table tbody tr {
        background: #16213e;
        border-color: #0f3460;
    }
    
    body.dark-mode .form-control {
        background: #0f3460;
        border-color: #1a2a4f;
        color: #fff;
    }
    
    body.dark-mode .accordion-button {
        background: #16213e;
        color: #fff;
    }
    
    body.dark-mode .accordion-body {
        background: #0f3460;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    .upload-card,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: black;
        color: white;
        border: 2px solid white;
    }
    
    .text-gradient {
        background: none;
        color: black;
        -webkit-text-fill-color: black;
    }
}

/* Add to existing responsive.css */

/* Hero card on mobile */
@media (max-width: 767px) {
    .hero-card {
        padding: 1.5rem !important;
    }
    .hero-card .display-5 {
        font-size: 1.75rem;
    }
    .hero-card .lead {
        font-size: 1rem;
    }
    .upload-area {
        padding: 1.5rem !important;
    }
    .adsense-card {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero-card {
        padding: 1rem !important;
    }
    .hero-card .d-flex {
        flex-wrap: wrap;
        gap: 0.75rem !important;
    }
    .hero-card .btn-primary {
        width: 100%;
    }
}