/* MindCube Mp3 Player - Frontend Player Styles */

body.mindcube-fullscreen {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.mindcube-player-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.mindcube-player-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #fff;
}

/* Player Container */
.mindcube-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Arka Plan - Resim veya Video */
.mindcube-player-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #000;
}

.mindcube-player-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.mindcube-player-background img,
.mindcube-player-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Player Kontrolleri */
.mindcube-player-controls {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 600px;
    text-align: center;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
}

/* Şarkı Bilgileri */
.mindcube-track-info {
    margin-bottom: 30px;
    color: #fff !important;
    text-shadow: 0 3px 20px rgba(0,0,0,0.9);
    position: relative;
    z-index: 100;
}

.mindcube-track-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.9), 0 2px 10px rgba(0,0,0,0.8);
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
}

.mindcube-track-artist {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    opacity: 1;
    color: #ffffff !important;
    text-shadow: 0 3px 15px rgba(0,0,0,0.9);
    -webkit-text-fill-color: #ffffff !important;
}

/* Progress Bar */
.mindcube-progress-container {
    width: 100%;
    margin: 30px 0;
}

.mindcube-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mindcube-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.mindcube-progress-bar.playing::before {
    width: var(--progress, 0%);
}

.mindcube-progress-handle {
    position: absolute;
    top: 50%;
    left: var(--progress, 0%);
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.mindcube-progress-bar:hover .mindcube-progress-handle {
    opacity: 1;
}

/* Kontrol Düğmeleri */
.mindcube-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.mindcube-control-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mindcube-control-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.mindcube-control-btn.play-pause {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.25);
}

.mindcube-control-btn.play-pause:hover {
    background: rgba(255,255,255,0.35);
}

.mindcube-control-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.mindcube-control-btn.play-pause svg {
    width: 36px;
    height: 36px;
}

/* Alt Kontroller */
.mindcube-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.mindcube-volume-btn,
.mindcube-menu-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.mindcube-volume-btn:hover,
.mindcube-menu-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

.mindcube-volume-btn svg,
.mindcube-menu-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Ses Kontrol Paneli */
.mindcube-volume-panel {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(20px);
    padding: 80px 20px 20px 20px;
    border-radius: 25px;
    width: 70px;
    height: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mindcube-volume-panel.active {
    opacity: 1;
    visibility: visible;
    bottom: 140px;
}

.mindcube-volume-slider {
    -webkit-appearance: slider-vertical;
    appearance: slider-vertical;
    width: 6px;
    height: 120px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    writing-mode: bt-lr;
}

.mindcube-volume-slider::-webkit-slider-runnable-track {
    width: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.mindcube-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-left: -7px;
}

.mindcube-volume-slider::-moz-range-track {
    width: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.mindcube-volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Çalma Listesi Paneli */
.mindcube-playlist-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    max-height: 60vh;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    transition: bottom 0.4s ease;
    z-index: 2000;
    overflow: hidden;
}

.mindcube-playlist-panel.active {
    bottom: 0;
}

.mindcube-playlist-panel .playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mindcube-playlist-panel .playlist-header h3 {
    color: #fff;
    margin: 0;
    font-size: 18px;
}

.mindcube-playlist-panel .close-playlist {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mindcube-playlist-panel .playlist-tracks {
    max-height: calc(60vh - 80px);
    overflow-y: auto;
    padding: 10px 0;
}

.mindcube-playlist-panel .track-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mindcube-playlist-panel .track-item:hover,
.mindcube-playlist-panel .track-item.active {
    background: rgba(255,255,255,0.1);
}

.mindcube-playlist-panel .track-item.active {
    border-left: 3px solid #fff;
}

.mindcube-playlist-panel .track-info-item {
    flex: 1;
}

.mindcube-playlist-panel .track-title-item {
    color: #fff;
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.mindcube-playlist-panel .track-artist-item {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0;
}

/* Responsive - Mobil */
@media (max-width: 768px) {
    .mindcube-player-controls {
        width: 95%;
    }
    
    .mindcube-track-title {
        font-size: 24px;
    }
    
    .mindcube-track-artist {
        font-size: 16px;
    }
    
    .mindcube-control-btn {
        width: 50px;
        height: 50px;
    }
    
    .mindcube-control-btn.play-pause {
        width: 70px;
        height: 70px;
    }
    
    .mindcube-control-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .mindcube-control-btn.play-pause svg {
        width: 32px;
        height: 32px;
    }
}

/* PC Görünümü - Geniş Ekran */
@media (min-width: 1024px) {
    .mindcube-player-background img,
    .mindcube-player-background video {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .mindcube-player-controls {
        max-width: 700px;
    }
}

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

.mindcube-player-controls {
    animation: fadeIn 0.6s ease-out;
}

/* Loading State */
.mindcube-player.loading .mindcube-control-btn {
    pointer-events: none;
    opacity: 0.5;
}
