/*
Theme Name: TRP Mix Music Theme
Theme URI: https://trpmix.com/
Author: TRP Mix Team
Description: قالب موسيقى عربي متكامل - خط الكوفي + مشغل مستمر + تحكم بالصوت
Version: 2.1.0
License: GPL v2
Text Domain: trpmix
Requires PHP: 7.0
*/

/* ===== Google Fonts: Noto Kufi Arabic ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.8;
    direction: rtl;
    font-size: 14px;
}
a { text-decoration: none; color: #ff6b35; transition: color 0.3s; }
a:hover { color: #ff8c5a; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.site-logo img { max-height: 50px; }
.site-title { 
    font-size: 26px; 
    font-weight: 800; 
    color: #ff6b35; 
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.main-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 10px; 
    flex-wrap: wrap;
}
.main-nav a { 
    color: #fff; 
    font-weight: 600; 
    padding: 8px 16px; 
    border-radius: 25px; 
    font-size: 13px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.main-nav a:hover { 
    background: rgba(255,107,53,0.2); 
    color: #ff6b35; 
}

/* Search */
.header-search { position: relative; }
.search-form { display: flex; align-items: center; }
.search-field {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    width: 180px;
    font-size: 13px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.search-field::placeholder { color: #888; }
.search-submit {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-right: 5px;
}

/* ===== Content ===== */
.site-content { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 20px; 
    min-height: 500px; 
}

/* Section Titles */
.section-title, .page-title {
    font-size: 22px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2a2a4a;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== Song Grid ===== */
.song-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px; 
    margin: 25px 0; 
}

/* ===== Song Card ===== */
.song-card {
    background: #1a1a2e;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a4a;
}
.song-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(255,107,53,0.2); 
}
.song-card-thumb { 
    position: relative; 
    overflow: hidden; 
    height: 200px;
}
.song-card-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s; 
}
.song-card:hover .song-card-thumb img { 
    transform: scale(1.1); 
}
.song-card-overlay {
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(0,0,0,0.5); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.3s;
}
.song-card:hover .song-card-overlay { 
    opacity: 1; 
}
.play-btn {
    width: 55px; 
    height: 55px; 
    border-radius: 50%; 
    background: #ff6b35;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer;
    font-size: 22px; 
    color: #fff; 
    border: none; 
    transition: transform 0.3s;
}
.play-btn:hover { 
    transform: scale(1.1); 
}
.song-card-content { 
    padding: 12px; 
}
.song-card-title { 
    font-size: 14px; 
    font-weight: 700; 
    margin-bottom: 6px; 
    color: #fff;
    line-height: 1.6;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.song-card-title a { 
    color: #fff; 
}
.song-card-title a:hover { 
    color: #ff6b35; 
}
.song-card-meta { 
    font-size: 12px; 
    color: #888; 
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== Single Song ===== */
.single-song { 
    background: #1a1a2e; 
    border-radius: 15px; 
    padding: 25px; 
    margin-bottom: 25px; 
}
.song-header { 
    display: flex; 
    gap: 25px; 
    margin-bottom: 25px; 
    flex-wrap: wrap; 
}
.song-thumb { 
    width: 280px; 
    height: 280px; 
    border-radius: 12px; 
    overflow: hidden; 
    flex-shrink: 0; 
}
.song-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.song-info { 
    flex: 1; 
    min-width: 250px;
}
.song-title { 
    font-size: 26px; 
    font-weight: 800; 
    color: #fff; 
    margin-bottom: 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    line-height: 1.5;
}
.song-artist { 
    font-size: 16px; 
    color: #ff6b35; 
    margin-bottom: 15px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.song-stats { 
    display: flex; 
    gap: 10px; 
    margin: 15px 0; 
    flex-wrap: wrap; 
}
.stat-item { 
    background: #0a0a0a; 
    padding: 8px 14px; 
    border-radius: 20px; 
    font-size: 13px;
    color: #ccc;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.stat-item strong { 
    color: #ff6b35; 
}

/* ===== Audio Player ===== */
.audio-section { 
    margin: 20px 0; 
}
.audio-player { 
    width: 100%; 
    border-radius: 8px; 
    height: 40px;
}
.song-actions { 
    display: flex; 
    gap: 12px; 
    margin-top: 18px; 
    flex-wrap: wrap; 
}
.btn {
    padding: 10px 25px; 
    border-radius: 25px; 
    font-weight: 700; 
    font-size: 14px;
    cursor: pointer; 
    border: none; 
    transition: all 0.3s; 
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.btn-primary { 
    background: linear-gradient(135deg, #ff6b35, #f7931e); 
    color: #fff; 
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 20px rgba(255,107,53,0.4); 
}
.btn-secondary { 
    background: #2a2a4a; 
    color: #fff; 
}
.btn-secondary:hover { 
    background: #3a3a5a; 
}

/* ===== Lyrics ===== */
.lyrics-box {
    background: #0a0a0a; 
    border-radius: 12px; 
    padding: 20px; 
    margin: 20px 0;
    border-right: 3px solid #ff6b35; 
    line-height: 2;
}
.lyrics-box h3 { 
    color: #ff6b35; 
    margin-bottom: 12px; 
    font-size: 18px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.lyrics-content {
    color: #ccc;
    font-size: 14px;
    white-space: pre-line;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== Tags ===== */
.song-tags { 
    margin: 15px 0; 
}
.tag-link {
    display: inline-block;
    background: #1a1a2e;
    color: #ff6b35;
    padding: 4px 12px;
    border-radius: 12px;
    margin: 3px;
    font-size: 12px;
    border: 1px solid #2a2a4a;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.tag-link:hover {
    background: #ff6b35;
    color: #fff;
}

/* ===== Comments ===== */
.comments-area { 
    background: #1a1a2e; 
    border-radius: 12px; 
    padding: 20px; 
    margin: 20px 0; 
}
.comments-area h3 { 
    color: #ff6b35; 
    margin-bottom: 15px; 
    font-size: 16px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== Related Songs ===== */
.related-songs { 
    margin: 30px 0; 
}
.related-songs h2 { 
    font-size: 20px; 
    margin-bottom: 18px; 
    color: #ff6b35;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== Albums Grid ===== */
.album-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px; 
    margin: 25px 0; 
}
.album-card {
    background: #1a1a2e; 
    border-radius: 12px; 
    overflow: hidden;
    border: 1px solid #2a2a4a; 
    transition: all 0.3s;
}
.album-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 30px rgba(255,107,53,0.2); 
}
.album-thumb { 
    height: 220px; 
    overflow: hidden; 
}
.album-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s; 
}
.album-card:hover .album-thumb img { 
    transform: scale(1.1); 
}
.album-content { 
    padding: 15px; 
}
.album-title { 
    font-size: 15px; 
    font-weight: 700; 
    color: #fff; 
    margin-bottom: 6px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.album-artist { 
    color: #888; 
    font-size: 12px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* ===== Sticky Player ===== */
.sticky-player {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-top: 2px solid #ff6b35; 
    padding: 8px 15px;
    z-index: 9999; 
    display: none; 
    align-items: center; 
    gap: 12px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.5);
    flex-wrap: wrap;
}
.sticky-player.active { 
    display: flex; 
}
.player-thumb { 
    width: 45px; 
    height: 45px; 
    border-radius: 6px; 
    overflow: hidden; 
    flex-shrink: 0; 
}
.player-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.player-info { 
    flex: 1; 
    min-width: 0; 
}
.player-title { 
    font-size: 13px; 
    font-weight: 700; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    color: #fff;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.player-artist { 
    font-size: 11px; 
    color: #888; 
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.player-controls { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.player-btn {
    background: none; 
    border: none; 
    color: #fff; 
    font-size: 18px; 
    cursor: pointer;
    width: 36px; 
    height: 36px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%; 
    transition: background 0.3s;
}
.player-btn:hover { 
    background: rgba(255,107,53,0.2); 
}
.player-progress {
    flex: 2; 
    height: 4px; 
    background: #2a2a4a; 
    border-radius: 2px; 
    cursor: pointer; 
    position: relative;
    min-width: 80px;
}
.player-progress-bar { 
    height: 100%; 
    background: #ff6b35; 
    border-radius: 2px; 
    width: 0%; 
    transition: width 0.1s; 
}
.player-time { 
    font-size: 11px; 
    color: #888; 
    min-width: 70px; 
    text-align: center; 
}

/* Volume Control */
.player-volume-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}
.volume-icon {
    font-size: 16px !important;
    width: 30px !important;
    height: 30px !important;
}
.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #2a2a4a;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    border: none;
}

.player-download a { 
    color: #ff6b35; 
    font-size: 18px; 
    text-decoration: none;
}
.player-close { 
    color: #888; 
    cursor: pointer; 
    font-size: 16px; 
    padding: 5px;
}
.player-close:hover { 
    color: #ff6b35; 
}

/* ===== Pagination ===== */
.pagination { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin: 35px 0; 
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 10px 16px; 
    border-radius: 8px; 
    background: #1a1a2e;
    color: #fff; 
    border: 1px solid #2a2a4a; 
    transition: all 0.3s;
    font-size: 14px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    cursor: pointer;
}
.pagination a:hover, .pagination .current { 
    background: #ff6b35; 
    border-color: #ff6b35; 
    color: #fff;
}

/* ===== Footer ===== */
.site-footer {
    background: #0a0a0a; 
    border-top: 1px solid #2a2a4a;
    padding: 25px 0; 
    text-align: center; 
    color: #666; 
    margin-bottom: 70px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 13px;
}

/* ===== AJAX Loader ===== */
.ajax-loader {
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #f7931e); 
    z-index: 10000;
    transform: translateX(-100%); 
    transition: transform 0.3s;
}
.ajax-loader.loading { 
    animation: ajaxLoad 1s infinite; 
}
@keyframes ajaxLoad {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner { 
        flex-direction: column; 
        gap: 12px; 
    }
    .main-nav ul { 
        justify-content: center; 
    }
    .song-header { 
        flex-direction: column; 
        align-items: center; 
    }
    .song-thumb { 
        width: 100%; 
        max-width: 280px; 
        height: 280px;
    }
    .sticky-player { 
        padding: 6px 10px; 
    }
    .player-progress { 
        order: 3; 
        width: 100%; 
        flex: none; 
        margin-top: 5px;
    }
    .song-grid { 
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
        gap: 12px;
    }
    .song-card-thumb {
        height: 160px;
    }
    .volume-slider {
        width: 50px;
    }
    .player-volume-wrap {
        order: 4;
    }
}
