/* Complete Pulse Discovery Styling */
.explore-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Search Header Section */
.search-header-box {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-header-box:hover {
    border-color: #8A3B12;
    box-shadow: 0 8px 32px rgba(138, 59, 18, 0.1);
}

.search-header-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8A3B12, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-header-box:hover::before {
    opacity: 1;
}

.header-content {
    text-align: center;
}

.search-header-box .header-content h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    text-align: center !important;
}

.search-header-box .header-content p.header-subtitle {
    color: #94a3b8;
    margin-bottom: 16px;
    font-size: 1.1rem;
    text-align: center !important;
    display: block;
    width: 100%;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #94a3b8;
    /* Remove justify-content: center if you added it */
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-input-group {
    display: flex;
    gap: 12px;
}

.search-field {
    flex: 1;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: #8A3B12;
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 59, 18, 0.2);
}

.search-button, .scan-button, .clear-button {
    padding: 14px 18px;
    background: #8A3B12;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover, .scan-button:hover {
    background: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(138, 59, 18, 0.3);
}

.clear-button {
    background: #6b7280;
}

.clear-button:hover {
    background: #ef4444;
    transform: translateY(-2px);
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-row select {
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-row select:hover {
    border-color: #8A3B12;
}

/* Category Filter Section */
.category-filter-section, .stats-overview-section, .results-section {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-filter-section:hover, .stats-overview-section:hover, .results-section:hover {
    border-color: #8A3B12;
    box-shadow: 0 8px 32px rgba(138, 59, 18, 0.1);
}

.category-filter-section::before, .stats-overview-section::before, .results-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8A3B12, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-filter-section:hover::before, .stats-overview-section:hover::before, .results-section:hover::before {
    opacity: 1;
}

.section-title {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 20px;
    background: rgba(51, 65, 85, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    background: rgba(138, 59, 18, 0.3);
    border-color: #8A3B12;
    color: #ff6b35;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #8A3B12, #ff6b35);
    color: white;
    border-color: #8A3B12;
    box-shadow: 0 4px 16px rgba(138, 59, 18, 0.3);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #8A3B12;
    box-shadow: 0 8px 24px rgba(138, 59, 18, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8A3B12, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
}

.pulse-discovery-stat {
    background: linear-gradient(135deg, rgba(138, 59, 18, 0.15), rgba(255, 107, 53, 0.1));
    border-color: rgba(138, 59, 18, 0.4);
}

.pulse-value {
    color: #ff6b35;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.pulse-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8A3B12, #ff6b35);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scaleX(0.95); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.results-count {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.category-label {
    color: #94a3b8;
    font-size: 14px;
    margin-left: 8px;
}

.view-controls {
    display: flex;
    gap: 8px;
}

.view-toggle {
    padding: 10px 16px;
    background: rgba(51, 65, 85, 0.3);
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle.active, .view-toggle:hover {
    background: #8A3B12;
    color: white;
    border-color: #8A3B12;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.result-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card:hover {
    transform: translateY(-4px);
    border-color: #8A3B12;
    box-shadow: 0 8px 24px rgba(138, 59, 18, 0.2);
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8A3B12, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(138, 59, 18, 0.3);
}

.token-name {
    font-weight: bold;
    color: #fff;
    font-size: 16px;
}

.token-symbol {
    color: #94a3b8;
    font-size: 12px;
}

.pulse-badge {
    background: linear-gradient(135deg, #8A3B12, #ff6b35);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(138, 59, 18, 0.3);
}

.card-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.metric {
    background: rgba(15, 23, 42, 0.8);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.2);
}

.metric-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-value {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.card-signals {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.signal-tag {
    background: rgba(138, 59, 18, 0.2);
    color: #ff6b35;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    border: 1px solid rgba(138, 59, 18, 0.3);
}

.card-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 10px 12px;
    background: #8A3B12;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #ff6b35;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 59, 18, 0.3);
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: rgba(15, 23, 42, 0.8);
    color: #94a3b8;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.results-table th:hover {
    background: rgba(138, 59, 18, 0.2);
    color: #ff6b35;
}

.results-table td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.2);
    color: #fff;
}

.results-table tbody tr {
    transition: all 0.3s ease;
}

.results-table tbody tr:hover {
    background: rgba(138, 59, 18, 0.1);
    transform: scale(1.005);
}

/* Loading States */
.loading-state, .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(138, 59, 18, 0.3);
    border-top: 3px solid #8A3B12;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.suggestions {
    margin-top: 24px;
}

.suggestions h4 {
    color: #fff;
    margin-bottom: 12px;
}

.suggestion-btn {
    padding: 8px 16px;
    background: rgba(138, 59, 18, 0.2);
    color: #ff6b35;
    border: 1px solid rgba(138, 59, 18, 0.3);
    border-radius: 20px;
    cursor: pointer;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    background: #8A3B12;
    color: white;
    transform: translateY(-2px);
}

/* Pagination */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
}

.pagination-info {
    color: #94a3b8;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.page-btn {
    padding: 8px 16px;
    background: #8A3B12;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 59, 18, 0.3);
}

.page-btn:disabled {
    background: rgba(138, 59, 18, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Utility Classes */
.text-green { color: #10b981 !important; }
.text-red { color: #ef4444 !important; }
.text-orange { color: #f59e0b !important; }

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}

@media (max-width: 768px) {
    .explore-container {
        padding: 15px;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-section {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .header-content h2 {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
}