/*
Theme Name: The Rise
Theme URI: https://yoursite.com/the-rise
Author: Your Name
Author URI: https://yoursite.com
Description: A bold, modern music artist WordPress theme built for Elementor. Perfect for musicians, bands, DJs, and music artists. Features a hero slider, music player bar, countdown timer, gallery grid, merch section, and more.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-rise
Tags: music, artist, band, elementor, one-page, dark, modern, entertainment, portfolio, full-width-template

*/

/* ========================================
   THE RISE - THEME STYLES
   ======================================== */

:root {
  --tr-teal:        #00e5a0;
  --tr-teal-dark:   #00c488;
  --tr-magenta:     #c0174a;
  --tr-magenta-dark:#a01040;
  --tr-dark:        #111111;
  --tr-darker:      #0a0a0a;
  --tr-gray:        #888888;
  --tr-light-gray:  #f0f0f0;
  --tr-white:       #ffffff;
  --tr-font-head:   'Montserrat', sans-serif;
  --tr-font-body:   'Open Sans', sans-serif;
}

/* Reset & Base
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--tr-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tr-dark);
  background: var(--tr-white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .3s ease; }

ul { list-style: none; }

/* Typography
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tr-font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Layout
-------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-padding {
  padding: 80px 0;
}

/* ========================================
   SITE HEADER & NAVIGATION
   ======================================== */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .4s ease, padding .4s ease;
}

#site-header.scrolled {
  background: rgba(10,10,10,0.96);
  padding: 12px 40px;
  backdrop-filter: blur(10px);
}

.site-logo {
  font-family: var(--tr-font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--tr-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-logo span { color: var(--tr-teal); }

/* Primary Navigation */
#primary-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

#primary-nav ul li a {
  font-family: var(--tr-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 4px;
}

#primary-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--tr-teal);
  transition: width .3s ease;
}

#primary-nav ul li a:hover { color: var(--tr-white); }
#primary-nav ul li a:hover::after { width: 100%; }

.header-buy-btn {
  background: var(--tr-teal);
  color: var(--tr-dark) !important;
  padding: 8px 20px;
  font-size: 11px !important;
  font-weight: 800 !important;
  border-radius: 2px;
  transition: background .3s ease !important;
}
.header-buy-btn:hover { background: var(--tr-teal-dark) !important; }
.header-buy-btn::after { display: none !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px; height: 2px;
  background: var(--tr-white);
  transition: all .3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */

#hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--tr-teal);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: rgba(0,0,0,0.08);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-artist-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 60px 80px;
  max-width: 560px;
}

.hero-title {
  font-family: var(--tr-font-head);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.92;
  color: var(--tr-white);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title-line2 {
  display: block;
  margin-left: 30px;
}

.hero-subtitle {
  font-family: var(--tr-font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 340px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--tr-white); font-weight: 700; }

.hero-divider {
  width: 40px; height: 3px;
  background: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

/* Slider Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  color: var(--tr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all .3s ease;
  font-size: 16px;
}
.hero-arrow:hover { border-color: var(--tr-white); background: rgba(255,255,255,0.1); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* CTA Button */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--tr-white);
  font-family: var(--tr-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-primary:hover {
  background: var(--tr-white);
  color: var(--tr-teal);
  border-color: var(--tr-white);
}

.btn-magenta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--tr-magenta);
  border: 2px solid var(--tr-magenta);
  color: var(--tr-white);
  font-family: var(--tr-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-magenta:hover { background: var(--tr-magenta-dark); border-color: var(--tr-magenta-dark); }

.btn-outline-light {
  display: inline-block;
  padding: 11px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--tr-white);
  font-family: var(--tr-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s ease;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: var(--tr-white); }

/* ========================================
   MUSIC PLAYER BAR
   ======================================== */

#music-player-bar {
  background: #1a1a1a;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.player-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  cursor: pointer;
  transition: color .3s;
  padding: 0;
  line-height: 1;
}
.player-btn:hover { color: var(--tr-white); }
.player-btn.play-btn {
  color: var(--tr-white);
  font-size: 18px;
}

.player-track-thumb {
  width: 42px; height: 42px;
  object-fit: cover;
  border-radius: 2px;
}

.player-track-info { flex: 1; }
.player-track-name {
  font-family: var(--tr-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-white);
}
.player-track-time {
  font-size: 11px;
  color: var(--tr-gray);
}

.player-progress {
  flex: 2;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.player-progress-fill {
  height: 100%;
  width: 35%;
  background: var(--tr-teal);
  border-radius: 2px;
}

/* ========================================
   LATEST SINGLES
   ======================================== */

#latest-singles {
  background: #2a2a2a;
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-family: var(--tr-font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tr-white);
  margin-bottom: 50px;
}

.section-title.dark { color: var(--tr-dark); }

.singles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2px;
  margin-bottom: 50px;
}

.single-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #333;
  cursor: pointer;
}

.single-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.single-card:hover img { transform: scale(1.08); }

.single-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,229,160,0.0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.single-card:hover .single-card-overlay { background: rgba(0,229,160,0.75); }

.single-card-play {
  width: 54px; height: 54px;
  border: 2px solid var(--tr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tr-white);
  font-size: 18px;
  opacity: 0;
  transform: scale(0.7);
  transition: all .3s ease;
}
.single-card:hover .single-card-play {
  opacity: 1;
  transform: scale(1);
}

.single-card-info {
  margin-top: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity .3s ease .1s;
}
.single-card:hover .single-card-info { opacity: 1; }
.single-card-info h4 {
  font-family: var(--tr-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--tr-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   SHOP MUSIC SECTION
   ======================================== */

#shop-music {
  background: var(--tr-magenta);
  padding: 55px 0;
  text-align: center;
}

#shop-music .section-title {
  color: var(--tr-white);
  margin-bottom: 28px;
}

.shop-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--tr-dark);
  color: var(--tr-white);
  padding: 10px 22px;
  border-radius: 3px;
  font-family: var(--tr-font-head);
  font-size: 13px;
  font-weight: 700;
  transition: background .3s;
  cursor: pointer;
}
.shop-badge:hover { background: #222; }
.shop-badge svg { width: 18px; height: 18px; fill: currentColor; }

/* ========================================
   SHOW YOUR LOVE / MERCH
   ======================================== */

#merch-section {
  background: var(--tr-teal);
  padding: 70px 0;
  text-align: center;
}

#merch-section .section-title {
  color: var(--tr-white);
  margin-bottom: 30px;
}

/* ========================================
   EVENTS / COUNTDOWN
   ======================================== */

#events-section {
  position: relative;
  background: var(--tr-darker);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.events-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  filter: grayscale(100%);
}

.events-content { position: relative; z-index: 2; }

.events-label {
  font-family: var(--tr-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.events-location {
  font-family: var(--tr-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--tr-magenta);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.events-divider {
  width: 40px; height: 2px;
  background: var(--tr-magenta);
  margin: 0 auto 40px;
}

/* Countdown Timer */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.countdown-item { text-align: center; }

.countdown-number {
  font-family: var(--tr-font-head);
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 900;
  color: var(--tr-white);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}

.countdown-label {
  font-family: var(--tr-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 8px;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

#gallery-section {
  background: var(--tr-light-gray);
  padding: 80px 0;
}

#gallery-section .section-title { margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 6px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #ddd;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,229,160,0);
  transition: background .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,229,160,0.6); }

.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-load-more {
  text-align: center;
  margin-top: 40px;
}

/* ========================================
   SITE FOOTER
   ======================================== */

#site-footer {
  background: var(--tr-darker);
  padding: 50px 0 25px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .site-logo { font-size: 18px; margin-bottom: 14px; }
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 240px;
}

.footer-heading {
  font-family: var(--tr-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tr-teal);
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 8px; }
.footer-links li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color .3s;
}
.footer-links li a:hover { color: var(--tr-white); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.social-icon {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: all .3s;
  border-radius: 2px;
}
.social-icon:hover { border-color: var(--tr-teal); color: var(--tr-teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-credit a {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color .3s;
}
.footer-credit a:hover { color: var(--tr-teal); }

/* ========================================
   ELEMENTOR WIDGET OVERRIDES
   ======================================== */

/* Ensure Elementor sections extend full width */
.elementor-section.elementor-section-full_width .elementor-container {
  max-width: 100%;
}

/* The Rise Elementor Widget: Hero */
.tr-hero-widget { position: relative; overflow: hidden; }
.tr-hero-widget .elementor-widget-container { padding: 0; }

/* The Rise Elementor Widget: Countdown */
.tr-countdown-widget .countdown-timer { padding: 0 20px; }

/* The Rise Elementor Widget: Singles Grid */
.tr-singles-widget .singles-grid { margin: 0; }

/* The Rise Elementor Widget: Music Player */
.tr-player-widget { position: sticky; bottom: 0; z-index: 990; }

/* ========================================
   PAGE TEMPLATES
   ======================================== */

/* Full-width page template */
.page-template-full-width .site-content { padding: 0; }
.page-template-full-width #primary { width: 100%; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
  #primary-nav { display: none; }
  .menu-toggle { display: flex; }

  #primary-nav.active {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--tr-darker);
    z-index: 998;
    align-items: center;
    justify-content: center;
  }
  #primary-nav.active ul {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  #primary-nav.active ul li a { font-size: 20px; }

  .hero-content { padding: 100px 30px 60px; }
  .hero-artist-image { opacity: 0.35; width: 100%; }
  .hero-title { font-size: 60px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 1; }

  .countdown-timer { gap: 30px; }
}

@media (max-width: 600px) {
  #site-header { padding: 14px 20px; }
  .hero-content { padding: 90px 20px 50px; }
  .hero-title { font-size: 48px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .countdown-timer { gap: 20px; }
  .countdown-number { font-size: 40px; }
}
