/* Header Layout Fix - Logo căn trái, Date căn phải */

/* Desktop Layout */
@media (min-width: 768px) {
    /* Header container */
    .header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
    }
    
    /* Logo - Dịch vào trong */
    .site-branding {
        flex: 0 0 auto;
        padding-left: 15px;
    }
    
    .site-logo {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: #ffffff;
        font-weight: bold;
        font-size: 18px;
        transition: all 0.3s ease;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }
    
    .site-logo:hover {
        color: #ffd700;
        transform: translateX(2px);
    }
    
    .logo-icon {
        font-size: 22px;
        color: #ffffff;
    }
    
    /* Header Info - Sang phải */
    .header-info {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 20px;
        padding-right: 15px;
    }
    
    .header-date {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #333;
        font-size: 14px;
        font-weight: 500;
    }
    
    .header-date i {
        color: #ffd700;
        font-size: 15px;
    }
    
    .header-date span {
        color: #ffffff;
        font-weight: 500;
    }
    
    /* Hide mobile menu button on desktop */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    /* Header container */
    .header-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
    }
    
    /* Logo và Mobile menu button trên cùng 1 dòng */
    .site-branding {
        flex: 1;
        order: 1;
    }
    
    .mobile-menu-toggle {
        flex: 0 0 auto;
        order: 2;
        background: none;
        border: none;
        font-size: 20px;
        color: #ffffff;
        padding: 5px;
        cursor: pointer;
    }
    
    /* Header info (Date) xuống dòng dưới */
    .header-info {
        flex: 1 0 100%;
        order: 3;
        display: flex;
        justify-content: flex-start;
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    
    /* Logo style on mobile */
    .site-logo {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: #ffffff;
        font-weight: bold;
        font-size: 16px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }
    
    .logo-icon {
        font-size: 18px;
        color: #ffffff;
    }
    
    /* Date style on mobile */
    .header-date {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #333;
        font-size: 13px;
        font-weight: 500;
    }
    
    .header-date i {
        color: #ffd700;
        font-size: 13px;
    }
    
    .header-date span {
        color: #ffffff;
        font-weight: 500;
    }
    
    /* Hide phone on mobile if exists */
    .header-phone {
        display: none;
    }
}

/* Common styles for both */
.site-header {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}

.header-wrapper {
    max-width: 980px;
    margin: 0 auto;
}

/* Ensure container doesn't add extra padding */
.header-wrapper .container {
    padding: 0;
}

/* Additional styles for better visibility */
.header-date {
    background: rgba(255,255,255,0.15);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

@media (max-width: 767px) {
    .header-date {
        background: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
    }
}

/* Remove default margins */
.site-branding h1,
.site-branding p {
    margin: 0;
}

/* Fix alignment for custom logo if used */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 40px;
    width: auto;
}

/* Extra small mobile (< 375px) */
@media (max-width: 374px) {
    .site-logo span {
        font-size: 14px;
    }
    
    .logo-icon {
        font-size: 16px;
    }
    
    .header-date span {
        font-size: 11px;
    }
}