/* Crates Global Header - Frontend Styles */

.wp-block-crates-global-header {
    background: #0A1914;
    border-bottom: 1px solid #1A2A25;
    padding: 0.75rem 0;
    position: relative;
    z-index: 1000;
    width: 100%;
}

.crates-global-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.crates-global-header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
}

/* Logo Styles */
.crates-global-header__logo-container {
    flex-shrink: 0;
    width: auto;
    max-width: 80px;
    height: 36px;
    overflow: hidden;
}

.crates-global-header__logo {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.crates-global-header__logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.crates-global-header__logo-link:hover {
    text-decoration: none;
}

.crates-global-header__logo-image {
    height: 32px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* CTA Button Styles - Using theme colors */
.crates-global-header__cta-button {
    background: #F39A76;
    color: #0A1914;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    white-space: nowrap;
}

.crates-global-header__cta-button:hover {
    background: #f38a5e;
    color: #0A1914;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 154, 118, 0.3);
}

.crates-global-header__cta-button:focus {
    outline: 2px solid #F39A76;
    outline-offset: 2px;
}

.crates-global-header__cta-button:active {
    transform: translateY(0);
}

/* Actions container */
.crates-global-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .crates-global-header__container {
        padding: 0 1.5rem;
    }

    .crates-global-header__content {
        min-height: 3rem;
    }

    .crates-global-header__logo-container {
        max-width: 90px;
        height: 40px;
    }

    .crates-global-header__logo-image {
        height: 36px;
        max-width: 100%;
    }

    .crates-global-header__cta-button {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 767px) {
    .wp-block-crates-global-header {
        padding: 0.5rem 0;
    }

    .crates-global-header__container {
        padding: 0 1rem;
    }

    .crates-global-header__content {
        min-height: 2.25rem;
    }

    .crates-global-header__logo-container {
        max-width: 70px;
        height: 32px;
    }

    .crates-global-header__logo-image {
        height: 28px;
        max-width: 100%;
    }

    .crates-global-header__cta-button {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Ensure header is above other content */
.wp-block-crates-global-header {
    position: relative;
    z-index: 1000;
}

/* Dark theme compatibility */
.dark-theme .wp-block-crates-global-header {
    background: #0A1914;
    border-bottom-color: #1A2A25;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .wp-block-crates-global-header {
        border-bottom: 2px solid #ffffff;
    }

    .crates-global-header__cta-button {
        border: 1px solid #0A1914;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .crates-global-header__cta-button {
        transition: none;
    }

    .crates-global-header__cta-button:hover {
        transform: none;
    }
}