/* partner.css - Стили для партнёрского блока */
/* Версия: 2.6 - СИБДОРПРОЕКТ как ссылка */

/* ============= ВЕРХНЯЯ ПАНЕЛЬ ============= */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #002244 0%, #003366 100%);
    border-bottom: 2px solid #d4af37;
    flex-wrap: wrap;
    gap: 8px;
}

/* Область логотипа и названия (СЛЕВА) */
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-shield {
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    border: 2px solid #d4af37;
    flex-shrink: 0;
}

.team-name {
    color: white;
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #00000055;
    line-height: 1.2;
}

.team-name span {
    color: #d4af37;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 8px;
    display: block;
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Область профиля и города (СПРАВА) */
.profile-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ============= БЛОК ПАРТНЁРА (ЯРКИЙ, КОМПАКТНЫЙ) ============= */
.partner-block {
    background: linear-gradient(145deg, #2a1a00, #3d2a00);
    border-radius: 40px;
    padding: 5px 14px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
}

.partner-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    background: linear-gradient(145deg, #3d2a00, #5a3d00);
    border-color: #ffed4e;
}

.partner-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Иконка 🤝 - яркая */
.partner-icon {
    font-size: 16px;
    background: #ffd700;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a00;
    flex-shrink: 0;
    box-shadow: 0 0 4px #ffd700;
}

.partner-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

/* Текст "ПАРТНЁР" */
.partner-name {
    font-size: 9px;
    letter-spacing: 1px;
    color: #ffd700;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(0,0,0,0.4);
    padding: 2px 6px;
    border-radius: 20px;
    display: inline-block;
}

.partner-company {
    display: flex;
    align-items: center;
    gap: 5px;
}

.partner-logo {
    background: #ffd700;
    color: #1a1a00;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 11px;
    box-shadow: 0 0 3px #ffd700;
}

/* СИБДОРПРОЕКТ - это и есть ссылка */
.partner-title {
    font-weight: 800;
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(255,215,0,0.5);
    text-decoration: none;
    transition: all 0.2s;
}

.partner-title:hover {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255,215,0,0.8);
}

/* Описание - короткое */
.partner-desc {
    font-size: 8px;
    color: #ffd700;
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Скрываем старую ссылку */
.partner-link {
    display: none;
}

/* ============= МОБИЛЬНАЯ ВЕРСИЯ ============= */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .logo-area {
        order: 1;
    }
    
    .partner-block {
        order: 2;
        padding: 4px 10px;
    }
    
    .profile-area {
        order: 3;
        width: auto;
        justify-content: flex-end;
    }
    
    .partner-title {
        font-size: 11px;
    }
    
    .partner-icon {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
    
    .partner-name {
        font-size: 8px;
        padding: 2px 5px;
    }
    
    .partner-desc {
        font-size: 7px;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .top-bar {
        gap: 6px;
    }
    
    .partner-block {
        padding: 3px 8px;
    }
    
    .partner-title {
        font-size: 10px;
    }
    
    .partner-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .partner-name {
        font-size: 7px;
        padding: 2px 4px;
    }
    
    .partner-desc {
        display: none;
    }
    
    .partner-logo {
        width: 15px;
        height: 15px;
        font-size: 9px;
    }
}

/* ============= СТИЛИ ДЛЯ КНОПКИ ПРОФИЛЯ ============= */
.profile-quick-btn {
    background: #d4af37;
    color: #002244;
    border: none;
    padding: 5px 12px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    border: 1px solid #ffd966;
    font-family: 'Russo One', sans-serif;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.profile-quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    background: #ffd966;
}

.profile-quick-btn:active {
    transform: translateY(1px);
}

.profile-quick-btn.logged-in {
    background: #28a745;
    color: white;
    border-color: #d4af37;
}

.profile-quick-btn.logged-in:hover {
    background: #34ce57;
}

@media (max-width: 480px) {
    .profile-quick-btn {
        padding: 4px 10px;
        font-size: 10px;
        gap: 4px;
    }
}

.profile-quick-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #d4af37;
    background: #003366;
}

/* Стили для бейджа города */
.city-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 51, 102, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
    border: 1px solid #d4af37;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.city-badge:hover {
    background: rgba(0, 51, 102, 1);
    transform: translateY(-1px);
    border-color: #ffd966;
}

.city-badge .city-icon {
    font-size: 12px;
}

.city-badge .city-name {
    font-weight: 600;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d4af37;
    font-size: 11px;
}

.city-badge .city-change-icon {
    font-size: 9px;
    opacity: 0.7;
}

@media (max-width: 480px) {
    .city-badge {
        padding: 3px 8px;
    }
    .city-badge .city-name {
        font-size: 10px;
        max-width: 80px;
    }
}

/* Анимация пульсации */
@keyframes partnerPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
        border-color: #ffd700;
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        border-color: #ffed4e;
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
        border-color: #ffd700;
    }
}

.partner-block {
    animation: partnerPulse 2s ease-in-out infinite;
}