/* Стили для компонентов трехзонного интерфейса */

/* ============================================
   ВЕРХНЯЯ ЗОНА - Профиль пользователя
   ============================================ */

.user-profile-compact {
    padding: 8px 0;
}

.profile-rules-compact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.4;
}

/* Развернутый профиль */
.user-profile-expanded {
    padding: 10px 0;
}

.profile-greeting {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-align: left;
    margin-bottom: 12px;
    line-height: 1.4;
}

.profile-greeting span {
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.profile-rules {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.4;
}


/* ============================================
   СРЕДНЯЯ ЗОНА - Запись аудио
   ============================================ */

.recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 20px;
}

.recorder-timer {
    font-size: 56px;
    font-weight: 700;
    color: #666;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.recorder-status {
    font-size: 15px;
    color: #999;
    text-align: center;
    min-height: 22px;
}

.recorder-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.recorder-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.recorder-btn:active {
    transform: scale(0.95);
}

.recorder-btn.recording {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    animation: pulse 1.5s infinite;
}

.recorder-btn.sending {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    cursor: not-allowed;
}

.recorder-btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.recorder-icon {
    font-size: 48px;
}

.recorder-text {
    font-size: 14px;
}

.recorder-hint {
    font-size: 14px;
    color: #999;
}

.visualizer {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

/* ============================================
   НИЖНЯЯ ЗОНА - Список записей
   ============================================ */

.recordings-compact {
    padding: 10px 0;
}

.recordings-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.recordings-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-recordings {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 20px;
    font-size: 14px;
}

/* Развернутый список */
.recordings-expanded {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recordings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.recordings-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
}

.recordings-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recording-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.recording-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.recording-info {
    flex-grow: 1;
}

.recording-duration {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.recording-date {
    font-size: 12px;
    color: #999;
}

.recording-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.btn-icon:active {
    transform: scale(0.9);
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
}

.empty-message small {
    font-size: 14px;
    opacity: 0.7;
}

/* Footer нижней зоны */
.recordings-footer {
    margin-top: auto;
    padding: 12px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.retention-info {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}
