/* AI Coach Styles - Inherits from dubai-loop-styles.css base */
@import url('dubai-loop-styles.css');

/* Coach Status Card */
.coach-status-section {
    margin-bottom: 48px;
}

.coach-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #121212 100%);
    border: 2px solid #8b5cf6;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

.coach-avatar {
    position: relative;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.status-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #121212;
}

.status-indicator.active {
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.coach-info {
    flex: 1;
}

.coach-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.coach-status {
    font-size: 14px;
    color: #9ca3af;
}

.chat-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Recommendation Section */
.recommendation-section {
    margin-bottom: 48px;
}

.recommendation-badge {
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: #8b5cf6;
}

.recommendation-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.workout-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.workout-info {
    flex: 1;
}

.workout-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.workout-subtitle {
    font-size: 14px;
    color: #9ca3af;
}

.start-workout-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #f4c430 0%, #d4af37 100%);
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.start-workout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.3);
}

.workout-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: #0a0a0a;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #9ca3af;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: #f4c430;
}

.workout-zones {
    margin-bottom: 24px;
}

.zones-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.zone-bar {
    height: 32px;
    background: #0a0a0a;
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    margin-bottom: 12px;
}

.zone-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.zone-1 { background: #10b981; }
.zone-2 { background: #f59e0b; }
.zone-3 { background: #ef4444; }

.zone-labels {
    display: flex;
    gap: 16px;
    font-size: 12px;
}

.zone-label {
    color: #9ca3af;
}

.coach-note {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid #8b5cf6;
    border-radius: 8px;
}

.note-icon {
    font-size: 20px;
}

/* Training Plan */
.training-plan-section {
    margin-bottom: 48px;
}

.plan-progress {
    margin-bottom: 32px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 14px;
    color: #9ca3af;
}

.progress-percentage {
    font-size: 14px;
    font-weight: 600;
    color: #f4c430;
}

.week-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.week-title {
    font-size: 20px;
    font-weight: 700;
}

.week-volume {
    font-size: 14px;
    color: #f4c430;
}

.week-workouts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workout-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    transition: all 0.25s ease;
}

.workout-item:hover {
    border-color: #8b5cf6;
}

.workout-item.completed {
    border-color: #10b981;
}

.workout-item.active {
    border-color: #f4c430;
    box-shadow: 0 0 20px rgba(244, 196, 48, 0.2);
}

.workout-day {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.workout-item.completed .workout-day {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.workout-item.active .workout-day {
    background: rgba(244, 196, 48, 0.2);
    color: #f4c430;
}

.workout-content {
    flex: 1;
}

.workout-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.workout-stats {
    font-size: 13px;
    color: #9ca3af;
}

.workout-status {
    font-size: 20px;
    color: #10b981;
}

/* Insights Section */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.insight-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.25s ease;
}

.insight-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.insight-card.warning {
    border-color: #f59e0b;
}

.insight-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.insight-title {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.insight-value {
    font-size: 28px;
    font-weight: 700;
    color: #f4c430;
    margin-bottom: 8px;
}

.insight-description {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

/* Voice Coaching */
.voice-coaching-section {
    margin-bottom: 48px;
}

.voice-card {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 32px;
}

.voice-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.sound-wave {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 80px;
}

.wave-bar {
    width: 8px;
    background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 4px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 80%; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 50%; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 40%; animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

.voice-controls {
    text-align: center;
    margin-bottom: 32px;
}

.voice-btn {
    padding: 16px 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.voice-description {
    font-size: 14px;
    color: #9ca3af;
}

.voice-examples {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 24px;
}

.examples-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.example-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.example-icon {
    font-size: 18px;
}

/* Ask Coach Section */
.ask-coach-section {
    margin-bottom: 48px;
}

.chat-interface {
    background: #121212;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.chat-messages {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.coach-message .message-avatar {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.message-content {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.coach-message .message-content {
    background: #1a1a1a;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: rgba(139, 92, 246, 0.2);
}

.chat-input {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #1a1a1a;
}

.chat-input-field {
    flex: 1;
    padding: 12px 16px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.chat-input-field:focus {
    outline: none;
    border-color: #8b5cf6;
}

.send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #1a1a1a;
}

.quick-question-btn {
    padding: 8px 16px;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quick-question-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 768px) {
    .coach-card {
        flex-direction: column;
        text-align: center;
    }
    
    .recommendation-header {
        flex-direction: column;
        text-align: center;
    }
    
    .workout-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
}
