/*
Theme Name: Pro Music Songs
Theme URI: https://promusicsongs.com/
Author: Pro Music Songs
Author URI: https://promusicsongs.com/
Description: A fast, responsive music discovery theme for Urdu and English songs, with a song library, contact form, accessible navigation, and lightweight SEO metadata and schema.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 7.0
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: pro-music-songs
Tags: blog, entertainment, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --pms-bg: #0a0a0d;
  --pms-surface: #141419;
  --pms-surface-2: #1c1c23;
  --pms-text: #f7f4ec;
  --pms-muted: #b4b0a8;
  --pms-accent: #f0b83f;
  --pms-accent-dark: #bf7d00;
  --pms-border: rgba(255,255,255,.11);
  --pms-success: #7be2a3;
  --pms-danger: #ff8a8a;
  --pms-shadow: 0 18px 50px rgba(0,0,0,.28);
  --pms-radius: 18px;
  --pms-content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pms-text);
  background: var(--pms-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pms-accent); text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: #ffd375; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal!important;
}
.screen-reader-text:focus, .skip-link:focus {
  clip: auto!important; clip-path: none; height: auto; width: auto; padding: .8rem 1rem;
  left: 1rem; top: 1rem; z-index: 100000; color: #111; background: #fff; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--pms-accent); outline-offset: 3px; }

.container { width: min(calc(100% - 2rem), var(--pms-content)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 800px); margin-inline: auto; }
.site-main { min-height: 58vh; }
.section { padding: clamp(3.5rem, 7vw, 7rem) 0; }
.section--tight { padding: 3rem 0; }
.section--surface { background: var(--pms-surface); }
.eyebrow { margin: 0 0 .5rem; color: var(--pms-accent); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-title, .entry-title { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
.section-title { font-size: clamp(2rem, 5vw, 4rem); }
.section-intro { color: var(--pms-muted); max-width: 700px; margin: 1rem 0 0; font-size: 1.08rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; margin-bottom: 2rem; }
.muted { color: var(--pms-muted); }

.site-header {
  position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--pms-border);
  background: rgba(10,10,13,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-branding { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.custom-logo { max-height: 46px; width: auto; }
.site-title { margin: 0; color: #fff; font-size: 1.18rem; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: .15rem 0 0; color: var(--pms-muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: var(--pms-accent); color: #111; font-weight: 950; box-shadow: 0 0 0 6px rgba(240,184,63,.1); }

.primary-menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-menu a { display: block; color: #f7f4ec; text-decoration: none; padding: .6rem .78rem; border-radius: 10px; font-weight: 720; font-size: .93rem; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: #111; background: var(--pms-accent); }
.menu-toggle { display: none; color: #fff; border: 1px solid var(--pms-border); background: var(--pms-surface); border-radius: 10px; padding: .62rem .8rem; }

.hero { position: relative; overflow: hidden; padding: clamp(5rem, 11vw, 10rem) 0; border-bottom: 1px solid var(--pms-border); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 32%, rgba(240,184,63,.24), transparent 28%), radial-gradient(circle at 15% 75%, rgba(153,79,255,.16), transparent 30%), linear-gradient(120deg, #09090c, #17131c 62%, #0c0c11); }
.hero::after { content: "♪"; position: absolute; right: 8%; top: 2%; color: rgba(255,255,255,.035); font-size: clamp(18rem, 40vw, 38rem); font-weight: 900; line-height: 1; transform: rotate(-10deg); }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { margin: 0; font-size: clamp(3.1rem, 9vw, 7.7rem); line-height: .91; letter-spacing: -.07em; max-width: 900px; }
.hero h1 span { color: var(--pms-accent); }
.hero-text { margin: 1.6rem 0 0; color: #d1cdc5; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 11px; background: var(--pms-accent); color: #111; font-weight: 850; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { color: #111; background: #ffd375; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(240,184,63,.22); }
.button--ghost { color: #fff; border-color: var(--pms-border); background: rgba(255,255,255,.055); }
.button--ghost:hover { color: #fff; background: rgba(255,255,255,.11); }

.genre-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.genre-card { position: relative; min-height: 250px; overflow: hidden; display: flex; flex-direction: column; justify-content: end; padding: 2rem; border-radius: var(--pms-radius); border: 1px solid var(--pms-border); color: #fff; text-decoration: none; background: linear-gradient(145deg, #25202f, #15151a); box-shadow: var(--pms-shadow); }
.genre-card::before { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -50px; top: -60px; background: var(--pms-accent); opacity: .16; }
.genre-card--urdu { background: linear-gradient(145deg, #211c2e, #111118); }
.genre-card--english { background: linear-gradient(145deg, #292016, #111115); }
.genre-card:hover { color: #fff; transform: translateY(-3px); }
.genre-card small { color: var(--pms-accent); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.genre-card h3 { position: relative; margin: .4rem 0 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.genre-card p { position: relative; margin: .7rem 0 0; color: #ccc5bd; }

.song-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem; }
.song-card { overflow: hidden; border: 1px solid var(--pms-border); border-radius: 15px; background: var(--pms-surface); transition: transform .18s ease, border-color .18s ease; }
.song-card:hover { transform: translateY(-4px); border-color: rgba(240,184,63,.5); }
.song-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--pms-surface-2); }
.song-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.song-card:hover .song-card__media img { transform: scale(1.035); }
.song-card__badge { position: absolute; left: .75rem; top: .75rem; padding: .28rem .55rem; border-radius: 999px; background: rgba(10,10,13,.82); color: var(--pms-accent); font-size: .72rem; font-weight: 800; backdrop-filter: blur(8px); }
.song-card__body { padding: 1rem; }
.song-card__title { margin: 0; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.015em; }
.song-card__title a { color: #fff; text-decoration: none; }
.song-card__title a:hover { color: var(--pms-accent); }
.song-card__artist { margin: .35rem 0 0; color: var(--pms-muted); font-size: .9rem; }
.song-card__meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .75rem; color: #8f8b85; font-size: .76rem; }

.page-hero { padding: clamp(3.5rem,8vw,7rem) 0 3rem; background: linear-gradient(180deg, #17131c, var(--pms-bg)); border-bottom: 1px solid var(--pms-border); }
.page-hero .entry-title { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.breadcrumbs { color: var(--pms-muted); font-size: .86rem; margin-bottom: 1rem; }
.breadcrumbs a { color: #ded9d0; text-decoration: none; }
.breadcrumbs span { margin: 0 .45rem; opacity: .55; }

.entry-content { color: #d8d4cc; font-size: 1.05rem; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: 1080px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; line-height: 1.2; margin-top: 2em; letter-spacing: -.025em; }
.entry-content h2 { font-size: clamp(1.8rem,4vw,2.6rem); }
.entry-content blockquote { border-left: 4px solid var(--pms-accent); margin: 2rem auto; padding: .25rem 0 .25rem 1.4rem; color: #fff; font-size: 1.2rem; }
.entry-content code { background: var(--pms-surface-2); padding: .15em .4em; border-radius: 5px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--pms-border); padding: .7rem; text-align: left; }

.single-song { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0,1fr); gap: clamp(2rem,5vw,5rem); align-items: start; }
.single-song__cover { overflow: hidden; border-radius: var(--pms-radius); border: 1px solid var(--pms-border); box-shadow: var(--pms-shadow); position: sticky; top: 110px; }
.single-song__cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.song-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; margin: 1.5rem 0; }
.song-fact { padding: .85rem 1rem; border: 1px solid var(--pms-border); border-radius: 11px; background: var(--pms-surface); }
.song-fact strong { display: block; color: var(--pms-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }
.song-fact span { display: block; margin-top: .15rem; color: #fff; }

.notice { padding: .9rem 1rem; margin: 0 0 1.4rem; border-radius: 10px; border: 1px solid var(--pms-border); background: var(--pms-surface); }
.notice--success { color: var(--pms-success); border-color: rgba(123,226,163,.35); }
.notice--error { color: var(--pms-danger); border-color: rgba(255,138,138,.35); }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,6vw,5rem); }
.contact-card { padding: 1.4rem; border: 1px solid var(--pms-border); border-radius: var(--pms-radius); background: var(--pms-surface); }
.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.form-field label { display: block; margin-bottom: .35rem; color: #fff; font-weight: 750; }
.form-field input, .form-field textarea { width: 100%; color: #fff; background: #0e0e12; border: 1px solid var(--pms-border); border-radius: 9px; padding: .78rem .85rem; }
.form-field textarea { min-height: 170px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--pms-accent); outline: 2px solid rgba(240,184,63,.2); }
.website-field { position: absolute!important; left: -9999px!important; }

.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: .4rem; border: 1px solid var(--pms-border); border-radius: 9px; color: #fff; text-decoration: none; background: var(--pms-surface); }
.page-numbers.current, .page-numbers:hover { color: #111; background: var(--pms-accent); }
.empty-state { text-align: center; padding: 3.5rem 1.25rem; border: 1px dashed rgba(255,255,255,.22); border-radius: var(--pms-radius); background: rgba(255,255,255,.025); }
.empty-state h2 { margin: 0; }
.empty-state p { color: var(--pms-muted); }

.search-form { display: flex; gap: .5rem; max-width: 620px; }
.search-field { min-width: 0; flex: 1; color: #fff; background: var(--pms-surface); border: 1px solid var(--pms-border); border-radius: 9px; padding: .75rem .85rem; }

.site-footer { border-top: 1px solid var(--pms-border); background: #070709; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-title { margin: 0 0 .7rem; font-size: 1.4rem; }
.footer-heading { margin: 0 0 .8rem; font-size: .82rem; color: var(--pms-accent); letter-spacing: .13em; text-transform: uppercase; }
.footer-copy { color: var(--pms-muted); max-width: 430px; }
.footer-menu, .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-links li { margin: .4rem 0; }
.footer-menu a, .footer-links a { color: #d7d2ca; text-decoration: none; }
.footer-menu a:hover, .footer-links a:hover { color: var(--pms-accent); }
.site-info { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: #85817b; font-size: .83rem; border-top: 1px solid var(--pms-border); }

@media (max-width: 980px) {
  .song-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .menu-toggle { display: inline-flex; }
  .main-navigation { position: absolute; left: 0; right: 0; top: 100%; padding: .75rem 1rem 1rem; border-bottom: 1px solid var(--pms-border); background: #0a0a0d; display: none; }
  .main-navigation.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: stretch; width: min(100%, var(--pms-content)); margin: auto; }
  .primary-menu a { padding: .78rem; }
  .single-song { grid-template-columns: 330px minmax(0,1fr); }
}
@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .site-description { display: none; }
  .genre-grid, .contact-layout, .footer-grid, .single-song { grid-template-columns: 1fr; }
  .song-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { align-items: start; flex-direction: column; }
  .single-song__cover { position: static; max-width: 430px; }
  .footer-grid { gap: 2rem; }
  .site-info { flex-direction: column; }
}
@media (max-width: 480px) {
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--pms-content)); }
  .header-inner { min-height: 68px; gap: .75rem; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .site-title { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.75rem, 18vw, 4.8rem); }
  .hero-actions, .search-form { flex-direction: column; align-items: stretch; }
  .song-grid, .song-facts, .form-row { grid-template-columns: 1fr; }
  .song-card { display: grid; grid-template-columns: 118px minmax(0,1fr); }
  .song-card__media { height: 100%; aspect-ratio: auto; min-height: 140px; }
  .song-card__meta { flex-direction: column; gap: .15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}
.pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.pagination ul.page-numbers li { margin: 0; }
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-top: 1px solid var(--pms-border); }
.comment-author { display: flex; align-items: center; gap: .6rem; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--pms-muted); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; color: #fff; background: #0e0e12; border: 1px solid var(--pms-border); border-radius: 9px; padding: .78rem .85rem; }
.comment-form .submit { display: inline-flex; min-height: 48px; padding: .75rem 1.15rem; border: 0; border-radius: 11px; background: var(--pms-accent); color: #111; font-weight: 850; }
