/**
 * Will Raglan - Layout Styles
 * Header, Footer, Navigation
 */

/* Header */
.header-a7x {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner-a7x {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-left-a7x {
    flex: 1;
}

.header-center-a7x {
    flex: 1;
    text-align: center;
}

.header-right-a7x {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Logo */
.logo-a7x {
    display: inline-block;
}

.logo-text-a7x {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.logo-accent-a7x {
    color: var(--color-secondary);
    font-weight: 400;
}

/* Currency Select */
.currency-form-a7x {
    display: inline-block;
}

.currency-select-a7x {
    appearance: none;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text);
    cursor: pointer;
    padding-right: 1rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

/* Header Icons */
.header-icon-a7x {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.header-icon-a7x:hover {
    color: var(--color-secondary);
}

.vessel-icon-a7x {
    position: relative;
}

.vessel-count-a7x {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.nav-a7x {
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 0;
}

.nav-list-a7x {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-item-a7x {
    position: relative;
}

.nav-link-a7x {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link-a7x::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-secondary);
    transition: width var(--transition-fast);
}

.nav-link-a7x:hover::after,
.nav-link-a7x.active::after {
    width: 100%;
}

.nav-sale-a7x {
    color: var(--color-error);
}

/* Dropdown */
.has-dropdown-a7x:hover .dropdown-a7x {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-a7x {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    min-width: 180px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
    list-style: none;
}

.dropdown-a7x a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

.dropdown-a7x a:hover {
    background-color: var(--color-background);
}

/* Search Overlay */
.search-overlay-a7x {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container-a7x {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    position: relative;
}

.search-close-a7x {
    position: absolute;
    top: -3rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text);
}

.search-form-a7x {
    display: flex;
    gap: 1rem;
}

.search-input-a7x {
    flex: 1;
    font-size: 1.25rem;
    padding: 1rem;
    border: none;
    border-bottom: 2px solid var(--color-primary);
    background: transparent;
}

.search-input-a7x:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.search-submit-a7x {
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Main */
.main-a7x {
    min-height: calc(100vh - 400px);
}

/* Footer */
.footer-a7x {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-links-a7x {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title-a7x {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-list-a7x {
    list-style: none;
}

.footer-list-a7x li {
    margin-bottom: 0.75rem;
}

.footer-list-a7x a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-list-a7x a:hover {
    color: var(--color-white);
}

.footer-bottom-a7x {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.footer-logo-a7x {
    margin-bottom: 1rem;
}

.footer-logo-a7x .logo-text-a7x {
    color: var(--color-white);
    font-size: 2rem;
}

.footer-copyright-a7x {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.footer-social-a7x {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social-a7x a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-social-a7x a:hover {
    color: var(--color-secondary);
}

.footer-legal-a7x {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-legal-a7x a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Quick View Drawer */
.drawer-overlay-a7x {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.drawer-overlay-a7x.active {
    opacity: 1;
    visibility: visible;
}

.quick-view-drawer-a7x {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1600;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
}

.quick-view-drawer-a7x.active {
    transform: translateX(0);
}

.drawer-close-a7x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.quick-view-content-a7x {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner-a7x {
        padding: 0.75rem 0;
    }
    
    .nav-a7x {
        display: none;
    }
    
    .footer-links-a7x {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-form-a7x {
        flex-direction: column;
    }
    
    .quick-view-drawer-a7x {
        max-width: 100%;
    }
}
