/**
 * Header Styles - Matching Archived Design
 * Shawarland Theme
 */

/* ============================================
   HEADER BASE
   ============================================ */
.shawarland-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--shawarland-z-fixed, 300);
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   DESKTOP HEADER
   ============================================ */
.shawarland-header__desktop {
    display: none;
    padding: 10px 20px;
}

@media (min-width: 1025px) {
    .shawarland-header__desktop {
        display: block;
    }
}

.shawarland-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Section - FAQ Banner */
.shawarland-header__left {
    flex: 1;
}

.shawarland-header__faq-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 15px;
    background: rgba(232, 247, 255, 0.5);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.shawarland-header__faq-banner:hover {
    background: rgba(232, 247, 255, 1);
}

.shawarland-header__faq-icon {
    flex-shrink: 0;
}

.shawarland-header__faq-icon svg {
    width: 45px;
    height: 46px;
    display: block;
}

.shawarland-header__faq-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.shawarland-header__faq-line1 {
    font-size: 12px;
    color: #4D1633;
    font-weight: 600;
}

.shawarland-header__faq-line2 {
    font-size: 11px;
    color: #4D1633;
    font-weight: 500;
}

.shawarland-header__faq-hand {
    flex-shrink: 0;
    animation: hand-wave 1.5s ease-in-out infinite;
}

.shawarland-header__faq-hand svg {
    width: 35px;
    height: 40px;
    display: block;
}

@keyframes hand-wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Center Section - Logo */
.shawarland-header__center {
    flex: 0 0 auto;
    text-align: center;
}

.shawarland-header__center img,
.shawarland-header__center .shawarland-logo img {
    max-height: 100px;
    width: auto;
}

/* Right Section - Actions */
.shawarland-header__right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

/* Contact Button */
.shawarland-header__contact-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #4D1633;
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.shawarland-header__contact-btn:hover {
    background: #FBC100;
    color: #4D1633 !important;
}

/* Search Form */
.shawarland-header__search {
    position: relative;
}

.shawarland-header__search-inner {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border-radius: 20px;
    padding: 0 5px;
    border: 1px solid #E0E0E0;
}

.shawarland-header__search-btn {
    background: none;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    color: #7C7C7C;
    transition: color 0.3s ease;
}

.shawarland-header__search-btn:hover {
    color: #4D1633;
}

.shawarland-header__search-input {
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 13px;
    width: 120px;
    outline: none;
}

.shawarland-header__search-input::placeholder {
    color: #999;
}

/* Social Icons */
.shawarland-header__social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shawarland-header__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.shawarland-header__social-icon--facebook {
    background: #3b5998;
}

.shawarland-header__social-icon--instagram {
    background: #E1306C;
}

.shawarland-header__social-icon--youtube {
    background: #cd201f;
}

.shawarland-header__social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Language Switcher */
.shawarland-header__lang {
    display: flex;
    align-items: center;
}

.shawarland-header__lang ul {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shawarland-header__lang li {
    margin: 0;
}

.shawarland-header__lang a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

.shawarland-header__lang img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

/* ============================================
   MOBILE HEADER
   ============================================ */
.shawarland-header__mobile {
    display: block;
    padding: 10px 15px;
}

@media (min-width: 1025px) {
    .shawarland-header__mobile {
        display: none;
    }
}

.shawarland-header__mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Desktop Toggle Button */
.shawarland-header__desktop-toggle {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #4D1633;
    font-size: 20px;
}

/* Mobile Logo */
.shawarland-header__mobile-logo {
    flex: 1;
    text-align: center;
}

.shawarland-header__mobile-logo img {
    max-height: 60px;
    width: auto;
}

/* Hamburger Menu */
.shawarland-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

.shawarland-header__burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #4D1633;
    transition: all 0.3s ease;
}

/* ============================================
   MOBILE NAVIGATION (Full Screen)
   ============================================ */
.shawarland-mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 350px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .shawarland-mobile-nav {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
}

.shawarland-mobile-nav.is-open {
    right: 0;
}

[dir="rtl"] .shawarland-mobile-nav.is-open {
    right: auto;
    left: 0;
}

.shawarland-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #E0E0E0;
    background: #F8F8F8;
}

.shawarland-mobile-nav__logo img {
    max-height: 50px;
    width: auto;
}

.shawarland-mobile-nav__close {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #4D1633;
}

.shawarland-mobile-nav__content {
    padding: 20px;
}

/* Mobile Search */
.shawarland-mobile-nav__search {
    margin-bottom: 20px;
}

.shawarland-mobile-nav__search form {
    display: flex;
    background: #F5F5F5;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #E0E0E0;
}

.shawarland-mobile-nav__search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
}

.shawarland-mobile-nav__search button {
    background: #4D1633;
    border: none;
    padding: 12px 20px;
    color: #FFFFFF;
    cursor: pointer;
}

/* Mobile Menu */
.shawarland-mobile-nav__menu {
    margin-bottom: 20px;
}

.shawarland-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shawarland-mobile-nav__list li {
    border-bottom: 1px solid #E0E0E0;
}

.shawarland-mobile-nav__list li a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.shawarland-mobile-nav__list li a:hover,
.shawarland-mobile-nav__list li.current-menu-item a {
    color: #4D1633;
    background: rgba(77, 22, 51, 0.05);
}

/* Mobile Social */
.shawarland-mobile-nav__social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid #E0E0E0;
}

.shawarland-mobile-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #FFFFFF !important;
    text-decoration: none;
    font-size: 18px;
}

/* Mobile Language */
.shawarland-mobile-nav__lang {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #E0E0E0;
}

.shawarland-mobile-nav__lang ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shawarland-mobile-nav__lang a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.shawarland-mobile-nav__lang img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

/* Mobile Nav Overlay */
.shawarland-mobile-nav__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shawarland-mobile-nav__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   RTL ADJUSTMENTS
   ============================================ */
[dir="rtl"] .shawarland-header__right {
    flex-direction: row-reverse;
}

[dir="rtl"] .shawarland-header__faq-banner {
    flex-direction: row-reverse;
}

[dir="rtl"] .shawarland-header__search-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .shawarland-header__social {
    flex-direction: row-reverse;
}
