/* ===========================
   HEADER STYLES
=========================== */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.header-container {
    height: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img { height: 50px; width: auto; }
.logo-text { margin: 0; font-size: 22px; line-height: 1; }

.main-header nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-header nav a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
}

.main-header nav a:hover,
.main-header nav a.active {
    text-decoration: underline;
    text-decoration-color: var(--secondary-color);
}

/* ===========================
   LANGUAGE SWITCHER
=========================== */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1;
}

.lang-switcher-btn:hover,
.lang-switcher.is-open .lang-switcher-btn {
    background: rgba(255, 255, 255, 0.22);
    border-color: var(--secondary-color);
}

.lang-switcher-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.lang-switcher-code {
    letter-spacing: 0.5px;
}

.lang-switcher-caret {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.lang-switcher.is-open .lang-switcher-caret {
    transform: rotate(180deg);
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: white;
    color: var(--text-dark);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    z-index: 1100;
}

.lang-switcher.is-open .lang-switcher-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher-menu li {
    display: block;
}

.lang-switcher-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 8px 14px;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s ease;
}

.lang-switcher-menu button:hover {
    background: rgba(1, 32, 79, 0.08);
}

.lang-switcher-menu button.is-active {
    background: rgba(1, 32, 79, 0.12);
    color: var(--primary-color);
    font-weight: 700;
}

.lang-switcher-menu .lang-switcher-code {
    display: inline-block;
    min-width: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.lang-switcher-menu .lang-switcher-label {
    flex: 1;
}

/* ===========================
   FOOTER STYLES
=========================== */
.main-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 30px 0 20px;
    margin-top: auto;
}

.main-footer .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    text-align: left;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
    color: white;
}

.footer-email {
    font-size: 12px;
    opacity: 0.9;
}

.footer-social .social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Responsive Header & Footer */
@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    .logo-text { font-size: 18px; }
    .logo-img { height: 40px; }
    .main-header nav { gap: 10px; }
    .main-header nav a { font-size: 14px; padding: 5px 8px; }

    .lang-switcher-btn { padding: 5px 8px; font-size: 13px; }
    .lang-switcher-icon { width: 14px; height: 14px; }
    .lang-switcher-menu { min-width: 140px; }

    .main-footer .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-info { text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 10px;
    }
    .main-header {
        height: auto;
        min-height: var(--header-height);
    }
    
    .social-link { width: 35px; height: 35px; }
}