/*
Theme Name: ANAGA Trails Beats
Theme URI: https://anagatrails.com
Author: ANAGA
Author URI: https://anagatrails.com
Description: Premium beat store with modern design
Version: 2.1
License: GNU GPL v3
Text Domain: anaga-trails
*/

/* =============== CORE VARIABLES =============== */
:root {
  --primary: #8a2be2;
  --primary-dark: #6a11cb;
  --secondary: #2575fc;
  --accent: #00f2fe;
  --dark: #0d0d15;
  --darker: #07070e;
  --darkest: #020204;
  --light: #f8f9fa;
  --gray: #1a1a24;
  --gray-light: #2a2a3a;
  --success: #4BB543;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Roboto Mono', monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.3);
  --blur: blur(12px);
}

/* =============== BASE =============== */
* {
  margin: 0; 
  padding: 0; 
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* =============== TYPOGRAPHY =============== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: var(--space-md);
}

.logo-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============== LAYOUT =============== */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

/* =============== HEADER =============== */
.site-header {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 80px;
  background: rgba(10, 8, 20, 0.96);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.site-branding {
  font-size: 1.8rem;
  font-weight: 800;
}

.site-branding a {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.main-navigation {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--light);
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link i {
  font-size: 1.1rem;
}

.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: var(--space-xs);
}

/* =============== MAIN CONTENT =============== */
.main-content {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
  min-height: 80vh;
}

.store-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.store-header p {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* =============== BEAT GRID =============== */
.beat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* =============== BEAT CARD =============== */
.beat-card {
  background: var(--gray);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}

.beat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(138, 43, 226, 0.3);
}

.beat-thumbnail {
  height: 240px;
  background: linear-gradient(135deg, var(--darker), var(--dark));
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.beat-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.beat-thumbnail i {
  font-size: 3rem;
  color: rgba(255,255,255,0.1);
  transition: var(--transition);
  position: absolute;
  z-index: 1;
}

.beat-card:hover .beat-thumbnail i {
  transform: scale(1.1);
  color: rgba(255,255,255,0.2);
}

.beat-info {
  padding: var(--space-lg);
}

.beat-title {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.beat-meta {
  display: flex;
  gap: var(--space-md);
  color: var(--light);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.beat-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.beat-meta i {
  font-size: 0.8rem;
}

.beat-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: var(--space-md) 0;
}

/* =============== AUDIO PLAYER =============== */
.beat-player {
  width: 100%;
  margin: var(--space-md) 0;
  background: var(--darkest);
  border-radius: 8px;
  padding: var(--space-sm);
}

.beat-player audio {
  width: 100%;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.add-to-cart {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--space-sm);
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
}

.add-to-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.add-to-cart.added {
  background: var(--success);
}

/* =============== FILTERS =============== */
.beat-filters {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-group label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.filter-group select {
  padding: var(--space-sm);
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: white;
  min-width: 180px;
}

/* =============== FOOTER =============== */
.site-footer {
  background: var(--darker);
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.site-info {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* =============== LOADING STATES =============== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.05),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 992px) {
  .beat-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-navigation {
    gap: var(--space-md);
  }
  
  .beat-thumbnail {
    height: 200px;
  }
  
  .beat-filters {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0 var(--space-md);
  }
  
  .site-branding {
    font-size: 1.5rem;
  }
  
  .main-navigation {
    gap: var(--space-md);
  }
  
  .beat-grid {
    grid-template-columns: 1fr;
  }
}