/* TRAYON Token Sale App - Specific Styles */

/* Width utilities */
.w-0 { width: 0%; }

/* Progress Bar Animation */
.phase-progress-fill {
    background: linear-gradient(90deg, #06b6d4, #0891b2, #22d3ee);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    transition: width 0.3s ease;
}

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

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

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

/* Hover Effects */
.card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Button Animations */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary:before, .btn-secondary: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, .btn-secondary:hover:before {
    left: 100%;
}

/* Tab Animation */
.tab-active {
    position: relative;
}

.tab-active:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Wallet Options Hover */
.wallet-option {
    position: relative;
    overflow: hidden;
}

.wallet-option:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(8, 145, 178, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wallet-option:hover:before {
    opacity: 1;
}

/* Form Animations */
.input-field {
    position: relative;
}

.input-field:focus {
    animation: inputGlow 0.3s ease;
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Stats Counter Animation */
.stats-counter {
    font-variant-numeric: tabular-nums;
    animation: countUp 0.5s ease-out;
}

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

/* Notification Animations */
.notification {
    animation: slideInRight 0.3s ease;
}

.notification.show {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Mobile Specific */
@media (max-width: 768px) {
    .card {
        margin: 0 8px;
        padding: 16px !important;
    }
    
    .grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .quick-amount {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .gradient-bg {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    }
}

/* Accessibility Improvements */
.btn-primary:focus, .btn-secondary:focus, .input-field:focus {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .notification, #walletModal, header {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #06b6d4;
    }
    
    .btn-primary, .btn-secondary {
        border: 1px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .notification {
        transition: none;
    }
    
    .card:hover {
        transform: none;
    }
}
