/* PromptBix - Modern AI Prompt Marketplace Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0f172a;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #94a3b8;
}

a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8b5cf6;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background: #374151;
    border-color: #6366f1;
}

.btn-outline {
    background: transparent;
    color: #6366f1;
    border: 2px solid #6366f1;
}

.btn-outline:hover {
    background: #6366f1;
    color: white;
}

/* Cards */
.card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: #6366f1;
}

/* Navigation Styles */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.brand-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6366f1;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

.nav-cta {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #6366f1;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #0f172a;
    z-index: 1999;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(99, 102, 241, 0.2);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.mobile-menu-close {
    cursor: pointer;
    padding: 0.5rem;
    color: #6366f1;
    font-size: 1.25rem;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav li {
    margin: 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 1rem;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    border-left-color: #6366f1;
}

.mobile-menu-cta {
    padding: 1rem;
}

.mobile-menu-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
}

/* Mobile Menu Active States */
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu.active {
    right: 0;
}

/* Hamburger animation is handled by JavaScript */

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%236366f1" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(99, 102, 241, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #94a3b8;
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #d1d5db;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6366f1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Page Content Spacing */
body {
    padding-top: 70px;
}

/* Professional Hub Styles */
.hub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hub-header {
    text-align: center;
    margin-bottom: 3rem;
}

.hub-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hub-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filter Section */
.search-filter-section {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6366f1;
    font-size: 1.1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

.category-icon {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.category-count {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Prompt Grid */
.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.prompt-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    border-color: #6366f1;
}

.prompt-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.prompt-content {
    padding: 1.5rem;
}

.prompt-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prompt-description {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prompt-category {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.prompt-price {
    font-weight: 600;
    color: #10b981;
}

.prompt-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
    text-align: center;
}

.pagination a:hover,
.pagination .current {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.loading i {
    font-size: 2rem;
    color: #6366f1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Typography adjustments */
    .hub-title {
        font-size: 2.5rem;
    }
    
    .hub-subtitle {
        font-size: 1rem;
    }
    
    /* Layout improvements */
    .search-filter-section {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 44px; /* Touch-friendly minimum */
    }
    
    /* Grid layouts */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .prompt-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .prompt-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }
    
    /* Mobile-specific improvements */
    .search-filter-container {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    /* Touch-friendly buttons */
    button, .btn, select, input[type="submit"] {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    /* Improved form elements */
    select, input[type="text"], input[type="search"] {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Card improvements */
    .card-hover {
        transition: none; /* Disable hover effects on mobile */
    }
    
    .card-hover:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 480px) {
    /* Container adjustments */
    .hub-container {
        padding: 1rem 0.5rem;
    }
    
    .search-filter-section {
        padding: 1rem;
    }
    
    .category-card,
    .prompt-card {
        margin: 0 0.5rem;
    }
    
    /* Typography for small screens */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Grid adjustments */
    .prompt-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Navigation improvements */
    .nav-container {
        padding: 0 1rem;
    }
    
    /* Form improvements */
    .search-filter-container {
        padding: 1rem;
        margin: 0 -0.5rem;
    }
    
    /* Button spacing */
    .filter-btn {
        margin-bottom: 0.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card-hover:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card-hover:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Remove hover effects on touch devices */
    a:hover, button:hover, .btn:hover {
        background-color: inherit;
    }
    
    /* Improve touch targets */
    a, button, .btn, select, input {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Professional Dropdown Styles with Scrolling System */
.professional-dropdown {
    position: relative;
    display: inline-block;
}

.professional-dropdown select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.professional-dropdown select:hover {
    border-color: #9ca3af;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.professional-dropdown select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.professional-dropdown select option {
    background: #ffffff;
    color: #374151;
    padding: 12px 16px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.professional-dropdown select option:hover {
    background: #f3f4f6;
}

.professional-dropdown select option:checked {
    background: #3b82f6;
    color: #ffffff;
}

/* Custom Scrollbar for Professional Dropdowns */
.professional-dropdown select::-webkit-scrollbar {
    width: 8px;
}

.professional-dropdown select::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.professional-dropdown select::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

.professional-dropdown select::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Firefox Scrollbar */
.professional-dropdown select {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.professional-dropdown .dropdown-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 12px;
    transition: all 0.2s ease;
}

.professional-dropdown:hover .dropdown-icon {
    color: #374151;
}

.professional-dropdown select:focus + .dropdown-icon {
    color: #3b82f6;
}

/* Enhanced Dropdown Container for Better Scrolling */
.professional-dropdown-container {
    position: relative;
    display: inline-block;
}

.professional-dropdown-container select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Professional Dropdown List Styling */
.professional-dropdown-container select option {
    background: #ffffff;
    color: #374151;
    padding: 10px 16px;
    font-weight: 500;
    line-height: 1.4;
    border-bottom: 1px solid #f3f4f6;
}

.professional-dropdown-container select option:last-child {
    border-bottom: none;
}

.professional-dropdown-container select option:hover {
    background: #f8fafc;
}

.professional-dropdown-container select option:checked,
.professional-dropdown-container select option:selected {
    background: #3b82f6;
    color: #ffffff;
}

/* Dark theme support for professional dropdowns */
@media (prefers-color-scheme: dark) {
    .professional-dropdown select,
    .professional-dropdown-container select {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .professional-dropdown select:hover,
    .professional-dropdown-container select:hover {
        border-color: #4b5563;
    }
    
    .professional-dropdown select:focus,
    .professional-dropdown-container select:focus {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .professional-dropdown select option,
    .professional-dropdown-container select option {
        background: #1f2937;
        color: #f9fafb;
        border-bottom-color: #374151;
    }
    
    .professional-dropdown select option:hover,
    .professional-dropdown-container select option:hover {
        background: #374151;
    }
    
    .professional-dropdown .dropdown-icon {
        color: #9ca3af;
    }
    
    .professional-dropdown:hover .dropdown-icon {
        color: #f9fafb;
    }
    
    /* Dark theme scrollbar */
    .professional-dropdown select::-webkit-scrollbar-track,
    .professional-dropdown-container select::-webkit-scrollbar-track {
        background: #374151;
    }
    
    .professional-dropdown select::-webkit-scrollbar-thumb,
    .professional-dropdown-container select::-webkit-scrollbar-thumb {
        background: #4b5563;
        border-color: #374151;
    }
    
    .professional-dropdown select::-webkit-scrollbar-thumb:hover,
    .professional-dropdown-container select::-webkit-scrollbar-thumb:hover {
        background: #6b7280;
    }
    
    .professional-dropdown select,
    .professional-dropdown-container select {
        scrollbar-color: #4b5563 #374151;
    }
}

/* Manual dark theme class for consistent styling */
.dark .professional-dropdown select,
.dark .professional-dropdown-container select {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.dark .professional-dropdown select:hover,
.dark .professional-dropdown-container select:hover {
    border-color: #4b5563;
}

.dark .professional-dropdown select:focus,
.dark .professional-dropdown-container select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .professional-dropdown select option,
.dark .professional-dropdown-container select option {
    background: #1f2937;
    color: #f9fafb;
    border-bottom-color: #374151;
}

.dark .professional-dropdown select option:hover,
.dark .professional-dropdown-container select option:hover {
    background: #374151;
}

.dark .professional-dropdown .dropdown-icon {
    color: #9ca3af;
}

.dark .professional-dropdown:hover .dropdown-icon {
    color: #f9fafb;
}

/* Dark theme scrollbar */
.dark .professional-dropdown select::-webkit-scrollbar-track,
.dark .professional-dropdown-container select::-webkit-scrollbar-track {
    background: #374151;
}

.dark .professional-dropdown select::-webkit-scrollbar-thumb,
.dark .professional-dropdown-container select::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-color: #374151;
}

.dark .professional-dropdown select::-webkit-scrollbar-thumb:hover,
.dark .professional-dropdown-container select::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.dark .professional-dropdown select,
.dark .professional-dropdown-container select {
    scrollbar-color: #4b5563 #374151;
}

/* Responsive adjustments for professional dropdowns */
@media (max-width: 768px) {
    .professional-dropdown select,
    .professional-dropdown-container select {
        min-width: 120px;
        padding: 10px 35px 10px 14px;
        font-size: 13px;
        max-height: 180px;
    }
    
    .professional-dropdown .dropdown-icon {
        right: 10px;
        font-size: 11px;
    }
    
    .professional-dropdown select option,
    .professional-dropdown-container select option {
        padding: 8px 14px;
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .professional-dropdown select,
    .professional-dropdown-container select {
        min-width: 100px;
        padding: 8px 30px 8px 12px;
        font-size: 12px;
        max-height: 160px;
    }
    
    .professional-dropdown .dropdown-icon {
        right: 8px;
        font-size: 10px;
    }
    
    .professional-dropdown select option,
    .professional-dropdown-container select option {
        padding: 6px 12px;
        min-height: 36px;
    }
}

/* Professional filter section styling */
.filter-section-professional {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.dark .filter-section-professional {
    background: #1e293b;
    border-color: #334155;
}

/* Professional clear filters button */
.btn-clear-professional {
    background: #ef4444;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-clear-professional:hover {
    background: #dc2626;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-clear-professional:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Enhanced Professional Dropdown with Better UX */
.professional-dropdown-enhanced {
    position: relative;
    display: inline-block;
}

.professional-dropdown-enhanced select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 40px 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    max-height: none; /* Let browser handle the dropdown height */
}

/* Ensure proper option styling for all browsers */
.professional-dropdown-enhanced select option {
    background: #ffffff;
    color: #374151;
    padding: 10px 16px;
    font-weight: 500;
    line-height: 1.4;
}

.professional-dropdown-enhanced select option:hover {
    background: #f8fafc;
}

.professional-dropdown-enhanced select option:checked,
.professional-dropdown-enhanced select option:selected {
    background: #3b82f6;
    color: #ffffff;
}

/* Mobile-Specific Grid System for Two Prompt Boxes */
@media (max-width: 640px) {
    /* Mobile Grid Container */
    .mobile-prompt-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Mobile Prompt Card Styling */
    .mobile-prompt-card {
        background: #1f2937;
        border-radius: 12px;
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        position: relative;
    }
    
    .mobile-prompt-card:active {
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    /* Mobile Card Header */
    .mobile-card-header {
        height: 60px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .mobile-card-header i {
        font-size: 18px;
        color: white;
        opacity: 0.9;
    }
    
    /* Mobile Tags */
    .mobile-tags {
        position: absolute;
        top: 4px;
        left: 4px;
        right: 4px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        z-index: 2;
    }
    
    .mobile-tag {
        background: rgba(0, 0, 0, 0.7);
        color: white;
        font-size: 9px;
        font-weight: bold;
        padding: 2px 6px;
        border-radius: 8px;
        backdrop-filter: blur(4px);
    }
    
    .mobile-tag.free {
        background: rgba(34, 197, 94, 0.9);
    }
    
    .mobile-tag.premium {
        background: rgba(251, 191, 36, 0.9);
    }
    
    .mobile-tag.business {
        background: rgba(59, 130, 246, 0.9);
    }
    
    /* Mobile Card Content */
    .mobile-card-content {
        padding: 8px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .mobile-card-title {
        font-size: 12px;
        font-weight: 600;
        color: white;
        line-height: 1.3;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        min-height: 30px;
    }
    
    .mobile-card-description {
        font-size: 10px;
        color: #9ca3af;
        line-height: 1.3;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }
    
    /* Mobile Card Stats */
    .mobile-card-stats {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 9px;
        color: #6b7280;
        margin-top: auto;
    }
    
    .mobile-stat-group {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .mobile-stat {
        display: flex;
        align-items: center;
        gap: 2px;
    }
    
    .mobile-stat i {
        font-size: 8px;
    }
    
    /* Mobile Rating */
    .mobile-rating {
        display: flex;
        align-items: center;
        gap: 2px;
    }
    
    .mobile-rating i {
        color: #fbbf24;
        font-size: 8px;
    }
    
    /* Override default grid on mobile */
    #promptsContainer.mobile-view {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 8px !important;
        margin-bottom: 16px !important;
    }
    
    /* Hide desktop elements on mobile */
    .mobile-view .hidden-mobile {
        display: none !important;
    }
    
    /* Mobile-specific prompt card layout */
    .mobile-view .bg-dark-800 {
        background: #1f2937 !important;
        border-radius: 12px !important;
        min-height: 200px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Adjust mobile card header */
    .mobile-view .bg-dark-800 > div:first-child {
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Adjust mobile card content */
    .mobile-view .bg-dark-800 > div:last-child {
        padding: 8px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }
    
    /* Mobile title styling */
    .mobile-view h3 {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-height: 30px !important;
    }
    
    /* Mobile description styling */
    .mobile-view p {
        font-size: 10px !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
    }
    
    /* Mobile tags container */
    .mobile-view .flex.flex-wrap {
        margin-bottom: 6px !important;
    }
    
    /* Mobile tag styling */
    .mobile-view .bg-dark-700 {
        font-size: 8px !important;
        padding: 1px 4px !important;
        margin-right: 2px !important;
        margin-bottom: 2px !important;
    }
    
    /* Mobile stats styling */
    .mobile-view .flex.items-center.justify-between {
        font-size: 9px !important;
        margin-top: auto !important;
    }
    
    /* Mobile stats icons */
    .mobile-view .flex.items-center.justify-between i {
        font-size: 8px !important;
    }
    
    /* Mobile premium/free tags */
    .mobile-view .absolute.top-1 span,
    .mobile-view .absolute.top-2 span {
        font-size: 8px !important;
        padding: 2px 4px !important;
    }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 768px) {
    #promptsContainer {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 12px !important;
    }
}

/* Ensure mobile grid is responsive */
@media (max-width: 480px) {
    .mobile-prompt-grid,
    #promptsContainer.mobile-view {
        gap: 6px !important;
        padding: 6px !important;
    }
    
    .mobile-prompt-card,
    .mobile-view .bg-dark-800 {
        min-height: 180px !important;
    }
    
    .mobile-card-header {
        height: 50px !important;
    }
    
    .mobile-card-content,
    .mobile-view .bg-dark-800 > div:last-child {
        padding: 6px !important;
    }
}
