/* ===================================================================
   SPLITKUN FLOATING HEADER STYLES
   Modern floating header with scroll animations
   =================================================================== */

/* ===================================================================
   HEADER BASE STYLES
   =================================================================== */

.split-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    transition: transform 0.3s ease;
}

.split-header.hidden {
    transform: translateY(-100%);
}

/* ===================================================================
   DESKTOP HEADER CONTAINER (991px+)
   =================================================================== */

.split-header-desktop {
    display: none;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    gap: 2rem;
}

.split-header-container {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    min-height: 62px;
}

/* Left Container - Logo & Navigation */
.split-header-left {
    padding: 0.5rem 1rem;
    gap: 1.5rem;
}

.split-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.split-header-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.split-header-brand-text {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.split-header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.split-header-nav-item {
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    border-radius: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.split-header-nav-item:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}

.split-header-nav-item:active {
    transform: translateY(0);
}

/* Right Container - Download Badges */
.split-header-right {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    min-height: 62px !important;
}

.split-header-download {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
}

.split-header-download:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.split-header-download:active {
    transform: translateY(0);
}

.split-header-download-img {
    height: 32px;
    width: auto;
    display: block;
}

/* ===================================================================
   MOBILE HEADER (below 991px)
   =================================================================== */

.split-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: calc(100vw - 2rem);
    margin: 0 auto;
}

.split-header-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.split-header-mobile-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.split-header-mobile-text {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.split-header-mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem; /* Increased from 0.5rem */
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
    min-width: 44px;   /* Ensure minimum touch target */
    min-height: 44px;  /* Ensure minimum touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-header-mobile-toggle:hover {
    background-color: #f5f5f5;
}

.split-header-mobile-toggle-icon {
    width: 20px;
    height: 20px;
    stroke: #333333;
}

/* ===================================================================
   MOBILE DROPDOWN MENU
   =================================================================== */

.split-header-mobile-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.split-header-mobile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.split-header-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.split-header-mobile-nav-item {
    padding: 0.75rem;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.split-header-mobile-nav-item:hover {
    background-color: #f5f5f5;
}

.split-header-mobile-downloads {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.split-header-mobile-download {
    flex: 1;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
}

.split-header-mobile-download:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.split-header-mobile-download:active {
    transform: translateY(0);
}

.split-header-mobile-download-img {
    height: 32px;
    width: 100%;
    object-fit: contain;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */

@media (min-width: 991px) {
    .split-header-desktop {
        display: flex;
    }

    .split-header-mobile {
        display: none;
    }
}

@media (max-width: 990px) {
    .split-header-desktop {
        display: none;
    }

    .split-header-mobile {
        display: flex;
    }
}

/* ===================================================================
   ACCESSIBILITY & FOCUS STATES
   =================================================================== */

/* Navigation item focus styles - black matte background with white text */
.split-header-nav-item:focus,
.split-header-mobile-nav-item:focus {
    outline: none;
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Active/current page navigation styling */
.split-header-nav-item.active,
.split-header-mobile-nav-item.active {
    background-color: #000000;
    color: #ffffff;
}

/* Other focus styles */
.split-header-download:focus,
.split-header-mobile-toggle:focus,
.split-header-mobile-download:focus,
.split-header-brand:focus,
.split-header-mobile-brand:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */

@media (prefers-reduced-motion: reduce) {
    .split-header,
    .split-header-nav-item,
    .split-header-download,
    .split-header-mobile-toggle,
    .split-header-mobile-dropdown,
    .split-header-mobile-download {
        transition: none;
    }
}

/* ===================================================================
   BODY STYLING & SPACING FOR FIXED HEADER
   =================================================================== */

body {
    background-color: #f0f0ea;
}

body.has-floating-header {
    padding-top: 5rem;
}

@media (max-width: 990px) {
    body.has-floating-header {
        padding-top: 4rem;
    }
}
