/**
 * FlowX4 Footer
 * =============
 */

.footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--footer-height);
    padding: 0 var(--space-4);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-default);
    z-index: var(--z-sticky);
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-text {
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
}

.footer-version {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.footer-logout {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--color-text-tertiary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-logout:hover {
    color: var(--color-error);
    background: var(--color-surface-hover);
}

.footer-logout svg {
    width: 14px;
    height: 14px;
}

/* Footer Menu (mobile only) */
.footer-menu {
    display: none;  /* Скрыто на desktop */
    position: relative;
}

.footer-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.footer-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.footer-burger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.footer-burger--active span:nth-child(2) {
    opacity: 0;
}

.footer-burger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Footer Nav - выпадает вверх */
.footer-nav {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: var(--space-2);
    margin-bottom: var(--space-2);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: var(--z-overlay);
}

.footer-nav--open {
    opacity: 1;
    visibility: visible;
}

.footer-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-nav-item:hover {
    color: var(--color-text-primary);
    background: var(--color-surface-hover);
}

.footer-nav-item.active {
    color: var(--color-accent-primary);
    background: var(--color-accent-primary-muted);
}

.footer-nav-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

button.footer-nav-item {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.footer-nav-divider {
    height: 1px;
    margin: var(--space-1) 0;
    background: var(--color-border-default);
}

.footer-nav-search {
    padding: var(--space-2) var(--space-3);
}

.footer-nav-search .symbol-autocomplete {
    max-width: 100%;
}

.footer-nav-search .symbol-autocomplete__input {
    height: 32px;
    font-size: var(--font-size-xs);
}

.footer-nav-search .symbol-autocomplete__dropdown {
    position: fixed;
    top: auto;
    left: var(--space-3);
    right: var(--space-3);
    min-width: auto;
    max-height: 60vh;
}
