/**
 * ARTURUM Custom Styles
 *
 * Custom CSS styles for ARTURUM platform.
 * Supplements Tailwind CSS with project-specific components and animations.
 *
 * ARCHITECTURE: Organized by section for maintainability
 * PERFORMANCE: Minimal custom CSS, leveraging Tailwind utilities
 *
 * @created 2025-10-16
 * @updated 2025-10-16
 */

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes progress-bar-fill {
  from { width: 0%; }
}

.animate-progress-bar-fill {
  animation: progress-bar-fill 1.5s ease-out forwards;
}

@keyframes confetti-burst {
  0% { transform: scale(0) rotate(0deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
  100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 0 15px 5px rgba(234, 42, 51, 0.2); }
  50% { box-shadow: 0 0 25px 10px rgba(234, 42, 51, 0.4); }
}

.animate-subtle-glow {
  animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(234, 40, 49, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(234, 40, 49, 0);
  }
}

.new-variant-badge {
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.animate-slide-in {
  animation: slide-in 0.4s ease-out forwards;
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}

@keyframes badgePop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.badge-pop {
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes icon-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.animate-icon-bounce {
  animation: icon-bounce 0.6s ease-out;
}

/* Slow pulse for backgrounds */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.animate-pulse-slow {
  animation: pulse-slow 4s ease-in-out infinite;
}

/* ============================================================================
   SCROLLBAR STYLES
   ============================================================================ */

/* Minimal Webkit Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* Hide scrollbar completely (but keep scroll functionality) */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Scroll proxy scrollbar styling with grab cursor */
.scroll-proxy::-webkit-scrollbar {
  height: 8px;
}

.scroll-proxy::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-proxy::-webkit-scrollbar-thumb {
  background: #4B5563;
  border-radius: 4px;
  cursor: grab;
}

.scroll-proxy::-webkit-scrollbar-thumb:hover {
  background: #6B7280;
  cursor: grab;
}

.scroll-proxy::-webkit-scrollbar-thumb:active {
  background: #9CA3AF;
  cursor: grabbing;
}

/* Custom scrollbar for specific elements */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #EA2831;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #ff2f3a;
}

/* ============================================================================
   CREATE PAGE - Hide body scrollbar
   ============================================================================ */

/* Hide body scrollbar when Create page is active */
body:has(main[data-page="create"]) {
  overflow: hidden;
}

/* ============================================================================
   FORM CONTROLS
   ============================================================================ */

/* Range Slider Styles */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #FF6B35;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #ff8555;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

input[type="range"]::-moz-range-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #FF6B35;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #ff8555;
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.6);
}

/* ============================================================================
   THUMBNAIL CONTAINERS
   ============================================================================ */

/* Video thumbnail hover effect */
.thumbnail-container {
  flex-shrink: 0;
  position: relative;
}

.thumbnail-container .thumbnail-video {
  display: none;
}

.thumbnail-container:hover .thumbnail-image {
  display: none;
}

.thumbnail-container:hover .thumbnail-video {
  display: block;
}

/* ============================================================================
   EDITABLE FIELDS
   ============================================================================ */

.editable-field {
  position: relative;
  transition: all 0.3s ease;
}

.editable-field:hover {
  background: rgba(234, 40, 49, 0.05);
  border-radius: 0.5rem;
}

.editable-field:hover .edit-hint {
  opacity: 1;
}

.edit-hint {
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(234, 40, 49, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: white;
  pointer-events: none;
  z-index: 10;
}

/* ============================================================================
   UPLOAD SUCCESS MESSAGE
   ============================================================================ */

.upload-success-message {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  z-index: 9999;
  transition: all 0.3s ease-out;
}

.upload-success-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.success-content {
  background: linear-gradient(135deg, #EA2831 0%, #ff3d47 100%);
  padding: 16px 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(234, 40, 49, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.success-icon {
  font-size: 28px;
  color: white;
  animation: icon-bounce 0.6s ease-out;
}

.success-text {
  color: white;
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

/* ============================================================================
   PROGRESS INDICATORS
   ============================================================================ */

.progress-ring-circle {
  stroke-dasharray: 175.84;
  stroke-dashoffset: 175.84;
  transition: stroke-dashoffset 0.5s ease;
}

.completion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.completion-badge[data-complete="true"] span {
  opacity: 1 !important;
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================================
   CONFETTI EFFECTS
   ============================================================================ */

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--color);
  opacity: 0;
  animation: confetti-burst 2s ease-out infinite;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

/* Smooth transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #EA2831 0%, #ff3d47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hover glow effect */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(234, 40, 49, 0.4);
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Image loaded state - smooth fade-in after loading */
.image-loaded {
  opacity: 1 !important;
}

/* ============================================================================
   MODAL OVERLAYS
   ============================================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

.modal-content {
  background: #1a1a1a;
  border-radius: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

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

/* Hide on mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 769px) {
  .show-mobile {
    display: none !important;
  }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

/* Disable all focus outlines globally (Tailwind forms plugin was adding red rings) */
*:focus {
  outline: none !important;
  box-shadow: none !important;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }
}

/* ============================================================================
   CAROUSEL
   ============================================================================ */

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
}

/* Carousel container - no scrolling, button navigation only */
.carousel-container {
  overflow: hidden;
  pointer-events: none; /* Prevent any scroll events */
}

.carousel-container > * {
  pointer-events: auto; /* Re-enable pointer events for carousel items */
}

/* Carousel arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
}

.carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.hidden {
  display: none;
}

.carousel-arrow-left {
  left: 16px;
}

.carousel-arrow-right {
  right: 16px;
}

/* Mobile: hide arrows */
@media (max-width: 640px) {
  .carousel-arrow {
    display: none !important;
  }
}

/* ============================================================================
   CARD STYLES (Quest Cards, Video Cards, Project Cards)
   ============================================================================ */

/* Quest Card Styles (Learn page, Profile page) */
.quest-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 2px solid rgba(234, 40, 49, 0.15);
  background-color: rgba(234, 40, 49, 0.03);
  transition: all 0.3s ease-out;
}

.quest-card:hover {
  border-color: rgba(234, 40, 49, 0.4);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

/* Quest card gradient overlay */
.quest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent, rgba(234, 40, 49, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

/* Quest card in-progress state with pulse */
.quest-card.in-progress-card {
  border-color: rgba(234, 40, 49, 0.3);
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Video Container Styles (hover scale effect) */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #000;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.video-container:hover video {
  transform: scale(1.03);
}

/* Video overlay with gradient */
.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease-out;
}

.video-container:hover .video-overlay {
  opacity: 0;
}

/* Play icon in video overlay */
.play-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(234, 40, 49, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease-out;
}

.video-container:hover .play-icon {
  transform: scale(1.1);
}

/* ============================================================================
   LEARN PAGE STYLES
   ============================================================================ */

/* Pulse Glow Animation for Hero Section */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(234, 40, 49, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(234, 40, 49, 0.4);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Quest Icon Styles */
.quest-icon {
  color: #EA2831;
  margin-bottom: 1rem;
  margin-top: 3rem;
  font-size: 3rem;
  opacity: 0.85;
  transition: all 0.4s ease-out;
  position: relative;
  display: inline-block;
}

/* Quest Icon Pulsing Ring Effect */
.quest-icon::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 40, 49, 0.2) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease-out;
}

.group:hover .quest-icon {
  opacity: 1;
  transform: scale(1.1) rotate(-5deg);
  filter: drop-shadow(0 4px 12px rgba(234, 40, 49, 0.4));
}

.quest-card:hover .quest-icon::before {
  opacity: 1;
  transform: scale(1.2);
  animation: icon-pulse-ring 1.5s ease-out infinite;
}

/* Quest Icon Pulse Ring Animation */
@keyframes icon-pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Quest Title and Description */
.quest-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.dark .quest-title {
  color: #fff;
}

.quest-description {
  color: #4b5563;
  font-size: 0.875rem;
}

.dark .quest-description {
  color: #9ca3af;
}

/* Quest Status Badges */
.quest-status {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  z-index: 2;
}

.quest-status.completed {
  background-color: rgba(234, 40, 49, 0.15);
  color: #EA2831;
}

.quest-status.in-progress {
  background-color: rgba(234, 40, 49, 0.2);
  color: #EA2831;
}

.quest-status.locked {
  background-color: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

/* Progress Ring for Quest Cards */
.progress-ring {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  z-index: 2;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
}

.progress-ring circle {
  transition: all 0.3s;
}

.progress-ring span {
  font-size: 0.7rem;
}

/* Module Section Styles */
.module-section {
  position: relative;
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid rgba(55, 65, 81, 0.3);
  background-color: rgba(31, 41, 55, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.module-section:hover {
  border-color: rgba(234, 40, 49, 0.25);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.2);
}

/* Module Section Gradient Overlays */
.module-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.1));
  opacity: 0.5;
}

.module-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 6rem;
  height: 6rem;
  background-color: rgba(234, 40, 49, 0.1);
  border-radius: 9999px;
  filter: blur(3rem);
  opacity: 0.3;
  transform: translate(50%, 50%);
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #eab308;
  color: #713f12;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Badge Container */
.badge-container {
  background-color: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  padding: 0.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  animation: badge-pop 0.5s ease-out forwards;
}

/* Badge Pop Animation */
@keyframes badge-pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Badge Rotation on Hover */
.badge-container .badge {
  transition: transform 0.3s ease-out;
}

.badge-container:hover .badge {
  transform: rotate(12deg) scale(1.1);
}

/* Quest Card Button Styles */
.quest-card button {
  transition: all 0.3s ease-out;
}

.quest-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quest-card button:active {
  transform: translateY(0);
}

/* Quest Icon Color Variations on Hover */
.quest-card:hover .quest-icon {
  color: #ff6b7a;
  filter: drop-shadow(0 4px 12px rgba(234, 40, 49, 0.5));
}

.quest-card:hover .quest-icon::before {
  background: radial-gradient(circle, rgba(234, 40, 49, 0.25) 0%, transparent 70%);
}

/* ============================================================================
   CREATE PAGE - UPLOAD MODAL
   ============================================================================ */

/* Upload Modal Overlay */
.creation-modal-overlay {
  position: fixed;
  top: 3.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Upload Modal Container */
.creation-modal-container {
  background: #1a1a1a;
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 6rem);
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Upload Modal Header */
.creation-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #2a2a2a;
  position: relative;
}

.creation-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  z-index: 10;
  font-size: 20px;
}

.creation-close-btn:hover {
  background: #3a3a3a;
  transform: rotate(90deg);
  color: #fff;
}

/* Upload Modal Body */
.creation-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

.upload-tab-content {
  display: none;
}

.upload-tab-content.active {
  display: block;
}

/* Upload Area */
.creation-upload-area {
  border: 2px dashed #3a3a3a;
  border-radius: 16px;
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  position: relative;
  overflow: hidden;
}

.creation-upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(234, 40, 49, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.creation-upload-area:hover::before {
  opacity: 1;
}

.creation-upload-area:hover {
  border-color: #EA2831;
  background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 40, 49, 0.15);
}

.creation-upload-area.dragover {
  border-color: #EA2831;
  border-style: solid;
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.1) 0%, rgba(234, 40, 49, 0.05) 100%);
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(234, 40, 49, 0.1);
}

/* Upload Icon */
.upload-icon-wrapper {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.15) 0%, rgba(234, 40, 49, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.creation-upload-area:hover .upload-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.25) 0%, rgba(234, 40, 49, 0.15) 100%);
}

.upload-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(234, 40, 49, 0.3) 0%, transparent 70%);
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

.creation-upload-area:hover .upload-icon-wrapper::before {
  opacity: 0.3;
}

@keyframes pulse-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}

.upload-icon-svg {
  width: 22px;
  height: 22px;
  stroke: #EA2831;
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.creation-upload-area:hover .upload-icon-svg {
  stroke: #ff6b7a;
  transform: translateY(-2px);
}

/* Upload Text */
.upload-text-primary {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.creation-upload-area:hover .upload-text-primary {
  color: #EA2831;
}

.upload-text-secondary {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Upload Format Badges */
.upload-format-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  font-size: 11px;
  color: #888;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.creation-upload-area:hover .upload-format-badge {
  background: rgba(234, 40, 49, 0.1);
  color: #EA2831;
}

/* File Preview */
.creation-file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Upload Modal Footer */
.creation-modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: 12px;
}

/* ============================================================================
   CREATE PAGE - CUSTOM DROPDOWNS
   ============================================================================ */

/* Custom dropdown container */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.custom-select-trigger:hover {
  background-color: #202020;
  border-color: rgba(255, 255, 255, 0.1);
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(234, 40, 49, 0.5);
  box-shadow: 0 0 0 1px rgba(234, 40, 49, 0.5);
}

.custom-select-arrow {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  transition: transform 0.2s;
}

.custom-select.open .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-select-option:hover {
  background-color: rgba(234, 40, 49, 0.2);
  color: white;
}

.custom-select-option.selected {
  background-color: rgba(234, 40, 49, 0.3);
  color: white;
}

.custom-select-option.selected:hover {
  background-color: rgba(234, 40, 49, 0.4);
}

/* Custom scrollbar for dropdown */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}

.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(234, 40, 49, 0.3);
  border-radius: 3px;
}

.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 40, 49, 0.5);
}

/* ============================================================================
   CREATE PAGE MODALS (Video/Image/Audio Models & Presets)
   ============================================================================ */

/* Presets Modal Overlay */
.presets-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 50;
  animation: fadeIn 0.2s ease-out;
}

.presets-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Presets Modal Container */
.presets-modal {
  background-color: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 1200px;
  height: 88vh;
  display: flex;
  overflow: hidden;
  animation: slideUpModal 0.3s ease-out;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Preset/Model Card Styles */
.preset-card,
.model-card,
.image-preset-card,
.image-model-card,
.audio-preset-card,
.audio-model-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.preset-card:hover,
.model-card:hover,
.image-preset-card:hover,
.image-model-card:hover,
.audio-preset-card:hover,
.audio-model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 40, 49, 0.5);
  box-shadow: 0 8px 24px rgba(234, 40, 49, 0.15);
}

.preset-card img,
.preset-card video,
.model-card img,
.model-card video,
.image-preset-card img,
.image-model-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preset-card:hover img,
.preset-card:hover video,
.model-card:hover img,
.model-card:hover video,
.image-preset-card:hover img,
.image-model-card:hover img {
  transform: scale(1.08);
}

/* Modal Animation: Slide Up */
@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Animation: Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Custom scrollbar for presets modal */
.presets-modal ::-webkit-scrollbar {
  width: 6px;
}

.presets-modal ::-webkit-scrollbar-track {
  background: transparent;
}

.presets-modal ::-webkit-scrollbar-thumb {
  background: rgba(234, 40, 49, 0.4);
  border-radius: 3px;
}

.presets-modal ::-webkit-scrollbar-thumb:hover {
  background: rgba(234, 40, 49, 0.6);
}

/* ============================================================================
   CREATE PROJECT MODAL (PIXEL-PERFECT MATCH TO PROTOTYPE)
   ============================================================================ */

/* Modal Container */
.creation-modal-container {
  width: 100%;
  max-width: 640px;
  background: #0f0f0f;
  border-radius: 24px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3.5rem - 2rem);
  overflow: hidden;
}

/* Modal Header */
.creation-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #2a2a2a;
  position: relative;
}

.creation-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2a2a2a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #999;
  z-index: 10;
  font-size: 20px;
}

.creation-close-btn:hover {
  background: #3a3a3a;
  transform: rotate(90deg);
  color: #fff;
}

/* Progress Bar */
.creation-progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-right: 50px;
}

.creation-progress-step {
  flex: 1;
  height: 4px;
  background: #2a2a2a;
  border-radius: 2px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.creation-progress-step.active {
  background: linear-gradient(90deg, #EA2831 0%, #ff6b7a 100%);
}

.creation-progress-step.completed {
  background: #EA2831;
}

.creation-progress-step.completed::after {
  content: '✓';
  position: absolute;
  right: -2px;
  top: -8px;
  color: #EA2831;
  font-size: 12px;
  font-weight: bold;
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* Modal Body */
.creation-modal-body {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

/* Step Content */
.creation-step-content {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.creation-step-content.active {
  display: block;
}

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

/* Category Grid */
.creation-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.creation-category-card {
  padding: 20px;
  border: 2px solid #2a2a2a;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  background: #0f0f0f;
}

.creation-category-card:hover {
  border-color: #EA2831;
  transform: translateY(-2px);
  background: #1a1a1a;
}

.creation-category-card.selected {
  border-color: #EA2831;
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.1) 0%, rgba(255, 107, 122, 0.1) 100%);
  box-shadow: 0 4px 12px rgba(234, 40, 49, 0.2);
}

/* Upload Area */
.creation-upload-area {
  border: 2px dashed #3a3a3a;
  border-radius: 16px;
  padding: 20px 16px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  position: relative;
  overflow: hidden;
}

.creation-upload-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(234, 40, 49, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.creation-upload-area:hover::before {
  opacity: 1;
}

.creation-upload-area:hover {
  border-color: #EA2831;
  background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(234, 40, 49, 0.15);
}

/* Upload Icon */
.upload-icon-wrapper {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.15) 0%, rgba(234, 40, 49, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.creation-upload-area:hover .upload-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.25) 0%, rgba(234, 40, 49, 0.15) 100%);
}

.upload-icon-svg {
  width: 24px;
  height: 24px;
}

.upload-text-primary {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.upload-text-secondary {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
}

.upload-format-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
  padding: 4px 8px;
  background: #1a1a1a;
  border-radius: 6px;
}

/* File Preview */
.creation-file-preview {
  margin-top: 16px;
}

/* Pricing Card */
.creation-pricing-card {
  padding: 32px 24px;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
  border: 1px solid rgba(234, 40, 49, 0.3);
  color: #fff;
}

/* Success Animation */
.creation-success-animation {
  text-align: center;
  padding: 32px 16px;
}

.creation-success-icon {
  font-size: 64px;
  animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.creation-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(234, 40, 49, 0.2) 0%, rgba(255, 215, 0, 0.2) 100%);
  border: 2px solid #EA2831;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.success-badge-animate {
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* Confetti */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -20px;
  animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Modal Footer */
.creation-modal-footer {
  padding: 16px 32px 24px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: 12px;
}

.creation-modal-footer button {
  transition: all 0.2s ease;
}

/* ============================================================================
   PROJECT SETUP PAGE STYLES
   ============================================================================ */

/* Contenteditable Placeholders */
[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: #6b7280;
  font-style: italic;
  pointer-events: none;
}

[contenteditable="true"]:focus:before {
  content: "";
}

[contenteditable="true"]:focus {
  outline: none;
}

/* Smooth transitions for contenteditable fields */
[contenteditable="true"] {
  transition: all 0.2s ease;
}

[contenteditable="true"]:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

[contenteditable="true"]:focus {
  background-color: rgba(234, 40, 49, 0.05);
  border-radius: 0.25rem;
}

/* Profile Display Name Editable Styling */
#profileDisplayName[contenteditable="true"] {
  min-height: 2rem;
  outline: none;
  transition: all 0.2s ease;
  display: inline-block;
}

#profileDisplayName[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

#profileDisplayName[contenteditable="true"]:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

#profileDisplayName[contenteditable="true"]:focus {
  background-color: rgba(234, 40, 49, 0.08);
  border: 1px solid rgba(234, 40, 49, 0.2);
}

/* Profile Bio Editable Styling */
#profileBio[contenteditable="true"] {
  min-height: 1.5rem;
  outline: none;
  transition: all 0.2s ease;
}

#profileBio[contenteditable="true"]:empty:before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}

#profileBio[contenteditable="true"]:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

#profileBio[contenteditable="true"]:focus {
  background-color: rgba(234, 40, 49, 0.08);
  border: 1px solid rgba(234, 40, 49, 0.2);
}

/* Project Setup Modals */
.setup-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

.setup-modal-overlay.hidden {
  display: none;
}

.setup-modal-container {
  background-color: #1f1f1f;
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUpModal 0.3s ease-out;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Large modal for assets */
.setup-modal-container.large {
  max-width: 72rem;
  height: 85vh;
}

.setup-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.setup-modal-body {
  padding: 2rem;
  max-height: calc(85vh - 140px);
  overflow-y: auto;
}

.setup-modal-footer {
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid #2a2a2a;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.setup-close-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #9ca3af;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.setup-close-btn:hover {
  background-color: rgba(234, 40, 49, 0.1);
  color: #EA2831;
}

/* Tab Navigation for Assets Modal */
.asset-tab-btn {
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: #9ca3af;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.asset-tab-btn:hover {
  color: #ffffff;
}

.asset-tab-btn.active {
  color: #EA2831;
  border-bottom-color: #EA2831;
}

/* Upload Area Styling */
.upload-area {
  border: 2px dashed #4b5563;
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: rgba(31, 31, 31, 0.5);
}

.upload-area:hover {
  border-color: #EA2831;
  background-color: rgba(234, 40, 49, 0.05);
}

.upload-area.drag-over {
  border-color: #EA2831;
  background-color: rgba(234, 40, 49, 0.1);
  border-style: solid;
}

/* File Preview Grid */
.file-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.file-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #2a2a2a;
}

.file-preview-item img,
.file-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-preview-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: rgba(234, 40, 49, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.file-preview-item:hover .file-preview-remove {
  opacity: 1;
}

/* Funding Duration Dropdown */
.funding-dropdown {
  position: relative;
}

.funding-dropdown-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #2a2a2a;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  color: white;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.funding-dropdown-button:hover {
  border-color: #EA2831;
}

.funding-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  background-color: #2a2a2a;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.funding-dropdown-menu.hidden {
  display: none;
}

.funding-duration-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.funding-duration-option:hover {
  background-color: rgba(234, 40, 49, 0.1);
}

.funding-duration-option.selected {
  background-color: rgba(234, 40, 49, 0.2);
  color: #EA2831;
}

/* Team Member List */
.team-member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: #2a2a2a;
  border-radius: 0.5rem;
}

.team-member-remove {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: transparent;
  color: #9ca3af;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.team-member-remove:hover {
  background-color: rgba(234, 40, 49, 0.1);
  color: #EA2831;
}

/* Asset Grid for Assets Modal */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.asset-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #2a2a2a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.asset-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 6px -1px rgba(234, 40, 49, 0.3);
}

.asset-item img,
.asset-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scrollbar for modals */
.setup-modal-body::-webkit-scrollbar {
  width: 8px;
}

.setup-modal-body::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 4px;
}

.setup-modal-body::-webkit-scrollbar-thumb {
  background: #EA2831;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.setup-modal-body::-webkit-scrollbar-thumb:hover {
  background: #ff2f3a;
}

/* ============================================================================
   FUND MODAL STYLES
   ============================================================================ */

/* Fund tier cards */
.fund-tier-card {
  @apply cursor-pointer p-4 rounded-lg border-2 transition-all duration-200 bg-[#1f1f1f];
}

.fund-tier-card:hover {
  @apply bg-[#252525] border-primary/50 transform scale-[1.02];
}

.fund-tier-card input:checked + div {
  @apply ring-2 ring-primary ring-offset-2 ring-offset-[#1a1a1a] rounded-lg;
}

/* Confetti animation */
@keyframes confetti-fall {
  0% {
    transform: translateY(-10%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================================================
   ASSETS MODAL STYLES
   ============================================================================ */

/* Tab active state */
.assets-tab.active {
  @apply bg-primary text-white;
}

/* Collapsible section */
.collapsible-section {
  @apply transition-all duration-300;
}

.collapsible-section.collapsed {
  @apply max-h-0 overflow-hidden;
}

.collapsible-section.expanded {
  @apply max-h-[5000px];
}

/* Chevron rotation */
.chevron-icon {
  @apply transition-transform duration-300;
}

.chevron-icon.rotated {
  @apply rotate-180;
}

/* Media card hover overlay */
.media-card {
  @apply relative overflow-hidden;
}

.media-card-overlay {
  @apply absolute inset-0 bg-gradient-to-t from-black/90 via-black/50 to-transparent opacity-0 transition-opacity duration-300;
}

.media-card:hover .media-card-overlay {
  @apply opacity-100;
}

/* ============================================================================
   MODAL ANIMATIONS
   ============================================================================ */

.animate-slideUp {
  animation: slideUpModal 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in forwards;
}

@keyframes slideUpModal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 768px) {
  .fund-tier-card {
    @apply text-sm p-3;
  }

  .assets-tab {
    @apply text-sm px-3 py-1.5;
  }
}

/* ============================================================================
   ARTURUM BRAND COLORS & VIDEO GENERATION
   ============================================================================ */

:root {
  --arturum-red: #E53935;
  --arturum-red-hover: #EF5350;
  --arturum-dark-red: #8B2E2E;
  --arturum-bg-dark: #0a0a0a;
  --arturum-bg-panel: #1a1a1a;
  --arturum-text-white: #FFFFFF;
  --arturum-text-gray: #999999;
  --arturum-border-dark: #2a2a2a;
}

/* ============================================================================
   VIDEO GENERATION CONTAINER
   ============================================================================ */

.video-generation-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

/* ============================================================================
   STATUS BADGE
   ============================================================================ */

.status-badge-container {
  align-self: flex-start;
  margin-bottom: 10px;
}

.status-badge {
  background-color: var(--arturum-dark-red);
  color: var(--arturum-text-white);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
}

.status-badge-complete {
  background-color: var(--arturum-red);
}

/* ============================================================================
   PROMPT TEXT
   ============================================================================ */

.prompt-text {
  color: var(--arturum-text-gray);
  font-size: 14px;
  text-align: center;
  margin-bottom: 10px;
  max-width: 85%;
}

/* ============================================================================
   VIDEO PLACEHOLDER
   ============================================================================ */

.video-placeholder {
  width: 85%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background-color: var(--arturum-bg-panel);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--arturum-border-dark);
  border-top-color: var(--arturum-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.progress-text {
  color: var(--arturum-text-gray);
  font-size: 14px;
  margin-top: 20px;
}

/* ============================================================================
   VIDEO CONTAINER
   ============================================================================ */

.video-container {
  width: 85%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--arturum-bg-panel);
  transition: box-shadow 0.3s ease;
}

.video-container:hover {
  box-shadow: 0 0 20px rgba(229, 57, 53, 0.3);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================================
   ACTION BUTTONS
   ============================================================================ */

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.action-button-primary {
  background-color: var(--arturum-red);
  color: var(--arturum-text-white);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-button-primary:hover {
  background-color: var(--arturum-red-hover);
}

.action-button-secondary {
  background-color: transparent;
  color: var(--arturum-text-white);
  border: 1px solid var(--arturum-red);
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-button-secondary:hover {
  background-color: rgba(229, 57, 53, 0.1);
  border-color: var(--arturum-red-hover);
}

/* ============================================================================
   LIGHTBOX MODAL
   ============================================================================ */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--arturum-text-white);
  font-size: 32px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1001;
}

.close-button:hover {
  color: var(--arturum-red);
}

.lightbox-video-container {
  width: 90%;
  max-width: 1600px;
}

.lightbox-video-container video {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ============================================================================
   MOBILE RESPONSIVE - VIDEO GENERATION
   ============================================================================ */

@media (max-width: 768px) {
  .video-container,
  .video-placeholder {
    width: 95%;
  }

  .action-buttons {
    flex-direction: column;
    width: 95%;
  }

  .action-button-primary,
  .action-button-secondary {
    width: 100%;
  }
}

/* ============================================================================
   COMPONENT IMPORTS
   ============================================================================ */

/* Achievement Modal Component */
@import url('./components/achievement-modal.css');

/* Toast Notification Component */
@import url('./components/toast-notification.css');

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color);
  opacity: 0;
  animation: confetti-burst 2s ease-out infinite;
  border-radius: 2px;
}
