/* Trainer-specific styles */
.trainer-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.trainer-header {
    max-width: 600px;
    margin: 0 auto;
}

.trainer-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.trainer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.trainer-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.trainer-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.trainer-container {
    padding: 3rem 0;
    background: #f9fafb;
}

.trainer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.controls-section {
    display: flex;
    justify-content: center;
}

.controls-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 500px;
}

.controls-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.bpm-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bpm-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.bpm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bpm-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bpm-value {
    font-weight: 600;
    color: #f59e0b;
    font-size: 1.125rem;
    min-width: 3rem;
    text-align: center;
}

.pattern-select,
.duration-select,
.sound-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.pattern-select:focus,
.duration-select:focus,
.sound-select:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.display-section {
    display: flex;
    justify-content: center;
}

.display-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    max-width: 500px;
    width: 100%;
}

.rhythm-display {
    text-align: center;
}

.beat-indicator {
    margin-bottom: 2rem;
}

.beat-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 4px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.1s ease;
    position: relative;
}

.beat-circle.active {
    background: #f59e0b;
    border-color: #d97706;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.beat-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.1s ease;
}

.beat-circle.active::before {
    opacity: 1;
}

.beat-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    position: absolute;
    z-index: 1;
}

.beat-circle.active .beat-text {
    color: white;
}

.progress-display {
    margin-bottom: 2rem;
}

.progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f3f4f6;
    border: 4px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(#f59e0b 0deg, #f59e0b 0deg, #e5e7eb 0deg);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.progress-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.time-remaining {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.time-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.stats-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.training-history {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.training-history h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1f2937;
    text-align: center;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.history-item {
    text-align: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.history-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.25rem;
}

.history-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.recent-sessions h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #f59e0b;
}

.session-info {
    flex: 1;
}

.session-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.session-details {
    font-size: 0.75rem;
    color: #9ca3af;
}

.session-stats {
    text-align: right;
}

.session-duration {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.session-bpm {
    font-size: 0.75rem;
    color: #6b7280;
}

.no-sessions {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 2rem;
}

.related-tools {
    padding: 3rem 0;
    background: white;
}

.related-tools .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-tools .tool-card {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .trainer-title {
        font-size: 2rem;
    }
    
    .trainer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trainer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .controls-card {
        padding: 1.5rem;
    }
    
    .display-card {
        padding: 1.5rem;
    }
    
    .beat-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .stats-display {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trainer-hero {
        padding: 2rem 0;
    }
    
    .trainer-title {
        font-size: 1.75rem;
    }
    
    .controls-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .display-card {
        padding: 1rem;
        margin: 0 1rem;
    }
    
    .beat-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .time-remaining {
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .history-stats {
        grid-template-columns: 1fr;
    }
    
    .session-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .session-stats {
        text-align: left;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

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