/*
Theme Name: TRPMix Music Theme
Theme URI: https://trpmix.com/
Author: TRPMix Team
Version: 3.0.0
Text Domain: trpmix
*/

/* ===== COLOR THEME ===== */
:root {
    --primary: #00d4aa;
    --primary-light: #33e0bf;
    --primary-dark: #00a884;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --border: #1e1e2e;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #ff3860;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Kufi Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 500;
}
h1, h2, h3, h4, h5, h6, .site-title, .page-title, .card-title {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 700;
}
a { text-decoration: none; color: var(--primary); transition: color 0.3s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    padding: 12px 0;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-logo img { max-height: 45px; }
.site-title { font-size: 1.6rem; color: var(--primary); font-weight: 800; }

.main-nav ul { display: flex; gap: 15px; flex-wrap: wrap; }
.main-nav a {
    color: var(--text);
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s;
    font-size: 0.85rem;
}
.main-nav a:hover { background: var(--primary); color: #000; }

.search-form { display: flex; gap: 5px; }
.search-form input {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #0d1117;
    color: #fff;
    width: 180px;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.search-form button {
    padding: 7px 18px;
    border: none;
    border-radius: 20px;
    background: var(--primary);
    color: #000;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Noto Kufi Arabic', sans-serif;
    transition: background 0.3s;
}
.search-form button:hover { background: var(--primary-light); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; font-size: 0.85rem; color: var(--text-muted); align-items: center; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs .separator { color: #444; }

/* ===== CONTENT ===== */
.site-content { padding: 25px 0; flex: 1; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    margin-top: 35px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.section-header:first-child { margin-top: 0; }
.page-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.page-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 2px;
}
.view-all {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    background: transparent;
    border-radius: 15px;
    border: 1px solid var(--primary);
    color: var(--primary);
    transition: all 0.3s;
}
.view-all:hover { background: var(--primary); color: #000; }

/* ===== GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

/* ===== CARD ===== */
.card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,212,170,0.1);
    border-color: var(--primary-dark);
}
.card-thumb { position: relative; overflow: hidden; }
.card-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s;
}
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 12px; }
.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}
.card-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 45px; height: 45px;
    background: rgba(0,212,170,0.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    border: none;
    color: #000;
    font-size: 1rem;
    font-weight: 700;
}
.card:hover .card-play { opacity: 1; }

/* ===== SINGER SLIDER ===== */
.singer-slider-wrap { position: relative; margin-bottom: 10px; }
.singer-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 5px 0 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}
.singer-slider::-webkit-scrollbar { height: 6px; }
.singer-slider::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 3px; }
.singer-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
.singer-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 130px;
    text-align: center;
}
.singer-slide .card-thumb {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s;
}
.singer-slide:hover .card-thumb { border-color: var(--primary); }
.singer-slide .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}
.singer-slide .card-title {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.slider-nav:hover { opacity: 1; }
.slider-nav.prev { left: -10px; }
.slider-nav.next { right: -10px; }

/* ===== SINGLE SONG ===== */
.song-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    margin-bottom: 25px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.song-cover img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.song-info h1 { font-size: 1.4rem; margin-bottom: 8px; color: #fff; font-weight: 800; }
.song-info .artist { font-size: 1rem; color: var(--primary); margin-bottom: 12px; font-weight: 600; }
.song-stats { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; }
.song-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 22px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 0.85rem;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--bg-card-hover); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-success { background: #28a745; color: #fff; }

/* ===== LYRICS ===== */
.lyrics-box {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-top: 18px;
    line-height: 2.2;
    white-space: pre-line;
    border: 1px solid var(--border);
}

/* ===== SONG LIST ===== */
.song-list { display: flex; flex-direction: column; gap: 6px; }
.song-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}
.song-list-item:hover, .song-list-item.current {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}
.song-list-item .num { width: 28px; text-align: center; color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }
.song-list-item .title { flex: 1; font-weight: 600; font-size: 0.9rem; }
.song-list-item .duration { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }
.song-list-item .play-btn {
    width: 32px; height: 32px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}

/* ===== RELATED SONGS ===== */
.related-songs { margin-top: 30px; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 25px; flex-wrap: wrap;
}
.pagination li { list-style: none; }
.pagination a, .pagination span {
    padding: 7px 14px;
    background: var(--bg-card);
    border-radius: 6px;
    color: var(--text);
    transition: all 0.3s;
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}
.pagination a:hover, .pagination .current {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #07070a;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 75px;
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-nav ul { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--primary); }
.copyright { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }

/* ===== STICKY PLAYER ===== */
.trpmix-player-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #0d1117 0%, #07070a 100%);
    border-top: 2px solid var(--primary);
    padding: 8px 18px;
    z-index: 9999;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    font-family: 'Noto Kufi Arabic', sans-serif;
}
.trpmix-player-bar.active { transform: translateY(0); }
.player-thumb {
    width: 46px; height: 46px;
    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-info .title {
    font-size: 0.85rem; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-info .artist {
    font-size: 0.7rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-weight: 500;
}
.player-controls { display: flex; align-items: center; gap: 10px; }
.player-btn {
    background: none; border: none; color: var(--text);
    font-size: 1.1rem; cursor: pointer;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}
.player-btn:hover { background: rgba(0,212,170,0.15); color: var(--primary); }
.player-btn.play-pause {
    width: 42px; height: 42px;
    background: var(--primary);
    color: #000;
    font-size: 1rem;
}
.player-btn.play-pause:hover { background: var(--primary-light); }
.player-progress {
    flex: 2; min-width: 140px;
    display: flex; align-items: center; gap: 8px;
}
.player-progress input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #222;
    border-radius: 2px;
    outline: none;
}
.player-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 11px; height: 11px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}
.player-progress .time {
    font-size: 0.7rem; color: var(--text-muted);
    min-width: 36px; text-align: center;
    font-weight: 500;
}
.player-volume {
    display: flex; align-items: center; gap: 6px;
    width: 110px;
}
.player-volume input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: #222;
    border-radius: 2px;
    outline: none;
}
.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 9px; height: 9px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}
.player-extra { display: flex; align-items: center; gap: 8px; }
.player-extra a, .player-extra button {
    color: var(--text-muted); background: none; border: none;
    cursor: pointer; font-size: 0.95rem; transition: color 0.3s;
}
.player-extra a:hover, .player-extra button:hover { color: var(--primary); }

/* ===== NOT FOUND ===== */
.not-found { text-align: center; padding: 60px 20px; }
.not-found h1 { font-size: 5rem; color: var(--primary); margin-bottom: 15px; font-weight: 900; }
.not-found h2 { margin-bottom: 15px; font-weight: 700; }
.not-found p { color: var(--text-muted); margin-bottom: 25px; font-weight: 500; }

/* ===== PAGE CONTENT ===== */
.page-content .entry-content { line-height: 1.9; font-weight: 500; }
.page-content .entry-content p { margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .song-header { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; }
    .main-nav ul { justify-content: center; }
    .search-form input { width: 140px; }
    .player-volume { display: none; }
    .trpmix-player-bar { padding: 6px 10px; gap: 6px; }
    .player-progress { min-width: 70px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
    .singer-slide { width: 100px; }
    .singer-slide .card-thumb { width: 85px; height: 85px; }
    .slider-nav { display: none; }
}
