/* /assets/css/style.css - Main stylesheet for Band CMS */

/* ========================================
   Cyberpunk Theme Enhancements
   ======================================== */

body.cyber-body {
  background-color: #000000;
  color: #e0e0e0;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Orbitron', sans-serif;
}

/* Scanline Effect - Much more subtle */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0) 50%,
    rgba(0, 0, 0, 0.08) 51%
  );
  background-size: 100% 8px;
  animation: scan 2s linear infinite;
  opacity: 0.3;
}

@keyframes scan {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 8px;
  }
}

/* Navigation Styling */
.cyber-nav {
  background: linear-gradient(135deg, rgba(25, 0, 35, 0.95), rgba(10, 0, 15, 0.95));
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 20px 40px -25px rgba(0, 255, 255, 0.35);
  backdrop-filter: blur(16px);
}

.cyber-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff00ff, #00ffff, transparent);
  opacity: 0.6;
}

.cyber-link {
  color: #f8fafc;
  font-size: 1.1rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 4px rgba(244, 114, 182, 0.3);
}

.cyber-link:hover,
.cyber-link:focus {
  color: #f472b6;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.8), 0 0 6px rgba(244, 114, 182, 0.6);
}

.cyber-mobile-link {
  display: block;
  padding: 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #d1d5db;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cyber-mobile-link:hover,
.cyber-mobile-link:focus {
  color: #67e8f9;
  text-shadow: 0 0 8px rgba(103, 232, 249, 0.7);
}

/* Glitch Effect - Fast (for header) */
.glitch-container {
  position: relative;
  display: inline-block;
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: #e0f2fe;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
  animation: glitch-skew-fast 2s infinite ease-in-out alternate;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.glitch-text::before {
  left: 2px;
  color: #ff00ff;
  text-shadow: -2px 0 rgba(255, 0, 255, 0.8);
  animation: glitch-anim-fast-1 1.8s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  color: #00ffff;
  text-shadow: 2px 0 rgba(0, 255, 255, 0.8);
  animation: glitch-anim-fast-2 2.1s infinite linear alternate-reverse;
  mix-blend-mode: screen;
}

/* Glitch Effect - Slow Flicker (for footer/content) */
.glitch-text-slow {
  position: relative;
  display: inline-block;
  color: #e0f2fe;
  text-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
  animation: glitch-skew-slow 6s infinite ease-in-out;
}

.glitch-text-slow::before,
.glitch-text-slow::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
}

.glitch-text-slow::before {
  left: 1px;
  color: #ff00ff;
  text-shadow: -1px 0 rgba(255, 0, 255, 0.6);
  animation: glitch-anim-slow-1 14s infinite ease-in-out;
}

.glitch-text-slow::after {
  left: -1px;
  color: #00ffff;
  text-shadow: 1px 0 rgba(0, 255, 255, 0.6);
  animation: glitch-anim-slow-2 15s infinite ease-in-out;
  mix-blend-mode: screen;
}

/* Fast Glitch Animations (Header) */
@keyframes glitch-anim-fast-1 {
  0% {
    clip-path: inset(0 0 85% 0);
  }
  20% {
    clip-path: inset(15% 0 60% 0);
  }
  40% {
    clip-path: inset(40% 0 20% 0);
  }
  60% {
    clip-path: inset(20% 0 55% 0);
  }
  80% {
    clip-path: inset(55% 0 15% 0);
  }
  100% {
    clip-path: inset(30% 0 45% 0);
  }
}

@keyframes glitch-anim-fast-2 {
  0% {
    clip-path: inset(80% 0 0 0);
  }
  20% {
    clip-path: inset(55% 0 15% 0);
  }
  40% {
    clip-path: inset(25% 0 40% 0);
  }
  60% {
    clip-path: inset(60% 0 10% 0);
  }
  80% {
    clip-path: inset(35% 0 35% 0);
  }
  100% {
    clip-path: inset(10% 0 70% 0);
  }
}

@keyframes glitch-skew-fast {
  0% {
    transform: skew(0deg);
  }
  40% {
    transform: skew(0.5deg, -0.5deg);
  }
  60% {
    transform: skew(-0.8deg, 0.3deg);
  }
  80% {
    transform: skew(0.6deg, -0.4deg);
  }
  100% {
    transform: skew(-0.3deg, 0.3deg);
  }
}

/* Slow Glitch Animations (Footer/Content) */
@keyframes glitch-anim-slow-1 {
  0%, 88% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  90% {
    clip-path: inset(30% 0 40% 0);
    opacity: 0.5;
  }
  92% {
    clip-path: inset(50% 0 20% 0);
    opacity: 0.4;
  }
  94% {
    clip-path: inset(25% 0 50% 0);
    opacity: 0.45;
  }
  96%, 100% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
}

@keyframes glitch-anim-slow-2 {
  0%, 85% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
  88% {
    clip-path: inset(60% 0 15% 0);
    opacity: 0.4;
  }
  91% {
    clip-path: inset(40% 0 35% 0);
    opacity: 0.35;
  }
  94% {
    clip-path: inset(55% 0 20% 0);
    opacity: 0.4;
  }
  97%, 100% {
    clip-path: inset(0 0 100% 0);
    opacity: 0;
  }
}

@keyframes glitch-skew-slow {
  0%, 90% {
    transform: skew(0deg);
  }
  92% {
    transform: skew(0.2deg, -0.15deg);
  }
  94% {
    transform: skew(-0.2deg, 0.15deg);
  }
  96% {
    transform: skew(0.15deg, -0.1deg);
  }
  98%, 100% {
    transform: skew(0deg);
  }
}

/* Footer Styling */
.cyber-footer {
  position: relative;
  background: linear-gradient(180deg, rgba(25, 0, 35, 0.95) 0%, rgba(10, 0, 15, 0.95) 60%, rgba(5, 0, 10, 0.98) 100%);
  overflow: hidden;
}

.cyber-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(0, 255, 255, 0.15), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255, 0, 255, 0.12), transparent 50%);
  opacity: 0.8;
  pointer-events: none;
}

.cyber-footer::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.5), rgba(0, 255, 255, 0.5), transparent);
  opacity: 0.9;
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.footer-title {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #bae6fd;
  font-size: 1.1rem;
  animation: text-fade 8s ease-in-out infinite;
}

.footer-link {
  color: #f8fafc;
  font-size: 1.2rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  animation: text-fade 10s ease-in-out infinite;
  text-shadow: 0 0 4px rgba(244, 114, 182, 0.3);
}

.footer-link:hover {
  color: #f472b6;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.8), 0 0 6px rgba(244, 114, 182, 0.6);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.32);
  color: #9ca3af;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  font-size: 1.1rem;
}

.footer-social a:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px rgba(103, 232, 249, 0.8);
}

/* Dynamic Page Content Styling */
.prose {
  color: #e5e7eb;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #f8fafc;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 4px rgba(244, 114, 182, 0.3);
}

.prose a {
  color: #67e8f9;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.prose a:hover {
  color: #f472b6;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.6);
}

.prose strong {
  color: #f8fafc;
}

.prose code {
  color: #67e8f9;
  background-color: rgba(55, 65, 81, 0.5);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: #e5e7eb;
}

.prose blockquote {
  border-left: 4px solid #67e8f9;
  background-color: rgba(55, 65, 81, 0.3);
  color: #d1d5db;
  font-style: italic;
}

.prose ul, .prose ol {
  color: #e5e7eb;
}

.prose li {
  margin: 0.5rem 0;
}

.prose p {
  line-height: 1.75;
  margin: 1rem 0;
}

.prose hr {
  border-color: #374151;
  margin: 2rem 0;
}

.prose img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.footer-meta {
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: #bae6fd;
  font-size: 1rem;
  animation: text-fade 12s ease-in-out infinite;
}

.footer-meta small {
  display: block;
  margin-top: 1.25rem;
  letter-spacing: 0.35em;
  font-size: 0.9rem;
  color: rgba(156, 163, 175, 0.75);
}

/* Footer paragraph text */
.cyber-footer p {
  font-size: 1rem !important;
  color: #d1d5db !important;
  animation: text-fade 10s ease-in-out infinite;
}

/* Cyberpunk Content Boxes */
.cyber-card {
  background: linear-gradient(135deg, rgba(35, 10, 50, 0.8), rgba(20, 5, 30, 0.9));
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.cyber-card:hover::before {
  left: 100%;
}

.cyber-card:hover {
  border-color: rgba(255, 0, 255, 0.4);
  box-shadow: 
    0 8px 40px rgba(255, 0, 255, 0.2),
    inset 0 1px 0 rgba(255, 0, 255, 0.2);
  transform: translateY(-2px);
}

.cyber-card h3 {
  color: #e0f2fe !important;
  font-family: 'Orbitron', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cyber-card p {
  color: #d1d5db !important;
}

.cyber-card a {
  color: #67e8f9 !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.cyber-card a:hover {
  color: #f472b6 !important;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.6);
}

.cyber-card i {
  color: #67e8f9 !important;
  filter: drop-shadow(0 0 8px rgba(103, 232, 249, 0.5));
}

/* Text Fade Animation */
@keyframes text-fade {
  0%, 90% {
    opacity: 1;
  }
  95% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* ========================================
   Custom styles to enhance Tailwind
   ======================================== */

/* Prose styles for content */
.prose {
  max-width: 65ch;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.prose a {
  color: #3b82f6;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* Dark mode prose */
.dark .prose {
  color: #e5e7eb;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose h4,
.dark .prose h5,
.dark .prose h6 {
  color: #f9fafb;
}

.dark .prose strong {
  color: #f9fafb;
}

.dark .prose code {
  color: #fbbf24;
}

.dark .prose blockquote {
  color: #d1d5db;
  border-left-color: #4b5563;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom scrollbar for dark mode */
.dark ::-webkit-scrollbar {
  width: 10px;
}

.dark ::-webkit-scrollbar-track {
  background: #1f2937;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Button transitions */
button,
a.button {
  transition: all 0.2s ease-in-out;
}

/* Hover effects */
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* Card styles */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .show-mobile-only {
    display: none;
  }
}

/* Print styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none;
  }
}
