/* Custom Styles for دوبلاج بالعافيه */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=El+Messiri:wght@600;700&family=Rubik:wght@500;700;900&display=swap');

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0a0e;
}
::-webkit-scrollbar-thumb {
  background: #242432;
  border-radius: 5px;
  border: 2px solid #0a0a0e;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffb800;
}

/* Film Grain Texture Overlay */
.grain-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events-none;
}

/* Radial Vignette */
.bg-radial-vignette {
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 10, 14, 0.85) 100%);
}

/* Comic / 3D Title Styling */
.comic-title {
  text-shadow: 
    0 2px 0 #b37400,
    0 4px 0 #805300,
    0 6px 0 #4d3200,
    0 10px 25px rgba(255, 184, 0, 0.5);
  transform: perspective(600px) rotateX(4deg);
}

/* Spacing & Breathing Room Enhancement */
.hero-title-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* 3D Card Hover & Tilt */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
}

.card-3d:hover {
  box-shadow: 0 25px 50px -12px rgba(255, 184, 0, 0.25);
}

/* Sound Waves Animation in Hero Card */
.wave-bar {
  width: 4px;
  border-radius: 9999px;
  animation: soundPulse 1.2s ease-in-out infinite alternate;
}
.wave-bar:nth-child(2) { animation-delay: 0.2s; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; }
.wave-bar:nth-child(5) { animation-delay: 0.5s; }
.wave-bar:nth-child(6) { animation-delay: 0.3s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.25s; }

@keyframes soundPulse {
  0% { transform: scaleY(0.3); opacity: 0.4; }
  100% { transform: scaleY(1.3); opacity: 1; }
}

/* Film Perforations Marquee */
.film-perforations-top,
.film-perforations-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff20 0px,
    #ffffff20 8px,
    transparent 8px,
    transparent 16px
  );
}
.film-perforations-top { top: 0; }
.film-perforations-bottom { bottom: 0; }

.film-reel-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #e4e4e7;
  transition: all 0.3s ease;
}

.film-reel-item:hover {
  background: rgba(255, 184, 0, 0.15);
  border-color: #ffb800;
  color: #ffffff;
  transform: scale(1.05);
}

/* Filter Buttons */
.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 0.8125rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
}

.filter-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 184, 0, 0.4);
}

.filter-btn.active {
  background: #ffb800;
  color: #0a0a0e;
  border-color: #ffb800;
  box-shadow: 0 4px 20px rgba(255, 184, 0, 0.35);
}

/* Clip Cards */
.clip-card {
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.clip-card-inner {
  background: #121218;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.clip-card:hover .clip-card-inner {
  transform: translateY(-8px);
  border-color: rgba(255, 184, 0, 0.5);
  box-shadow: 0 20px 40px -15px rgba(255, 184, 0, 0.2);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.clip-card:hover .play-overlay {
  opacity: 1;
}

/* Soundboard Pads */
.sound-pad {
  position: relative;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.sound-pad:hover {
  background: #1a1a24;
  border-color: rgba(255, 184, 0, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(255, 184, 0, 0.25);
}

.sound-pad:active,
.sound-pad.playing {
  transform: scale(0.95);
  border-color: #ffb800;
  background: #24221c;
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.5);
}

.sound-pad-icon {
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.sound-pad-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.sound-pad-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #71717a;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.sound-pad-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 184, 0, 0.25), transparent 70%);
  opacity: 0;
  pointer-events-none;
  transition: opacity 0.3s ease;
}

.sound-pad:hover .sound-pad-glow,
.sound-pad.playing .sound-pad-glow {
  opacity: 1;
}

/* Crew Member Cards */
.crew-card {
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.crew-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 184, 0, 0.4);
  box-shadow: 0 15px 30px -10px rgba(255, 184, 0, 0.15);
}

.crew-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  border-radius: 9999px;
  overflow: hidden;
  border: 3px solid #ffb800;
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.3);
}

.crew-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ffb800;
  color: black;
  font-size: 0.6875rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.discord-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #858fed;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

/* Form Inputs */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  color: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #ffb800;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.2);
}

/* Social Icon Button */
.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* Admin Dashboard Specific Styles */
.admin-tab-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #a1a1aa;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
}

.admin-tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
  background: #ffb800;
  color: #0a0a0e;
  box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.badge-status {
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
}
.status-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-accepted { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-done { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Custom Select & Options styling (Fix white-on-white dropdown bug) */
select {
  background-color: #181824 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  outline: none;
}

select option {
  background-color: #12121a !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
}

/* Custom Request Card */
.req-item-card {
  background: rgba(18, 18, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  transition: all 0.25s ease;
}

.req-item-card:hover {
  border-color: rgba(255, 184, 0, 0.4);
  background: rgba(26, 26, 38, 0.85);
}

