/* ============================================
   HEADER STYLES - Complete
   Location: css/components/header.css
   ============================================ */

/* ===== HEADER ===== */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ===== HEADER TOP ===== */
.header-top {
    background: #1a3a5c;
    color: #ffffff;
    padding: 6px 0;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    transition: all 0.4s ease;
    max-height: 60px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    margin: 0;
    border: none;
}

.header-top.hide {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.header-contact {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px 20px;
    align-items: center;
}

.header-contact a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(0.65rem, 0.9vw, 0.85rem);
    white-space: nowrap;
}

.header-contact a:hover {
    color: #e67e22;
}

.header-contact i {
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
}

.contact-text {
    display: inline;
    white-space: nowrap;
}

.header-social {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.header-social a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: clamp(28px, 3vw, 34px);
    height: clamp(28px, 3vw, 34px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: clamp(0.6rem, 0.8vw, 0.8rem);
    flex-shrink: 0;
}

.header-social a:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* ===== NEWS TICKER ===== */
.news-ticker {
    background: #f0f2f5;
    border-bottom: 2px solid #e67e22;
    padding: 6px 0;
    position: relative;
    z-index: 999;
    transition: all 0.4s ease;
    max-height: 50px;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    margin: 0;
}

.news-ticker.hide {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    border: none !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.news-ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    background: #e67e22;
    padding: 3px 12px 3px 8px;
    border-radius: 20px;
    color: #ffffff;
}

.news-label .news-blink {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    animation: blink-icon 1s infinite;
}

.news-label .news-badge {
    font-weight: 700;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #ff0000;
    padding: 2px 8px;
    border-radius: 10px;
    animation: blink-badge 1s infinite;
}

@keyframes blink-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.9); }
}

@keyframes blink-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.news-marquee {
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.news-marquee marquee {
    display: block;
    width: 100%;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: #333333;
    padding: 2px 0;
}

.news-item {
    margin-right: 50px;
    white-space: nowrap;
    color: #333333;
}

.news-item::before {
    content: '◆ ';
    color: #e67e22;
    font-size: 0.6rem;
}

/* ===== NEWS TICKER DOWNLOAD LINK ===== */
.news-item .news-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e67e22;
    color: #ffffff !important;
    padding: 2px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    transition: all 0.3s ease;
    margin-left: 5px;
    white-space: nowrap;
}

.news-item .news-download-link:hover {
    background: #d35400;
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(230, 126, 34, 0.4);
}

.news-item .news-download-link i {
    font-size: clamp(0.6rem, 0.7vw, 0.8rem);
}

/* ===== HEADER MAIN ===== */
.header-main {
    padding: 10px 0;
    transition: all 0.3s ease;
    background: #ffffff;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* ===== LOGO ===== */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: clamp(40px, 5vw, 55px);
    height: clamp(40px, 5vw, 55px);
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    font-weight: 700;
    color: #1a3a5c;
}

.logo-subtitle {
    font-size: clamp(0.5rem, 0.8vw, 0.75rem);
    color: #e67e22;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2vw, 30px);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: clamp(0.8rem, 1vw, 1rem);
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
}

.nav-menu a i {
    font-size: clamp(0.7rem, 0.9vw, 0.95rem);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e67e22;
    transition: all 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #e67e22;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-apply span {
    display: inline;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a3a5c;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .header-top {
        padding: 5px 0;
    }
    
    .header-top-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-text {
        display: none;
    }
    
    .header-contact a {
        font-size: 0.75rem;
    }
    
    .header-contact {
        gap: 10px;
    }

    .news-ticker {
        padding: 4px 0;
    }
    
    .news-label {
        padding: 2px 10px 2px 6px;
    }
    
    .news-label .news-badge {
        font-size: 0.6rem;
        padding: 1px 6px;
    }
    
    .news-item .news-download-link {
        padding: 2px 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding: 4px 0;
    }
    
    .header-top.hide {
        max-height: 0 !important;
        padding: 0 !important;
    }
    
    .header-top-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .header-contact {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-contact a {
        font-size: 0.7rem;
    }
    
    .header-social a {
        width: 26px;
        height: 26px;
        font-size: 0.6rem;
    }
    
    .news-ticker {
        padding: 4px 0;
    }
    
    .news-ticker.hide {
        max-height: 0 !important;
        padding: 0 !important;
    }
    
    .news-ticker-wrapper {
        gap: 5px;
    }
    
    .news-label {
        padding: 2px 8px 2px 5px;
        gap: 4px;
    }
    
    .news-label .news-blink {
        font-size: 0.8rem;
    }
    
    .news-label .news-badge {
        font-size: 0.5rem;
        padding: 1px 5px;
    }
    
    .news-marquee marquee {
        font-size: 0.75rem;
    }
    
    .news-item {
        margin-right: 30px;
    }
    
    .news-item .news-download-link {
        padding: 2px 8px;
        font-size: 0.65rem;
    }
    
    .news-item .news-download-link i {
        font-size: 0.55rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 12px;
        border-top: 2px solid #e67e22;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 10px 0;
        font-size: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-menu a:last-child {
        border-bottom: none;
    }
    
    .nav-menu a i {
        width: 24px;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .btn-apply span {
        display: none;
    }
    
    .btn-apply i {
        font-size: 1.1rem;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .logo a {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-top {
        display: none;
    }
    
    .header-main {
        padding: 8px 0;
    }
    
    .logo-title {
        font-size: 0.9rem;
    }
    
    .logo-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.5px;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .logo a {
        gap: 6px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
    
    .nav-menu {
        padding: 15px;
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .news-ticker {
        padding: 3px 0;
    }
    
    .news-label .news-blink {
        font-size: 0.7rem;
    }
    
    .news-label .news-badge {
        font-size: 0.45rem;
        padding: 1px 4px;
    }
    
    .news-marquee marquee {
        font-size: 0.65rem;
    }
    
    .news-item {
        margin-right: 20px;
    }
    
    .news-item .news-download-link {
        padding: 1px 6px;
        font-size: 0.55rem;
    }
    
    .news-item .news-download-link i {
        font-size: 0.5rem;
    }
}