/* Audio SEO Pro - Frontend Player Styles */

.audio-seo-player-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Button Container */
.audio-seo-button-container {
    text-align: center;
    margin-bottom: 20px;
}

/* Play Button */
.audio-seo-play-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.audio-seo-play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.audio-seo-play-button:active {
    transform: translateY(0);
}

.audio-seo-icon {
    font-size: 18px;
    line-height: 1;
}

.audio-seo-button-text {
    line-height: 1;
}

/* Player Container */
.audio-seo-player-container {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Player */
.audio-seo-player {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Play/Pause Button */
.audio-seo-player-play-pause {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.audio-seo-player-play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.audio-seo-player-icon {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

/* Progress Section */
.audio-seo-player-progress {
    flex: 1;
    min-width: 200px;
}

.audio-seo-player-progress-bar {
    height: 6px;
    background: #e1e4e8;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.audio-seo-player-progress-filled {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-seo-player-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #586069;
    font-weight: 500;
}

/* Controls */
.audio-seo-player-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.audio-seo-player-speed,
.audio-seo-player-close {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #586069;
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-seo-player-speed:hover,
.audio-seo-player-close:hover {
    background: #f3f4f6;
    border-color: #d1d5da;
}

.audio-seo-player-speed.active {
    color: #667eea;
    border-color: #667eea;
    background: #f0f3ff;
}

/* Footer */
.audio-seo-player-footer {
    margin-top: 12px;
    text-align: center;
    color: #6a737d;
    font-size: 11px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .audio-seo-play-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .audio-seo-player {
        gap: 10px;
    }
    
    .audio-seo-player-play-pause {
        width: 45px;
        height: 45px;
    }
    
    .audio-seo-player-icon {
        font-size: 18px;
    }
    
    .audio-seo-player-progress {
        min-width: 100%;
        order: 3;
    }
    
    .audio-seo-player-controls {
        margin-left: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .audio-seo-player-container {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .audio-seo-player-progress-bar {
        background: #333;
    }
    
    .audio-seo-player-time {
        color: #aaa;
    }
    
    .audio-seo-player-speed,
    .audio-seo-player-close {
        background: #2a2a2a;
        border-color: #444;
        color: #ccc;
    }
    
    .audio-seo-player-speed:hover,
    .audio-seo-player-close:hover {
        background: #333;
        border-color: #555;
    }
    
    .audio-seo-player-footer {
        color: #888;
    }
}

/* Loading State */
.audio-seo-player.loading .audio-seo-player-play-pause {
    opacity: 0.6;
    cursor: wait;
}

/* Accessibility */
.audio-seo-play-button:focus,
.audio-seo-player-play-pause:focus,
.audio-seo-player-speed:focus,
.audio-seo-player-close:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

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

.audio-seo-player.playing .audio-seo-player-icon {
    animation: pulse 1.5s ease-in-out infinite;
}
