/*
Theme Name: SFA Music Artist Theme
Theme URI: https://yourwebsite.com
Author: SFA
Author URI: https://yourwebsite.com
Description: A professional music artist theme for SFA featuring a rolling gallery homepage, Spotify integration, events calendar with auto-expiry, music publishing contacts, and full band history timeline. Built with a dark luxury aesthetic using gold accents.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
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: sfa-theme
Tags: music, dark, one-column, custom-header, custom-menu, featured-images, full-width-template

/*
==============================================================
HOW TO INSTALL THIS THEME IN WORDPRESS
==============================================================

STEP 1: ZIP THE FOLDER
  - Find the "sfa-theme" folder on your computer
  - Right-click it → "Compress" (Mac) or "Send to > Zip" (Windows)
  - This creates "sfa-theme.zip"

STEP 2: UPLOAD TO WORDPRESS
  - Log into your WordPress admin panel (yoursite.com/wp-admin)
  - Go to: Appearance → Themes
  - Click "Add New Theme" button
  - Click "Upload Theme"
  - Click "Choose File" and select your sfa-theme.zip
  - Click "Install Now"
  - Click "Activate"

STEP 3: CREATE YOUR PAGES
  After activating, go to Pages → Add New and create these pages:
  - "Home"        → Template: Homepage
  - "About Us"    → Template: About Us
  - "Music"       → Template: Music
  - "Events"      → Template: Events
  - "Publishing"  → Template: Music Publishing
  - "SFA History" → Template: SFA History

STEP 4: SET UP MENUS
  - Go to Appearance → Menus
  - Create a new menu called "Main Menu"
  - Add all 6 pages to it
  - Set location: "Primary Menu"
  - Save

STEP 5: SET HOMEPAGE
  - Go to Settings → Reading
  - Select "A static page"
  - Homepage: select "Home"
  - Save Changes

STEP 6: CUSTOMISE YOUR CONTENT
  - Go to Appearance → Customize to edit site title, logo, colours
  - Edit each page to add your real text and images
  - Look for "CUSTOMISE:" comments in the template files for guidance

==============================================================
*/

/* ============================================================
   CSS VARIABLES - Change these to update colours site-wide
   ============================================================ */
:root {
  --black:      #0a0a0a;
  --deep:       #111111;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --white:      #f5f0e8;
  --grey:       #666666;
  --border:     #2a2a2a;

  --font-display: 'Bebas Neue', cursive;
  --font-body:    'Crimson Text', serif;
  --font-mono:    'Space Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

p {
  color: var(--white);
  opacity: 0.85;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-navigation {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding .site-title a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-decoration: none;
}

.site-branding .site-title a:hover { color: var(--gold-light); }

/* WordPress automatically outputs nav menus as <ul> inside <nav> */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

.main-navigation ul li a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: block;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

/* Hide dropdown sub-menus (not needed for this theme) */
.main-navigation ul ul { display: none; }

/* Mobile hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#page {
  padding-top: 70px; /* Offset for fixed nav */
  min-height: 100vh;
}

/* ============================================================
   HERO (Homepage)
   ============================================================ */
.hero {
  position: relative;
  height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.gallery-slide.active { opacity: 1; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.5) 50%,
    rgba(10,10,10,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeUp 1s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 14rem);
  line-height: 0.9;
  letter-spacing: 8px;
  color: var(--white);
  animation: fadeUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-title .gold { color: var(--gold); }

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--white);
  opacity: 0;
  margin-top: 20px;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero-player {
  margin-top: 50px;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.latest-release-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.spotify-compact {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

.spotify-compact iframe,
.music-player-full iframe {
  display: block;
  border: none;
  border-radius: 12px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: bounce 2s ease-in-out infinite;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  height: 60vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.9) 0%,
    rgba(10,10,10,0.3) 100%
  );
}

.about-hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.about-content { max-width: 900px; margin: 0 auto; padding: 80px 40px; }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.bio-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 10px 10px 0 var(--gold);
  filter: grayscale(20%);
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 40px;
  color: var(--white);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 60px 0;
}

/* ============================================================
   MUSIC PAGE
   ============================================================ */
.music-player-full {
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.music-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.release-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.release-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

.release-info { padding: 20px; }

.release-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 5px;
}

.release-info span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 2px;
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.events-list { margin-top: 50px; }

.event-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.event-item:hover { padding-left: 10px; }

.event-date {
  text-align: center;
  background: var(--deep);
  border: 1px solid var(--border);
  padding: 15px;
  border-radius: 2px;
  transition: border-color 0.3s;
}

.event-item:hover .event-date { border-color: var(--gold); }

.event-day {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.event-month {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--grey);
  text-transform: uppercase;
}

.event-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 5px;
}

.event-venue {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 1px;
}

.btn-ticket {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.btn-ticket:hover { background: var(--gold-light); color: var(--black); }

.no-events {
  text-align: center;
  padding: 80px 40px;
  color: var(--grey);
  font-style: italic;
}

/* ============================================================
   PUBLISHING PAGE
   ============================================================ */
.publishers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.publisher-card {
  background: var(--deep);
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 2px;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.publisher-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.publisher-card:hover::before { transform: scaleY(1); }
.publisher-card:hover { border-color: rgba(201, 168, 76, 0.4); }

.publisher-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 5px;
}

.publisher-territory {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-list li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--grey);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-list li strong {
  color: var(--gold);
  min-width: 55px;
  letter-spacing: 1px;
}

/* ============================================================
   HISTORY PAGE TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 8px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 5px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 15px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--grey);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--gold); }

.site-info {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--grey);
  letter-spacing: 1px;
}

/* ============================================================
   WORDPRESS EDITOR STYLES (for the block editor)
   ============================================================ */
.wp-block-image img { border-radius: 4px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 768px) {
  #site-navigation { padding: 0 20px; }

  .menu-toggle { display: flex; }

  .main-navigation {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
  }

  .main-navigation.toggled { display: block; }

  .main-navigation ul {
    flex-direction: column;
    padding: 20px;
    gap: 5px;
  }

  .hero-title { font-size: 4rem; }

  .bio-grid { grid-template-columns: 1fr; }

  .event-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }

  .btn-ticket { grid-column: 2; }

  .section { padding: 60px 20px; }

  .about-content { padding: 60px 20px; }
}
