/* static/css/components/header.css */
/* Стили шапки сайта: логотип, кнопка авторизации/выхода. */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 32px;
    border-bottom: 1px solid #dce8f3;
}

.site-header .logo-container {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.site-logo:hover {
    opacity: 0.8;
}

.site-logo-img {
    max-width: 175px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-placeholder {
    display: none;
    padding: 12px 30px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: default;
    user-select: none;
}

.auth-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #ffffff;
    color: #333;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.auth-button:hover {
    border-color: #5B9BD5;
    color: #5B9BD5;
}

.auth-button.logout:hover {
    border-color: #e05252;
    color: #e05252;
}

.auth-button-icon {
    width: 32px;
    height: 32px;
    background: #5B9BD5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-button.logout .auth-button-icon {
    background: #e05252;
}

.auth-button-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

@media (max-width: 768px) {
    .site-header {
        padding-bottom: 14px;
        margin-bottom: 20px;
    }

    .site-logo-img {
        max-width: 130px;
        max-height: 48px;
    }

    .auth-button {
        padding: 6px;
        background: transparent;
        border-color: transparent;
    }

    .auth-button:hover {
        background: rgba(91, 155, 213, 0.1);
        border-color: transparent;
    }

    .auth-button-text {
        display: none;
    }
}
