/*
Theme Name: Artist Dark
Theme URI: https://example.com
Author: Custom
Author URI: https://example.com
Description: قالب دارک مود موسیقی/هنرمند با بخش موزیک، ویدیو، بنر تمام‌صفحه و خبرنامه. طراحی شده با الهام از سایت‌های رسمی هنرمندان (مثل 6lack.com).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: artist-dark
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --bg: #0b0b0b;
  --bg-alt: #131313;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --accent: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --max-width: 1280px;
  --header-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title a.view-all {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

.section-title a.view-all:hover {
  color: var(--text);
  border-color: var(--text);
}

section.block {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0));
  transition: background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-branding img {
  max-height: 42px;
  width: auto;
}

.site-branding .site-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3em;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-navigation ul {
  display: flex;
  gap: 32px;
}

.main-navigation a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.main-navigation a:hover {
  opacity: 1;
}

.main-navigation li.menu-item-has-children {
  position: relative;
}

.main-navigation .sub-menu {
  position: absolute;
  top: 28px;
  left: 0;
  min-width: 180px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.main-navigation li.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu a {
  display: block;
  padding: 8px 20px;
}

.header-cta {
  border: 1px solid var(--text);
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  background: var(--text);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* ==========================================================================
   Fixed Social Sidebar (like 6lack.com)
   ========================================================================== */
.social-sidebar {
  position: fixed;
  bottom: 0;
  left: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
}

.social-sidebar::after {
  content: '';
  width: 1px;
  height: 60px;
  background: var(--border);
}

.social-sidebar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-sidebar a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-sidebar svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (max-width: 900px) {
  .social-sidebar { display: none; }
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: #000;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.presale-badge {
  display: inline-block;
  padding: 6px 18px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 28px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* Countdown */
.presale-countdown {
  margin: 0 auto 36px;
}

.countdown-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.countdown-units {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-units .unit {
  min-width: 74px;
  padding: 14px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.countdown-units .value {
  display: block;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-units .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.presale-countdown.is-expired .countdown-units {
  display: none;
}

/* CTA buttons */
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.hero-cta--primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}

.hero-cta--primary:hover {
  opacity: 0.85;
}

.hero-cta--secondary {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.hero-cta--secondary:hover {
  background: #fff;
  color: #000;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ==========================================================================
   Music Grid
   ========================================================================== */
.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.music-card {
  text-align: center;
}

.music-card .cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 16px;
}

.music-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.music-card:hover .cover img {
  transform: scale(1.06);
}

.music-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}

.music-card .stream-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
}

.music-card .stream-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ==========================================================================
   Video Grid
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.video-card {
  position: relative;
}

.video-card .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}

.video-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .thumb img {
  transform: scale(1.06);
}

.video-card .play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.6);
}

.video-card .play-icon::before {
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.video-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 0;
  line-height: 1.4;
}

/* Video lightbox modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.video-modal.is-open {
  display: flex;
}

.video-modal .modal-frame {
  width: min(90vw, 960px);
  aspect-ratio: 16/9;
}

.video-modal .modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal .modal-close {
  position: absolute;
  top: 28px;
  right: 32px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

/* ==========================================================================
   Newsletter / Subscribe
   ========================================================================== */
.newsletter {
  text-align: center;
  background: var(--bg-alt);
}

.newsletter h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 18px;
  color: var(--text);
  font-size: 14px;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
}

.newsletter-form button {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.newsletter-note {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 48px 0;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  opacity: 0.8;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-legal a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .main-navigation { display: none; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  section.block { padding: 60px 0; }
  .container { padding: 0 20px; }
  .countdown-units .unit { min-width: 62px; padding: 10px 6px; }
  .hero-cta { padding: 12px 28px; }
}
