/* V4 Revolutionary Blood Donation Platform - Custom Styles */

/* Base Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

@keyframes gradient {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

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

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc2626, #ef4444);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b91c1c, #dc2626);
}

/* Hero Section Enhancements */
.hero-blood-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 10px 20px rgba(220, 38, 38, 0.3));
    animation: float 4s ease-in-out infinite;
}

/* Blood Group Cards */
.blood-group-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.blood-group-card::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;
}

.blood-group-card:hover::before {
    left: 100%;
}

.blood-group-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.15);
}

/* Feature Cards */
.feature-card {
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Donor Cards */
.donor-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.donor-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(34, 197, 94, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donor-card:hover::after {
    opacity: 1;
}

.donor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

/* Stats Counter Animation */
.stat-counter {
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* Button Enhancements */
.btn-revolutionary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Modal Enhancements */
.modal-backdrop {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-title-modern {
        font-size: 3rem;
    }
    
    .blood-group-card {
        margin-bottom: 1rem;
    }
    
    .donor-card {
        margin-bottom: 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .blood-group-card,
    .donor-card,
    .feature-card {
        border: 2px solid #000;
    }
}

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

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-friendly {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Custom Form Elements */
.form-input-revolutionary {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-input-revolutionary:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

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

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

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

/* Progress Indicators */
.progress-revolutionary {
    height: 8px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-revolutionary::after {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Card Hover Effects */
.card-revolutionary {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-revolutionary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), rgba(34, 197, 94, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

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

.card-revolutionary:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Text Gradient Effects */
.text-gradient-revolutionary {
    background: linear-gradient(135deg, #dc2626, #ef4444, #22c55e);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 3s ease infinite;
}

/* Icon Animations */
.icon-revolutionary {
    transition: all 0.3s ease;
}

.icon-revolutionary:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Badge Styles */
.badge-revolutionary {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Revolutionary Glow Effect */
.glow-revolutionary {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-revolutionary:hover {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}
