/*
Theme Name: Persian Beat
Author: Persian Beat
Description: A lightweight, mobile-responsive dark music theme for English and Farsi songs, remixes, podcasts, artists, genres, and top downloads.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: persian-beat
Tags: entertainment, music, dark, rtl-language-support, translation-ready, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root {
  --pb-bg: #090b10;
  --pb-surface: #11151d;
  --pb-surface-2: #181e28;
  --pb-border: #272e3b;
  --pb-text: #f5f7fb;
  --pb-muted: #aab3c2;
  --pb-accent: #8b5cf6;
  --pb-accent-2: #22d3ee;
  --pb-success: #34d399;
  --pb-danger: #fb7185;
  --pb-radius: 14px;
  --pb-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--pb-text);
  background: var(--pb-bg);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pb-accent-2); text-decoration: none; }
a:hover, a:focus { color: #fff; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pb-accent-2); outline-offset: 3px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important; top: 12px; inset-inline-start: 12px; z-index: 100000;
  width: auto; height: auto; padding: 10px 14px; clip: auto; background: #fff; color: #000;
}
.pb-container { width: min(calc(100% - 32px), var(--pb-container)); margin-inline: auto; }
.pb-main { min-height: 60vh; }

/* Header */
.pb-site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--pb-border); background: rgba(9, 11, 16, .98); }
.pb-header-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.pb-brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: #fff; font-size: 1.15rem; font-weight: 800; }
.pb-brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--pb-accent), #5b21b6); font-size: 1.2rem; }
.custom-logo { max-height: 46px; width: auto; }
.pb-nav { margin-inline-start: auto; }
.pb-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pb-nav a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--pb-muted); font-size: .88rem; font-weight: 700; }
.pb-nav a:hover, .pb-nav .current-menu-item > a, .pb-nav .current_page_item > a { color: #fff; background: var(--pb-surface-2); }
.pb-header-search { width: 190px; flex: 0 0 auto; }
.pb-search-form { display: flex; gap: 7px; }
.pb-search-field { min-width: 0; width: 100%; padding: 9px 11px; color: #fff; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 9px; }
.pb-search-submit { padding: 9px 11px; color: #fff; background: var(--pb-accent); border: 0; border-radius: 9px; font-weight: 800; }
.pb-menu-toggle { display: none; margin-inline-start: auto; padding: 8px 11px; color: #fff; background: var(--pb-surface-2); border: 1px solid var(--pb-border); border-radius: 8px; }

/* Hero */
.pb-hero { min-height: 320px; height: clamp(300px, 34vw, 350px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--pb-border); background: radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .32), transparent 35%), radial-gradient(circle at 85% 70%, rgba(34, 211, 238, .16), transparent 30%), #0c0f16; }
.pb-hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: center; gap: 42px; }
.pb-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--pb-accent-2); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pb-kicker::before { content: ""; width: 28px; height: 2px; background: var(--pb-accent-2); }
.pb-hero h1 { max-width: 720px; margin: 0 0 12px; font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.pb-hero p { max-width: 650px; margin: 0 0 22px; color: var(--pb-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.pb-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 16px; color: #fff; background: var(--pb-accent); border: 1px solid var(--pb-accent); border-radius: 10px; font-weight: 800; }
.pb-button:hover { color: #fff; background: #7c3aed; }
.pb-button--ghost { color: var(--pb-text); background: transparent; border-color: var(--pb-border); }
.pb-button--ghost:hover { background: var(--pb-surface-2); }
.pb-hero-disc { position: relative; width: 230px; aspect-ratio: 1; justify-self: center; border: 22px solid #171c26; border-radius: 50%; background: radial-gradient(circle, var(--pb-accent-2) 0 8%, #111 8.5% 18%, transparent 18.5%), repeating-radial-gradient(circle, #1d2430 0 3px, #11161e 4px 7px); box-shadow: 0 25px 60px rgba(0,0,0,.45); }
.pb-hero-disc::after { content: "PERSIAN BEAT"; position: absolute; inset: 33%; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pb-accent); font-size: .58rem; font-weight: 900; text-align: center; }

/* Sections and cards */
.pb-section { padding: 52px 0; }
.pb-section + .pb-section { padding-top: 8px; }
.pb-section--tinted { padding-block: 48px; background: #0c0f15; border-block: 1px solid rgba(39, 46, 59, .7); }
.pb-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.pb-section-heading h2, .pb-archive-header h1 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.2; }
.pb-section-heading p, .pb-archive-header p { margin: 5px 0 0; color: var(--pb-muted); }
.pb-see-all { flex: 0 0 auto; color: var(--pb-muted); font-size: .9rem; font-weight: 800; }
.pb-see-all:hover { color: #fff; }
.pb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pb-grid--artists { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pb-card { min-width: 0; overflow: hidden; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); }
.pb-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(135deg, #252c39, #141923); }
.pb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.pb-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.75), rgba(34,211,238,.35)); font-size: 2rem; font-weight: 900; }
.pb-card-type { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 8px; border-radius: 999px; color: #fff; background: rgba(9,11,16,.85); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.pb-card-body { padding: 13px; }
.pb-card-title { margin: 0 0 5px; font-size: 1rem; line-height: 1.35; }
.pb-card-title a { color: #fff; }
.pb-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--pb-muted); font-size: .78rem; }
.pb-card-downloads { color: var(--pb-success); }
.pb-artist-card { text-align: center; background: transparent; border: 0; }
.pb-artist-card .pb-card-media { border: 1px solid var(--pb-border); border-radius: 50%; }
.pb-artist-card .pb-card-body { padding-inline: 4px; }
.pb-genre-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pb-genre { min-height: 90px; display: flex; align-items: end; padding: 16px; color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.75), rgba(17,21,29,.9)); border: 1px solid #554080; border-radius: var(--pb-radius); font-weight: 900; }
.pb-genre:nth-child(3n+2) { background: linear-gradient(135deg, rgba(8,145,178,.7), rgba(17,21,29,.9)); border-color: #155e75; }
.pb-genre:nth-child(3n+3) { background: linear-gradient(135deg, rgba(190,24,93,.65), rgba(17,21,29,.9)); border-color: #831843; }
.pb-empty { padding: 26px; color: var(--pb-muted); background: var(--pb-surface); border: 1px dashed var(--pb-border); border-radius: var(--pb-radius); text-align: center; }

/* Archives */
.pb-content-area { padding: 42px 0 64px; }
.pb-archive-header { margin-bottom: 26px; }
.pb-results-count { color: var(--pb-muted); font-size: .9rem; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 40px; padding: 8px 12px; color: var(--pb-muted); background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 8px; text-align: center; }
.page-numbers.current { color: #fff; background: var(--pb-accent); border-color: var(--pb-accent); }

/* Singles */
.pb-single { padding: 44px 0 68px; }
.pb-single-layout { display: grid; grid-template-columns: minmax(260px, 390px) minmax(0, 1fr); gap: 42px; align-items: start; }
.pb-cover { overflow: hidden; aspect-ratio: 1; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 18px; }
.pb-cover img { width: 100%; height: 100%; object-fit: cover; }
.pb-single-type { color: var(--pb-accent-2); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pb-single h1 { margin: 7px 0 8px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.08; }
.pb-single-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; color: var(--pb-muted); font-size: .9rem; }
.pb-player { margin: 22px 0; padding: 16px; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: var(--pb-radius); }
.pb-player audio { display: block; width: 100%; }
.pb-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.pb-download-button { display: inline-flex; flex-direction: column; min-width: 150px; padding: 11px 15px; color: #fff; background: var(--pb-surface-2); border: 1px solid var(--pb-border); border-radius: 10px; font-weight: 800; }
.pb-download-button small { color: var(--pb-muted); font-weight: 400; }
.pb-download-button:hover { color: #fff; border-color: var(--pb-accent); }
.pb-entry-content { color: #d9deea; }
.pb-entry-content > *:first-child { margin-top: 0; }
.pb-entry-content h2, .pb-entry-content h3 { color: #fff; }
.pb-entry-content blockquote { margin-inline: 0; padding: 14px 20px; color: var(--pb-muted); border-inline-start: 4px solid var(--pb-accent); background: var(--pb-surface); }
.pb-entry-content table { width: 100%; border-collapse: collapse; }
.pb-entry-content th, .pb-entry-content td { padding: 9px; border: 1px solid var(--pb-border); }
.pb-taxonomy-links { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.pb-taxonomy-links a { padding: 5px 9px; color: var(--pb-muted); background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 999px; font-size: .78rem; }
.pb-artist-profile .pb-cover { border-radius: 50%; }

/* Generic content and comments */
.pb-page { max-width: 850px; margin: 0 auto; padding: 44px 0 68px; }
.pb-page h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.comments-area { margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--pb-border); }
.comment-list { padding-inline-start: 22px; }
.comment-body { margin-bottom: 18px; padding: 15px; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 10px; }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: 10px; color: #fff; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 8px; }

/* Footer */
.pb-site-footer { padding: 34px 0; color: var(--pb-muted); background: #07090d; border-top: 1px solid var(--pb-border); }
.pb-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pb-footer-nav ul { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; list-style: none; }
.pb-footer-nav a { color: var(--pb-muted); font-size: .88rem; }

@media (max-width: 1020px) {
  .pb-has-js .pb-menu-toggle { display: inline-flex; }
  .pb-nav { position: absolute; top: 72px; inset-inline: 16px; margin: 0; padding: 12px; background: var(--pb-surface); border: 1px solid var(--pb-border); border-radius: 12px; }
  .pb-has-js .pb-nav { display: none; }
  .pb-has-js .pb-nav.is-open { display: block; }
  .pb-nav ul { align-items: stretch; flex-direction: column; }
  .pb-header-search { width: min(220px, 34vw); }
  .pb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-grid--artists { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pb-genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pb-header-inner { min-height: 64px; }
  .pb-header-search { display: none; }
  .pb-nav { top: 64px; }
  .pb-hero { height: 320px; min-height: 320px; }
  .pb-hero-inner { grid-template-columns: 1fr; }
  .pb-hero-disc { display: none; }
  .pb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pb-grid--artists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-single-layout { grid-template-columns: 1fr; gap: 25px; }
  .pb-cover { max-width: 430px; width: 100%; }
  .pb-footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 440px) {
  .pb-container { width: min(calc(100% - 22px), var(--pb-container)); }
  .pb-brand-text { display: none; }
  .pb-hero { min-height: 310px; height: 310px; }
  .pb-hero h1 { font-size: 2rem; }
  .pb-section { padding-block: 40px; }
  .pb-grid--artists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
