/* ============================================
   TOP MENU SOCIAL ICONS - PROFESSIONAL STYLING
   Modern, Clean, Professional Look
   Desktop & Mobile Optimized
   ============================================ */

/* ============================================
   1. TOP BAR SOCIAL ICONS - BASE STYLING
   Sabhi pages par proper show — layout force
   ============================================ */

/* Ensure top bar row stays flex so icons show beside contact info */
.top-bar .top-flex {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Helpline, email, timing — one line; horizontal scroll if text is long (e.g. Hindi) */
.top-bar .top-info {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.top-bar .top-info span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0 !important;
}

.top-bar .social-icons {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.top-bar .social-icons::before {
    content: "Follow us:";
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin-right: 4px;
}
/* Hide call/phone icon from social icons */
.top-bar .social-icons a[href^="tel:"],
.top-bar .social-icons a[aria-label="Call"] {
    display: none !important;
}

/* Icon order: Facebook, Instagram, Twitter, WhatsApp, Email, YouTube, Pinterest */
.top-bar .social-icons a[href*="facebook"] { order: 1; }
.top-bar .social-icons a[href*="instagram"] { order: 2; }
.top-bar .social-icons a[href*="x.com"],
.top-bar .social-icons a[href*="twitter"] { order: 3; }
.top-bar .social-icons a[href*="wa.me"],
.top-bar .social-icons a[aria-label="WhatsApp"] { order: 4; }
.top-bar .social-icons a[href^="mailto:"],
.top-bar .social-icons a[aria-label="Email"] { order: 5; }
.top-bar .social-icons a[href*="youtube"] { order: 6; }
.top-bar .social-icons a[href*="pinterest"] { order: 7; }

.top-bar .social-icons a {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* Hover background animation */
.top-bar .social-icons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    opacity: 0.15;
    z-index: 0;
}

.top-bar .social-icons a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* Hover Effects */
.top-bar .social-icons a:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: currentColor;
}

.top-bar .social-icons a:hover::before {
    width: 100%;
    height: 100%;
}

.top-bar .social-icons a:hover i {
    transform: scale(1.2);
}

/* Helpline No: label — text gradient + flash */
.top-bar .helpline-label {
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.02em;
    margin-right: 6px;
    background: linear-gradient(90deg, #c62828, #ff5722, #c62828);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: helpline-flash 1.5s ease-in-out infinite;
}
@keyframes helpline-flash {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50%      { opacity: 0.85; filter: brightness(1.3); }
}

/* ============================================
   2. BRAND-SPECIFIC COLORS ON HOVER
   ============================================ */

/* Facebook */
.top-bar .social-icons a[href*="facebook"]:hover {
    color: #1877f2 !important;
    background: rgba(24, 119, 242, 0.15) !important;
    border-color: #1877f2 !important;
}

/* Instagram */
.top-bar .social-icons a[href*="instagram"]:hover {
    color: #e4405f !important;
    background: rgba(228, 64, 95, 0.15) !important;
    border-color: #e4405f !important;
}

/* Twitter / X */
.top-bar .social-icons a[href*="twitter"]:hover,
.top-bar .social-icons a[href*="x.com"]:hover {
    color: #1da1f2 !important;
    background: rgba(29, 161, 242, 0.15) !important;
    border-color: #1da1f2 !important;
}

/* YouTube */
.top-bar .social-icons a[href*="youtube"]:hover {
    color: #ff0000 !important;
    background: rgba(255, 0, 0, 0.15) !important;
    border-color: #ff0000 !important;
}

/* Pinterest */
.top-bar .social-icons a[href*="pinterest"]:hover {
    color: #bd081c !important;
    background: rgba(189, 8, 28, 0.15) !important;
    border-color: #bd081c !important;
}

/* Call/Phone */
.top-bar .social-icons a[href^="tel:"]:hover,
.top-bar .social-icons a[aria-label="Call"]:hover {
    color: #25d366 !important;
    background: rgba(37, 211, 102, 0.15) !important;
    border-color: #25d366 !important;
}

/* WhatsApp */
.top-bar .social-icons a[href*="wa.me"]:hover,
.top-bar .social-icons a[href*="whatsapp"]:hover,
.top-bar .social-icons a[aria-label="WhatsApp"]:hover {
    color: #25d366 !important;
    background: rgba(37, 211, 102, 0.2) !important;
    border-color: #25d366 !important;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4) !important;
}

/* Email */
.top-bar .social-icons a[href^="mailto:"]:hover,
.top-bar .social-icons a[aria-label="Email"]:hover {
    color: #c62828 !important;
    background: rgba(198, 40, 40, 0.2) !important;
    border-color: #c62828 !important;
    box-shadow: 0 4px 16px rgba(198, 40, 40, 0.4) !important;
}

/* ============================================
   3. RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
    .top-bar .social-icons {
        gap: 3px;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        margin-top: 0 !important; /* Reduced gap from top-info */
    }
    
    .top-bar .social-icons a {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 14px;
        flex-shrink: 0 !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 0;
        font-size: 11px;
    }
    
    .top-bar .top-flex {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .top-bar .top-info {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        text-align: left;
        font-size: 11px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .top-bar .top-info span {
        margin-left: 0 !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .top-bar .social-icons {
        gap: 3px !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 8px 8px !important;
        margin-top: 0 !important; /* Reduced gap from top-info */
    }
    
    .top-bar .social-icons a {
        width: 30px;
        height: 30px;
        min-width: 30px;
        min-height: 30px;
        font-size: 13px;
        flex-shrink: 0 !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

/* ============================================
   4. ACCESSIBILITY & FOCUS STATES
   ============================================ */

.top-bar .social-icons a:focus {
    outline: 2px solid var(--primary-red, #c62828);
    outline-offset: 2px;
    border-radius: 50%;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .top-bar .social-icons a,
    .top-bar .social-icons a::before,
    .top-bar .social-icons a i {
        transition: none !important;
        animation: none !important;
    }
    
    .top-bar .social-icons a:hover {
        transform: none;
    }
}

/* ============================================
   5. PRINT STYLES
   ============================================ */

@media print {
    .top-bar .social-icons {
        display: none;
    }
}
