/**
 * Directory Browse Extension CSS
 * Extends the existing directory.css with AJAX filtering specific styles
 */

/* ========================================
   BROWSE PAGE HERO MODIFICATIONS
======================================== */

/* Browse-specific hero styling */
.browse-hero {
    padding: 4rem 0 3rem;
    min-height: auto;
}

.browse-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.browse-hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Filter Controls in Hero Stats Area */
.filters-area {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.search-box-hero {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.hero-search {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.hero-search:focus {
    outline: none;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.hero-select {
    min-width: 180px;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-select:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Results summary section removed - no longer needed */

/* ========================================
   COMPANIES SECTION MODIFICATIONS
======================================== */

.browse-companies {
    padding: 2rem 0 4rem;
}

/* Grid view only - list view removed */

/* ========================================
   LOADING STATES
======================================== */

.loading-indicator {
    text-align: center;
    padding: 4rem 0;
    color: var(--primary, #482d70);
}

.loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(72, 45, 112, 0.1);
    border-left: 4px solid var(--primary, #482d70);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

/* ========================================
   NO RESULTS & ERROR STATES
======================================== */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light, #64748b);
}

.no-results-content h3 {
    font-size: 1.8rem;
    margin: 0 0 1rem;
    color: var(--text, #1e293b);
}

.no-results-content p {
    font-size: 1.1rem;
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ========================================
   PAGINATION
======================================== */

.pagination-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

.page-btn {
    min-width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-light, #64748b);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}

.page-btn:hover {
    background: var(--primary-light, #e9e4f0);
    color: var(--primary, #482d70);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary, #482d70);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(72, 45, 112, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-ellipsis {
    padding: 0 10px;
    color: var(--text-light, #64748b);
    font-weight: bold;
}

.prev-btn,
.next-btn {
    font-weight: 700;
    padding: 0 20px;
}

/* ========================================
   PERFORMANCE BADGES
======================================== */

.performance-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.performance-badge.excellent { 
    background: linear-gradient(135deg, var(--success, #10b981), #059669);
}
.performance-badge.good { 
    background: linear-gradient(135deg, var(--primary, #482d70), #3b2459);
}
.performance-badge.average { 
    background: linear-gradient(135deg, var(--warning, #f59e0b), #d97706);
}
.performance-badge.needs-improvement { 
    background: linear-gradient(135deg, var(--danger, #ef4444), #dc2626);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .browse-hero {
        padding: 2rem 0;
    }
    
    .browse-hero .hero-title {
        font-size: 2rem;
    }
    
    .filter-row {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box-hero {
        min-width: 100%;
    }
    
    .hero-select {
        min-width: 100%;
        width: 100%;
    }
    
    /* Results summary and list view responsive rules removed */
    
    .pagination {
        padding: 1rem;
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .page-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
    
    .prev-btn,
    .next-btn {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .browse-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .performance-badge {
        position: static;
        margin-bottom: 1rem;
        display: inline-block;
    }
}