/* Bitcoin Earn Custom Styles */

/* Dark theme customizations */
:root {
    --primary-color: #8B5CF6;
    --primary-hover: #7C3AED;
    --background-primary: #111827;
    --background-secondary: #1F2937;
    --background-tertiary: #374151;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --border-color: #4B5563;
    --success-color: #10B981;
    --error-color: #EF4444;
    --warning-color: #F59E0B;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Loading animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

/* Network card enhancements */
.network-card {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.network-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: var(--primary-color);
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #EC4899);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.network-card:hover::before {
    opacity: 1;
}

/* Button enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #EC4899 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Statistics animation */
.stat-number {
    animation: fadeInUp 0.6s ease;
}

/* Progress bars */
.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #EC4899);
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Modal styles */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Notification styles */
.notification {
    animation: slideInRight 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--background-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Grid animations */
.grid-enter {
    animation: fadeInUp 0.5s ease both;
}

.grid-enter:nth-child(1) { animation-delay: 0.1s; }
.grid-enter:nth-child(2) { animation-delay: 0.2s; }
.grid-enter:nth-child(3) { animation-delay: 0.3s; }
.grid-enter:nth-child(4) { animation-delay: 0.4s; }
.grid-enter:nth-child(5) { animation-delay: 0.5s; }
.grid-enter:nth-child(6) { animation-delay: 0.6s; }
.grid-enter:nth-child(7) { animation-delay: 0.7s; }
.grid-enter:nth-child(8) { animation-delay: 0.8s; }

/* Bitcoin animation */
.bitcoin-spin {
    animation: spin 2s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .network-card {
        margin-bottom: 1rem;
    }
    
    .network-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Status indicators */
.status-active {
    background: var(--success-color);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-inactive {
    background: var(--error-color);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Hover effects for interactive elements */
.interactive-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* Category badges */
.category-badge {
    background: linear-gradient(135deg, var(--primary-color), #EC4899);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Reward rate styling */
.reward-rate {
    background: linear-gradient(135deg, var(--success-color), #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Footer enhancements */
footer a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Custom focus states */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Glassmorphism effect */
.glass {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-tertiary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
}