/* Echo-specific styles - extends style.css */

/* Anonymous Overlay */
.anonymous-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.anonymous-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.anonymous-card h2 {
    color: #ff006e;
    margin-bottom: 15px;
}

.anonymous-card p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #ff006e 0%, #ff2e8a 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-label {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.3em;
    font-weight: bold;
}

/* Echo Sections */
.echo-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.echo-label {
    display: block;
    font-weight: bold;
    color: #ff006e;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.echo-select,
.echo-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.echo-select:focus,
.echo-input:focus {
    outline: none;
    border-color: #ff006e;
}

.char-counter {
    text-align: right;
    font-size: 0.85em;
    color: #999;
    margin-top: 5px;
}

/* Monthly Challenge Section */
.challenge-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f9 100%);
    border: 2px solid #ff006e;
}

.challenge-header h3 {
    color: #ff006e;
    margin-bottom: 5px;
}

.challenge-subtitle {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.challenge-phrase {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.challenge-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.use-challenge-btn {
    background: #ff006e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.use-challenge-btn:hover {
    background: #ff2e8a;
    transform: translateY(-2px);
}

/* Recording Section */
.recording-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
}

.recorder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.recorder-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
}

.status-dot.recording {
    background: #f44336;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.status-text {
    font-weight: 600;
    color: #333;
}

/* Recording Buttons */
.recorder-controls {
    display: flex;
    gap: 15px;
}

.record-btn,
.stop-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.record-btn {
    background: linear-gradient(135deg, #ff006e 0%, #ff2e8a 100%);
    color: white;
}

.record-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

.stop-btn {
    background: #f44336;
    color: white;
}

.stop-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.3em;
}

/* Audio Preview */
.audio-preview {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preview-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.audio-preview audio {
    width: 100%;
    margin-bottom: 15px;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.secondary-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #e9ecef;
    border-color: #ccc;
}

/* Share Section */
.share-section {
    background: linear-gradient(135deg, #e8f5e8 0%, #fff 100%);
}

.share-card {
    text-align: center;
}

.share-card h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.share-link-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.share-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.9em;
    background: white;
}

.copy-btn {
    background: #ff006e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #ff2e8a;
}

/* Pro Grade Section */
.pro-grade-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.pro-grade-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.pro-grade-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.pro-grade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.pro-grade-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.pro-grade-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 10px;
}

/* Loading Indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        align-items: center;
        width: 100%;
    }

    .challenge-phrase {
        flex-direction: column;
    }

    .challenge-text {
        text-align: center;
    }

    .recorder-controls {
        flex-direction: column;
        width: 100%;
    }

    .record-btn,
    .stop-btn {
        width: 100%;
        justify-content: center;
    }

    .preview-actions {
        flex-direction: column;
    }

    .share-link-container {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
}

/* Daily Challenge Section Updates */
.challenge-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.challenge-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.challenge-language {
    display: inline-block;
    background: linear-gradient(135deg, #ff006e 0%, #ff2e8a 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: bold;
    width: fit-content;
}

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

.view-leaderboard-btn {
    background: white;
    color: #FF8C00;
    border: 2px solid #FFD700;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
}

.view-leaderboard-btn:hover {
    background: #FFD700;
    color: #333;
}