/* =============================================
   रक्तदान पोर्टल - मेन CSS
   डोमेन: https://6.holii.in
   ============================================= */

/* ========== CSS वेरिएबल्स ========== */
:root {
    --primary: #dc3545;
    --primary-dark: #b02a37;
    --secondary: #198754;
    --dark: #212529;
    --light: #f8f9fa;
    --blood-red: #c41e3a;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --diamond: #00d2ff;
    --font-hi: 'Noto Sans Devanagari', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

/* ========== बेस स्टाइल्स ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-hi);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-hi);
    font-weight: 700;
}

a { text-decoration: none; transition: all 0.3s ease; }

img { max-width: 100%; height: auto; }

/* ========== प्री-लोडर ========== */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blood-drop {
    text-align: center;
    animation: bloodPulse 1s ease-in-out infinite;
}

.blood-drop i {
    font-size: 60px;
    color: var(--primary);
    animation: bloodDrip 1.5s ease-in-out infinite;
}

.blood-drop span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 10px;
}

@keyframes bloodPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes bloodDrip {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========== नेविगेशन ========== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand .brand-title {
    font-size: 22px;
    line-height: 1.1;
    color: #fff;
}

.navbar-brand .brand-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    letter-spacing: 2px;
}

.pulse-icon {
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ffc107; }
    100% { transform: scale(1); }
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.user-avatar-mini {
    width: 32px;
    height: 32px;
    background: #fff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.btn-hover-shine {
    position: relative;
    overflow: hidden;
}

.btn-hover-shine::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* ========== फुटर ========== */
.footer {
    margin-top: auto;
}

.footer-wave svg {
    display: block;
    margin-bottom: -1px;
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-main ul li {
    margin-bottom: 12px;
}

.footer-main ul li a {
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.footer-main ul li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.social-links .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220,53,69,0.4);
}

.footer-divider {
    border-color: rgba(255,255,255,0.1);
}

/* ========== बैक टू टॉप ========== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* ========== इमरजेंसी फ्लोटिंग बटन ========== */
.emergency-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    z-index: 998;
    animation: emergencyPulse 2s infinite;
    box-shadow: 0 5px 20px rgba(220,53,69,0.5);
}

.emergency-float-btn:hover {
    color: #fff;
    background: var(--primary-dark);
}

@keyframes emergencyPulse {
    0% { box-shadow: 0 0 0 0 rgba(220,53,69,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(220,53,69,0); }
    100% { box-shadow: 0 0 0 0 rgba(220,53,69,0); }
}

/* ========== फ्लैश मैसेज ========== */
.flash-messages-container .alert {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}