/* DexScreener Coin Explorer Styles */

.dex-explorer-section {
    background: linear-gradient(135deg, #0F0F23 0%, #1a1a3a 50%, #2d1B69 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.dex-explorer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.dex-explorer-section .section-header h2 {
    color: #FFD700;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.dex-explorer-section .section-header p {
    color: #B8BCC8;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Search Container */
.coin-search-container {
    max-width: 900px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.coin-search-input {
    width: 100%;
    padding: 20px 60px 20px 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    color: #FFF;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coin-search-input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.coin-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFD700;
    font-size: 18px;
    z-index: 3;
}

.search-loader {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-top: 2px solid #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Search Filters */
.search-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    color: #FFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-color: #FFD700;
    color: #000;
    font-weight: 600;
}

/* Results Container */
.coin-results-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.results-header h3 {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 600;
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #B8BCC8;
    font-size: 14px;
}

#refreshIcon {
    animation: rotate 2s linear infinite;
}

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

/* Coin Table */
.coin-table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    margin-top: 30px;
}

.coin-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    min-width: 1000px;
}

.coin-table thead th {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    padding: 15px 12px;
    font-weight: 600;
    text-align: left;
    border: none;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.coin-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.coin-table tbody tr.coin-row-enter {
    opacity: 1;
    transform: translateY(0);
}

.coin-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.01);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.coin-table tbody td {
    padding: 15px 12px;
    border: none;
    color: #ffffff;
    font-size: 13px;
    vertical-align: middle;
}

/* Rank Badge */
.rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 14px;
}

.coin-details h4 {
    margin: 0;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
}

.coin-details p {
    margin: 2px 0 0;
    color: #B8BCC8;
    font-size: 12px;
}

.price-info {
    font-weight: 600;
    font-size: 16px;
}

.change-positive {
    color: #00FF88;
    background: rgba(0, 255, 136, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.change-negative {
    color: #FF4757;
    background: rgba(255, 71, 87, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.volume-info, .market-cap-info {
    color: #B8BCC8;
    font-size: 14px;
}

.chain-badge {
    background: linear-gradient(45deg, #8B2BF6, #6C5CE7);
    color: #FFF;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.chain-badge.ethereum { background: linear-gradient(45deg, #627EEA, #8B9AFF); }
.chain-badge.bsc { background: linear-gradient(45deg, #F3BA2F, #FFD700); color: #000; }
.chain-badge.solana { background: linear-gradient(45deg, #9945FF, #14F195); }
.chain-badge.polygon { background: linear-gradient(45deg, #8247E5, #A855F3); }

.trade-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
}

.trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.crypto-loader {
    display: flex;
    gap: 10px;
}

.crypto-cube {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    border-radius: 4px;
    animation: cryptoFloat 1.5s ease-in-out infinite;
}

.crypto-cube:nth-child(2) { animation-delay: 0.2s; }
.crypto-cube:nth-child(3) { animation-delay: 0.4s; }
.crypto-cube:nth-child(4) { animation-delay: 0.6s; }

@keyframes cryptoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.loading-state p {
    color: #B8BCC8;
    font-size: 16px;
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-animation i {
    font-size: 60px;
    color: rgba(255, 215, 0, 0.5);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #FFF;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #B8BCC8;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .coin-table-wrapper {
        overflow-x: auto;
    }
    
    .coin-table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .dex-explorer-section {
        padding: 60px 0;
    }
    
    .dex-explorer-section .section-header h2 {
        font-size: 2rem;
    }
    
    .coin-search-input {
        padding: 15px 50px 15px 50px;
        font-size: 14px;
    }
    
    .search-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .coin-table thead th,
    .coin-table tbody td {
        padding: 15px 10px;
        font-size: 12px;
    }
    
    .coin-info {
        gap: 8px;
    }
    
    .coin-logo {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .coin-details h4 {
        font-size: 14px;
    }
    
    .price-info {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .coin-search-container {
        padding: 0 15px;
    }
    
    .search-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
    
    .coin-table {
        min-width: 600px;
    }
}

/* Animation Effects */
.coin-row-enter {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.price-flash-green {
    animation: flashGreen 0.8s ease-out;
}

.price-flash-red {
    animation: flashRed 0.8s ease-out;
}

@keyframes flashGreen {
    0% { background-color: rgba(0, 255, 136, 0.3); }
    100% { background-color: transparent; }
}

@keyframes flashRed {
    0% { background-color: rgba(255, 71, 87, 0.3); }
    100% { background-color: transparent; }
}

/* ===================== PAGINATION STYLES ===================== */
.pagination-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.pagination-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border-color: #FFD700;
    font-weight: 600;
}

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

.pagination-btn i {
    font-size: 12px;
}
