/* ============================================
   TOP HEADER BAR - FRONTEND STYLES
   Path: /assets/css/topbar.css
   100% Dynamic & Responsive
   ============================================ */

:root {
    --bg-gradient: linear-gradient(90deg, #1a1a1a 0%, #2c3e50 100%);
    --text-color: #e0e0e0;
    --accent-color: #ff4757; /* Bright Red */
    --hover-color: #ffffff;
    --border-color: #444;
    --font-main: 'Roboto', sans-serif;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-main); 
    background-color: #f4f6f8; 
}

/* ======================== TOP BAR CONTAINER ======================== */
.top-bar {
    background: var(--bg-gradient);
    color: var(--text-color);
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 2px solid var(--accent-color);
    width: 100%;
    position: relative;
    z-index: 1000;
}

.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======================== FLEXBOX LAYOUT ======================== */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ======================== LEFT SIDE: DATE & TIME ======================== */
.info-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-item i {
    color: var(--accent-color);
    font-size: 13px;
}

/* ======================== CENTER: WELCOME TEXT ======================== */
.welcome-text {
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
}

/* New Update Blinking Dot */
.live-dot {
    height: 8px;
    width: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* ======================== RIGHT SIDE: CONTACT & SOCIALS ======================== */
.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-link {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-link:hover { 
    color: var(--hover-color); 
    text-decoration: underline; 
}

/* Social Icons Styles */
.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons a {
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

/* Social Hover Effects */
.social-icons a:hover { 
    color: var(--accent-color); 
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

/* Specific Social Icon Colors on Hover */
.social-icons a:hover .fa-telegram-plane { color: #0088cc; }
.social-icons a:hover .fa-whatsapp { color: #25d366; }
.social-icons a:hover .fa-twitter { color: #1da1f2; }
.social-icons a:hover .fa-youtube { color: #ff0000; }
.social-icons a:hover .fa-facebook { color: #1877f2; }
.social-icons a:hover .fa-instagram { color: #e4405f; }

/* ======================== MOBILE RESPONSIVENESS ======================== */

/* Tablet View (992px and below) */
@media (max-width: 992px) {
    .welcome-text { 
        display: none; /* Tablet पर बीच का टेक्स्ट छुपाएं */
    }
    
    .info-group {
        gap: 10px;
    }
    
    .right-section {
        gap: 15px;
    }
}

/* Mobile View (768px and below) */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .flex-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-group {
        width: 100%;
        justify-content: center;
    }
    
    .right-section {
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 8px;
    }
    
    .social-icons {
        gap: 8px;
    }
    
    .social-icons a {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .top-bar {
        font-size: 11px;
    }
    
    .info-item {
        gap: 4px;
    }
    
    .info-item i {
        font-size: 11px;
    }
    
    .contact-link {
        font-size: 11px;
    }
    
    .social-icons a {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    /* Hide email text, show only icon on very small screens */
    .contact-link span {
        display: none;
    }
}

/* ======================== PRINT STYLES ======================== */
@media print {
    .top-bar {
        display: none;
    }
}

/* ======================== DARK MODE SUPPORT (Optional) ======================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-gradient: linear-gradient(90deg, #0a0a0a 0%, #1a2332 100%);
        --text-color: #f0f0f0;
        --border-color: #333;
    }
}

/* ======================== ACCESSIBILITY ======================== */
.info-item:focus-within,
.social-icons a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .top-bar {
        border-bottom-width: 3px;
    }
    
    .info-item i,
    .live-dot {
        filter: brightness(1.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .live-dot {
        animation: none;
    }
    
    .social-icons a,
    .contact-link {
        transition: none;
    }
}