/* ============================================
   CREATIVE HEADER - NON-TRADITIONAL DESIGN
   شريط علوي إبداعي بتصميم غير تقليدي
   ============================================ */

/* ===== ALMARAI FONT ===== */
* {
    font-family: 'Almarai', sans-serif !important;
}

/* استثناء الأيقونات من تطبيق الخط */
i[class*="fa-"],
i[class*="icon-"],
.fa,
.fas,
.far,
.fal,
.fab {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* ===== CREATIVE HEADER ===== */
.creative-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

/* Gradient Border Bottom - DISABLED */
.creative-header::after {
    display: none !important;
}

.creative-header.scrolled::after {
    display: none !important;
}

.creative-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ===== CREATIVE NAV ===== */
.creative-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.creative-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ===== CREATIVE LOGO ===== */
.creative-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    position: relative;
}

.creative-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 12px rgba(0, 108, 222, 0.2));
}

.creative-logo:hover .creative-logo-img {
    transform: scale(1.1) rotate(360deg);
}

.creative-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.creative-logo-main {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.creative-logo-sub {
    font-size: 10px;
    font-weight: 700;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ===== CREATIVE MENU - NON-TRADITIONAL BUTTONS ===== */
.creative-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.creative-menu-item {
    position: relative;
}

/* Non-Traditional Button Design - Hexagon Shape */
.creative-menu-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

/* Background Shape */
.creative-menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 108, 222, 0.05);
    clip-path: inherit;
    opacity: 0;
    transition: all 0.3s;
}

.creative-menu-btn:hover::before {
    opacity: 1;
    background: rgba(0, 108, 222, 0.1);
}

/* Active State - Gradient Fill */
.creative-menu-btn.active {
    color: white;
}

.creative-menu-btn.active::before {
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    opacity: 1;
}

/* Icon */
.creative-menu-btn i {
    font-size: 13px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.creative-menu-btn:hover i,
.creative-menu-btn.active i {
    opacity: 1;
    transform: scale(1);
}

/* Hover Effect */
.creative-menu-btn:hover {
    color: #006cde;
    transform: translateY(-2px);
}

.creative-menu-btn.active:hover {
    color: white;
}

/* Glow Effect on Active */
.creative-menu-btn.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: inherit;
    clip-path: inherit;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}

/* ===== CREATIVE ACTIONS ===== */
.creative-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher - Integrated with Flag */
.creative-lang-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(0, 108, 222, 0.08) 0%, rgba(0, 225, 213, 0.08) 100%);
    border: 1.5px solid rgba(0, 108, 222, 0.15);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 700;
    color: #2c3e50;
    overflow: hidden;
}

/* Flag Emoji */
.creative-lang-flag {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.creative-lang-btn:hover .creative-lang-flag {
    transform: scale(1.2) rotate(10deg);
}

/* Gradient Background on Hover */
.creative-lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.creative-lang-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 108, 222, 0.25);
}

.creative-lang-btn:hover::before {
    opacity: 1;
}

/* Language Text */
.creative-lang-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Search Button - Circle */
.creative-search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 108, 222, 0.08) 0%, rgba(0, 225, 213, 0.08) 100%);
    border: 1.5px solid rgba(0, 108, 222, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.creative-search-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.creative-search-btn:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 108, 222, 0.25);
}

.creative-search-btn:hover::before {
    opacity: 1;
}

.creative-search-btn i {
    position: relative;
    z-index: 1;
}

/* Mobile Toggle - Animated Hamburger */
.creative-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #006cde 0%, #00e1d5 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0, 108, 222, 0.3);
}

.creative-mobile-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 108, 222, 0.4);
}

.creative-toggle-line {
    position: absolute;
    width: 18px;
    height: 2px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.creative-toggle-line:nth-child(1) {
    top: 12px;
}

.creative-toggle-line:nth-child(2) {
    top: 19px;
}

.creative-toggle-line:nth-child(3) {
    top: 26px;
}

.creative-mobile-toggle.active .creative-toggle-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.creative-mobile-toggle.active .creative-toggle-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.creative-mobile-toggle.active .creative-toggle-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ===== ALTERNATIVE BUTTON STYLES ===== */

/* Style 2: Skewed Buttons */
.creative-menu-btn-skew {
    transform: skewX(-10deg);
    border-radius: 8px;
    padding: 10px 22px;
}

.creative-menu-btn-skew span {
    display: inline-block;
    transform: skewX(10deg);
}

/* Style 3: Pill with Border */
.creative-menu-btn-pill {
    border-radius: 50px;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #006cde, #00e1d5) border-box;
}

/* Style 4: Underline Effect */
.creative-menu-btn-underline {
    border-radius: 0;
    padding-bottom: 8px;
    border-bottom: 3px solid transparent;
}

.creative-menu-btn-underline:hover,
.creative-menu-btn-underline.active {
    border-bottom-color: #006cde;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .creative-menu {
        gap: 2px;
    }
    
    .creative-menu-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .creative-search-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .creative-nav-container {
        padding: 0 20px;
    }
    
    .creative-header {
        padding: 10px 0;
    }
    
    .creative-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: white;
        border-radius: 20px;
        padding: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        gap: 10px;
        z-index: 9999;
    }
    
    .creative-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .creative-menu-btn {
        width: 100%;
        clip-path: none;
        border-radius: 12px;
        padding: 14px 20px;
        justify-content: flex-start;
    }
    
    .creative-menu-btn::before {
        clip-path: none;
        border-radius: inherit;
    }
    
    .creative-mobile-toggle {
        display: block;
    }
    
    .creative-logo-text {
        display: none;
    }
    
    .creative-logo-img {
        width: 45px;
        height: 45px;
    }
    
    .creative-lang-text {
        display: none;
    }
    
    .creative-lang-btn {
        padding: 8px 12px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ACCESSIBILITY ===== */
.creative-menu-btn:focus-visible,
.creative-lang-btn:focus-visible,
.creative-search-btn:focus-visible {
    outline: 3px solid #006cde;
    outline-offset: 3px;
}

/* ===== PERFORMANCE ===== */
.creative-header {
    will-change: transform, background;
}

.creative-menu-btn {
    will-change: transform, color;
}
