/* Mobile First Responsive Design */

/* Base Mobile Styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Header Mobile Styles */
    .main-header .container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        flex: 1;
    }
    
    .search-container {
        order: 3;
        margin: 15px 0 0;
        max-width: 100%;
        width: 100%;
    }
    
    .main-nav {
        order: 2;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Mobile Styles */
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Section Mobile Styles */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Prompt Grid Mobile */
    .prompt-grid {
        grid-template-columns: 1fr;
    }
    
    /* Categories Mobile */
    .categories-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    /* Filter Panel Mobile */
    .filter-panel {
        width: 100%;
        left: 0;
        right: auto;
    }
    
    /* Modal Mobile Styles */
    .modal-content {
        width: 95%;
        max-height: 80vh;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .prompt-actions .btn {
        width: 100%;
    }
    
    /* Footer Mobile Styles */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

/* Small Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .prompt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 80%;
    }
}

/* Landscape & Larger Devices */
@media (min-width: 1025px) {
    .prompt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* For very large screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .prompt-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print styles */
@media print {
    .main-header, .main-footer, .prompt-actions, .cta-buttons {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .prompt-content {
        background-color: white;
        color: black;
        border: 1px solid #ddd;
    }
}
