/* header.css - Styles for header component */

/* Button with badge styles */
.btn-with-badge {
    position: relative;
    display: inline-block;
}

.badge-popup {
    position: absolute;
    top: -20px;
    right: -6px;
    background: linear-gradient(270deg, #ff0000, #ff7300, #ffd700, #ff0000);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Badge popup text effects */
.badge-popup span {
    display: inline-block;
    animation: textPulse 1.5s infinite;
    text-shadow: 0 0 6px rgba(255,255,255,0.9),
                0 0 12px rgba(255,200,200,0.7);
}

/* Gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text pulse animation */
@keyframes textPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.9; }
}

/* Login button styles */
.nutdangnhaphead {
    font-size: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.an400 {
    display: block;
}

/* Responsive design */
@media (max-width: 991.98px) {
    .header-main {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-menu {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
    }
    
    .header-user {
        order: 2;
        margin-left: auto;
        width: 100%;
    }
    
    .btn-menu {
        order: 1;
    }
}

@media (max-width: 600px) {
    .header-user {
        display: flex !important;
        justify-content: center;
    }
    
    .header-main {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        border-radius: 1.2rem;
        margin-bottom: 24px;
        padding: 10px;
        margin: 10px 0;
        transition: .3s;
    }
    
    .nutdangnhaphead {
        font-size: 14px;
    }
    
    .header-menu {
        display: none !important;
    }
}

@media (max-width: 450px) {
    .an400 {
        display: none;
    }
    
    .btn-menu,
    .header-user {
        flex: 1;
    }
}

/* Toast container */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 350px;
}

/* Social info notification */
#social-info-notification {
    display: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 12px 40px 12px 12px; /* Thêm padding-right để tránh che nút tắt */
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#social-info-notification i:first-child {
    margin-right: 8px;
}

#social-info-notification i:last-child {
    margin-left: 8px;
}

/* Social notification close button */
.social-notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: scale(1.1);
}

.social-notification-close:active {
    transform: scale(0.95);
}


/* Social Info Alert Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Login button border radius */
.nutdangnhaphead {
    border-radius: 2rem;
}

/* Avatar styles */
.header-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

/* Language switcher */
.lang-icon {
    cursor: pointer;
    font-weight: bold;
}

/* Header menu styles */
.header-menu {
    gap: 0;
}

.header-menu .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.header-menu .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.header-menu .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Menu button */
.btn-menu {
    font-size: 2rem;
    background: none;
    border: none;
    color: #333;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-menu:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* Header balance */
.header-balance {
    cursor: pointer;
}

.tenkhach {
    font-size: 1.1rem;
}

/* Mobile menu styles moved to header_css.php to avoid duplication */