/* ================================================
   ArtBridge Hub - Custom Styles
   Premium Media Company Design System
   ================================================ */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.5); }

/* Selection */
::selection { background: rgba(201,168,76,0.3); color: #fff; }

/* Base */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.6s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.4s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Stagger animation delay */
.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }
.stagger-6 { animation-delay: 0.6s; opacity: 0; }

/* Header scroll state */
#main-header.scrolled {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Nav link active */
.nav-link.active { color: #C9A84C; }

/* Sidebar active */
.sidebar-item.active {
  background: rgba(201,168,76,0.1);
  color: #C9A84C;
  border-left: 3px solid #C9A84C;
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(201,168,76,0.03) 0%, transparent 50%);
}

/* Gold gradient text */
.gold-text {
  background: linear-gradient(135deg, #FFD666, #C9A84C, #A07D2A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effect */
.card-hover {
  transition: all 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.1);
}

/* Shimmer loading */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Table */
.data-table th {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.badge-new { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-checked { background: rgba(234,179,8,0.15); color: #fde047; }
.badge-replied { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-closed { background: rgba(107,114,128,0.15); color: #d1d5db; }
.badge-ready { background: rgba(156,163,175,0.15); color: #d1d5db; }
.badge-in-progress { background: rgba(59,130,246,0.15); color: #93c5fd; }
.badge-completed { background: rgba(34,197,94,0.15); color: #86efac; }
.badge-hold { background: rgba(239,68,68,0.15); color: #fca5a5; }

/* Custom input focus */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

/* Mobile sidebar */
@media (max-width: 1023px) {
  #admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  #admin-sidebar.open {
    transform: translateX(0);
  }
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}

/* Portfolio card overlay */
.portfolio-overlay {
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 60%);
}

/* Service card gold border animation */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A84C, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover::before {
  opacity: 1;
}

/* Print styles */
@media print {
  #admin-panel, #main-header, footer { display: none !important; }
  body { background: white; color: black; }
}