/* Custom animations and effects for OpenSea Checker */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --opensea-blue: #2081e2;
    --success-green: #22c55e;
    --warning-yellow: #eab308;
    --danger-red: #ef4444;
    --bg-dark: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.8);
    --border-color: rgba(148, 163, 184, 0.1);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
}

/* Glass effect */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--opensea-blue) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tab styles */
.tab-button {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tab-button.active {
    background: rgba(32, 129, 226, 0.2);
    border-color: var(--opensea-blue);
    color: var(--opensea-blue);
}

/* Telegram Channel Button */
.tg-channel-btn {
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tg-channel-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .tg-channel-btn {
        min-width: auto;
        width: 100%;
        margin-top: 12px;
    }
    
    .flex.items-center.justify-between {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flex.gap-2.flex-wrap {
        justify-content: center;
    }
}

.tab-button:hover:not(.active) {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Card hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Wallet row animations */
.wallet-row {
    transition: all 0.3s ease;
    cursor: pointer;
}

.wallet-row:hover {
    background: rgba(32, 129, 226, 0.1);
    transform: translateY(-1px);
}

.wallet-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.wallet-details.expanded {
    max-height: 1000px;
}

/* Copy button animations */
.copy-btn {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading animations */
.loading {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(32, 129, 226, 0.3);
    border-top: 2px solid var(--opensea-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(32, 129, 226, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(32, 129, 226, 0.7);
}

/* OpenSea specific styles */
.opensea-badge {
    background: linear-gradient(135deg, var(--opensea-blue), var(--primary-purple));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.xp-badge {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-green);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.rank-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.percentage-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary-purple);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Input styles */
.wallet-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.wallet-input:focus {
    outline: none;
    border-color: var(--opensea-blue);
    box-shadow: 0 0 0 3px rgba(32, 129, 226, 0.1);
}

.wallet-input::placeholder {
    color: var(--text-muted);
}

/* Button styles */
.btn-opensea {
    background: linear-gradient(135deg, var(--opensea-blue), var(--primary-purple));
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-opensea:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(32, 129, 226, 0.3);
}

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

/* Results table styles */
.results-table {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.table-row {
    transition: all 0.2s ease;
}

.table-row:hover {
    background: rgba(32, 129, 226, 0.05);
}

/* Stats card animations */
.stats-card {
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Chart container */
.chart-container {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .tab-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .grid-cols-4,
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .wallet-row {
        padding: 0.75rem;
    }
    
    .stats-cards {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid var(--success-green);
}

.notification.error {
    border-left: 4px solid var(--danger-red);
}

.notification.info {
    border-left: 4px solid var(--opensea-blue);
}

/* Special effects */
.glow-opensea {
    box-shadow: 0 0 20px rgba(32, 129, 226, 0.3);
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(32, 129, 226, 0.1),
        transparent
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
