/* Professional Music Site Styles */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #ff5500;
  --primary-hover: #ff3300;
  --primary-dark: #cc4400;
  --secondary-color: #ff6b35;
  --background-primary: #0a0a0a;
  --background-secondary: #111111;
  --background-tertiary: #1a1a1a;
  --background-overlay: rgba(0, 0, 0, 0.8);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: #333333;
  --border-hover: #444444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 85, 0, 0.2);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Prevent scrolling on contact page */
body.contact-page {
  overflow: hidden !important;
  height: 100vh !important;
  position: fixed !important;
  width: 100% !important;
}

html.contact-page-html {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 85, 0, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 85, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Navbar Styles */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 85, 0, 0.2);
  box-shadow: var(--shadow-md);
  padding: 1rem 2rem;
  transition: all var(--transition-normal);
  z-index: 1030;
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-shadow: 0 0 20px rgba(255, 85, 0, 0.3);
  transition: all var(--transition-normal);
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: var(--primary-hover) !important;
  text-shadow: 0 0 30px rgba(255, 51, 0, 0.5);
  transform: scale(1.02);
}

.navbar-nav .nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 0, 0.1), transparent);
  transition: left var(--transition-normal);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(255, 85, 0, 0.05);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--border-radius-sm);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ff5500' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search Container */
.search-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.search-input {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: var(--border-radius-lg);
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.search-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: var(--shadow-glow);
  background: rgba(26, 26, 26, 0.9);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  max-height: 350px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 0;
  box-shadow: var(--shadow-lg);
}

.search-results.show {
  display: block;
}

.search-result-item {
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.1), rgba(255, 107, 53, 0.1));
  border-left: 3px solid var(--primary-color);
  padding-left: calc(1rem - 3px);
}

.search-result-item small {
  color: var(--text-muted);
  display: block;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Main Content */
.container {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.page-container {
  display: none;
  width: 100%;
  animation: fadeInUp 0.5s ease forwards;
}

.page-container.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styling */
section {
  padding-top: 100px;
  margin-top: -100px;
  margin-bottom: 4rem;
}

/* Track Cards */
.card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 85, 0, 0.3);
}

.card-body {
  padding: 2rem;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: color var(--transition-fast);
}

.card:hover .card-title {
  color: var(--primary-color);
}

/* Disable card hover zoom on contact and track pages */
body.contact-page .card:hover,
body.track-page .card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-color);
}

body.contact-page .card:hover::before,
body.track-page .card:hover::before {
  opacity: 0;
}

body.contact-page .card:hover .card-title,
body.track-page .card:hover .card-title {
  color: var(--text-primary);
}

body.contact-page .card:hover iframe,
body.track-page .card:hover iframe {
  box-shadow: none;
  filter: none;
}

body.contact-page .card:hover .card iframe,
body.track-page .card:hover .card iframe {
  border-color: rgba(255, 85, 0, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3),
              0 1px 2px rgba(255, 85, 0, 0.1);
}

/* SoundCloud Player Container */
/* SoundCloud Player Dark Mode Integration */
iframe {
  width: 100%;
  height: 166px;
  max-width: 100%;
  border: none;
  border-radius: var(--border-radius-md);
  background: rgba(10, 10, 10, 0.95);
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
  /* Subtle filter to help blend light content */
  filter: brightness(0.85) contrast(1.2) saturate(0.9);
}

/* Dark overlay to help blend light SoundCloud players */
iframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.08) 50%, rgba(10, 10, 10, 0.15) 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 85, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 107, 53, 0.02) 0%, transparent 50%);
  border-radius: var(--border-radius-md);
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}

.card:hover iframe {
  box-shadow: var(--shadow-glow);
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}

.card:hover iframe::before {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.05) 0%,
    rgba(10, 10, 10, 0.02) 50%,
    rgba(10, 10, 10, 0.05) 100%
  );
}

/* Enhanced dark mode styling for iframe containers */
.card iframe {
  border: 1px solid rgba(255, 85, 0, 0.2);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(255, 85, 0, 0.1);
}

.card:hover .card iframe {
  border-color: rgba(255, 85, 0, 0.4);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(255, 85, 0, 0.3);
}

/* Buttons */
.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 51, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[disabled] {
  background: var(--border-color);
  color: var(--text-muted);
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Pagination */
.text-center {
  text-align: center;
  margin: 2rem 0;
}

.pagination-btn {
  margin: 0 0.5rem;
  min-width: 100px;
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  width: 32px;
  height: 32px;
  border: 3px solid var(--primary-color);
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

.loading-spinner.show {
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Footer */
footer {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  color: var(--text-muted);
  padding: 3rem 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 85, 0, 0.2);
  z-index: 1000;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

footer a:hover {
  color: var(--primary-hover);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 120px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.show {
  opacity: 1;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Custom Scrollbar - Dark Mode & Transparent */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.8);
  border-radius: 10px;
  margin: 2px;
  border: 1px solid rgba(255, 85, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,
    rgba(255, 85, 0, 0.2),
    rgba(255, 107, 53, 0.3),
    rgba(255, 85, 0, 0.2)
  );
  border-radius: 10px;
  border: 1px solid rgba(255, 85, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg,
    rgba(255, 85, 0, 0.5),
    rgba(255, 107, 53, 0.6),
    rgba(255, 85, 0, 0.5)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 8px rgba(255, 85, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg,
    rgba(255, 85, 0, 0.7),
    rgba(255, 107, 53, 0.8),
    rgba(255, 85, 0, 0.7)
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 12px rgba(255, 85, 0, 0.5);
}

::-webkit-scrollbar-corner {
  background: rgba(10, 10, 10, 0.8);
  border-radius: 10px;
}

::-webkit-scrollbar-button {
  display: none;
}

/* Firefox scrollbar - Dark Mode */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 85, 0, 0.3) rgba(10, 10, 10, 0.8);
}

/* Custom scrollbar for specific elements */
.search-results::-webkit-scrollbar {
  width: 4px;
}

.search-results::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 85, 0, 0.1);
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(255, 85, 0, 0.4);
  border-radius: 10px;
}

/* Mobile optimization - even more subtle */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }

  ::-webkit-scrollbar-track {
    margin: 1px;
    background: rgba(10, 10, 10, 0.6);
  }

  ::-webkit-scrollbar-thumb {
    border-radius: 10px;
    border: none;
  }
}

/* Very small screens - minimal footprint */
@media (max-width: 480px) {
  ::-webkit-scrollbar {
    width: 2px;
    height: 2px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(255, 85, 0, 0.3);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 85, 0, 0.5);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .nav-link {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
  }

  .search-container {
    max-width: 250px;
    margin-top: 1rem;
  }

  .container {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  section {
    padding-top: 80px;
    margin-top: -80px;
    margin-bottom: 3rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 576px) {
  .navbar-nav .nav-item {
    margin: 0.25rem 0;
  }

  .nav-link {
    text-align: center;
    border-radius: var(--border-radius-sm);
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .col-md-6 {
    margin-bottom: 1.5rem;
  }

  .pagination-btn {
    margin: 0.25rem;
    min-width: 80px;
    font-size: 0.9rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.btn:focus,
.search-input:focus,
.search-result-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Infinite Scroll Styles */
#loading-indicator {
  padding: 2rem 0;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#end-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 1rem;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Form Styles */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 85, 0, 0.25);
}

.form-group label {
  margin-bottom: 0.5rem;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

.alert {
  border-radius: var(--border-radius-md);
  border: none;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  border-color: rgba(40, 167, 69, 0.3);
  color: #28a745;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #dc3545;
}

/* Loading spinner in button */
#btn-spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* Google reCAPTCHA Styling */
.g-recaptcha {
  display: inline-block;
  margin-bottom: 15px;
}

/* Print styles */
@media print {
  .navbar,
  .back-to-top,
  .search-container,
  footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}

