/* Token Analyzer Specific Styles */

.analyzer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

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

.analyzer-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.analyzer-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Search Section */
.search-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.token-input {
    flex: 1;
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.3s;
}

.token-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.token-input::placeholder {
    color: var(--text-secondary);
}

.analyze-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.5);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quick-tokens {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.quick-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.quick-token-btn {
    background: var(--background);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    letter-spacing: -0.5px;
}

.quick-token-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-indicator p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Token Overview */
.token-overview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.token-header-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.token-icon {
    font-size: 4rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: 50%;
}

.token-details h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.token-symbol {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
}

.token-price-info {
    text-align: right;
}

.price-display {
    margin-bottom: 0.5rem;
}

.price-label {
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.token-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-change {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
}

.price-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.price-change.negative {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.metric-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.metric-value {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.4rem;
}

/* Contract Info Section */
.contract-info-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.contract-info-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contract-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contract-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.contract-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.contract-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.contract-value-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    letter-spacing: -0.5px;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* External Links Section */
.external-links-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.external-links-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.external-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.external-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.link-icon {
    font-size: 1.5rem;
}

.link-text {
    letter-spacing: 0.3px;
}

/* Chart Section */
.chart-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.chart-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.token-chart {
    height: 500px;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
}

/* Holders Section */
.holders-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.holders-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.holders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.holder-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    background: var(--background);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.holder-row:hover {
    background: var(--surface-light);
}

.holder-rank {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.holder-address {
    font-family: 'Courier New', monospace;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.holder-balance {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.holder-percentage {
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 60px;
    text-align: right;
    font-size: 0.9rem;
}

/* Error Display */
.error-display {
    background: var(--surface);
    border: 1px solid var(--danger);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-display h3 {
    color: var(--danger);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-display p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analyzer-header h1 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .token-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .token-header-info {
        flex-direction: column;
    }
    
    .token-price-info {
        text-align: center;
    }
    
    .contract-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .holder-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}
