/**
 * Screen Wardrobe CSS
 * Стили экрана Гардероб (профиль пользователя)
 */

/* ===== Wardrobe Panel ===== */
.wardrobe-panel {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    max-width: 300px;
    width: 100%;
}

/* ===== Header ===== */
.wardrobe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.header-info {
    flex: 1;
    min-width: 0;
}

.header-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.logout-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.logout-icon:hover {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

/* ===== Profile Avatar ===== */
.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1.2rem;
}

.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}

.profile-initials {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-light);
}

/* ===== Profile Name ===== */
.profile-name {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-family: var(--font-display);
    margin-bottom: 12px;
}

.profile-name:focus {
    outline: none;
    border-color: var(--accent-gold);
}

/* ===== Profile Sections ===== */
.profile-hz-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-hz-section {
    flex: 1;
    min-width: 0;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-section {
    margin-bottom: 12px;
}

/* ===== Toggle Group ===== */
.toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.toggle-group--compact {
    display: flex;
    gap: 6px;
}

.toggle-group--compact .toggle-btn {
    flex: 1;
    text-align: center;
}

.toggle-group--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.toggle-group--row {
    display: flex;
    gap: 6px;
}

.toggle-group--row .toggle-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 0.8rem;
}

.toggle-btn {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: center;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.toggle-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 500;
}

/* ===== Device Select ===== */
.device-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23f5f5f5' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.device-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.device-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
}

.device-select option {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 8px;
}

/* ===== Logout Button ===== */
.btn--logout {
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn--logout:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    color: #ff6b6b;
}

/* ===== Afisha Card (Scheduled Meetings) ===== */
.afisha-card {
    border-color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.5);
}

.afisha-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--accent-gold);
}

.afisha-content {
    margin-bottom: 12px;
}

.afisha-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 8px 0;
}

.afisha-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.afisha-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afisha-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.afisha-item-datetime {
    font-weight: 500;
    color: #fff;
}

.afisha-item-partner {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.afisha-item-partner.waiting {
    color: var(--accent-gold);
    font-style: italic;
}

.afisha-actions {
    display: flex;
    gap: 10px;
}

.afisha-actions .btn {
    flex: 1;
}

/* ===== Afisha Confirm ===== */
.afisha-confirm {
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
}

.afisha-confirm p {
    margin: 0 0 12px 0;
    color: #fff;
}

.afisha-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ===== Afisha Modal ===== */
.afisha-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.afisha-modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.afisha-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.afisha-modal-close:hover {
    color: #fff;
}

.afisha-modal-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin: 0 0 4px 0;
    text-align: center;
}

.afisha-modal-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 16px;
}

.afisha-modal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 180px;
    overflow-y: auto;
}

.afisha-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.afisha-modal-item-datetime {
    font-weight: 500;
    color: #fff;
}

.afisha-modal-item-partner {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.afisha-modal-item-partner.waiting {
    color: var(--accent-gold);
    font-style: italic;
}

.afisha-modal-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.afisha-modal-item-cancel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 10px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.afisha-modal-item-cancel:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.afisha-modal-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px 0;
}

.afisha-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
