/* Modern Professional Explore Page Styles - ThemeForest Level */

/* Enhanced Variables */
:root {
  --primary-bg: #050510;
  --secondary-bg: #0a0a1a;
  --card-bg: rgba(20, 20, 35, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #666680;
  
  --accent-primary: #2563eb;
  --accent-secondary: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.5);
  
  --gradient-main: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 64px;
}

/* Base Reset & Typography */
body {
  background-color: var(--primary-bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* -------------------------------------------------------------------------- */
/* Hero Section - Immersive & Cinematic */
/* -------------------------------------------------------------------------- */
.explore-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 0 70px;
  overflow: hidden;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(4px) brightness(0.8);
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(5, 5, 16, 0.25) 0%, rgba(5, 5, 16, 0.9) 85%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #8ab4ff 55%, #5b8dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.gradient-text::after {
  content: '';
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  opacity: 0.35;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

/* Search Container - Floating & Modern */
.search-container {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 6px;
  transition: var(--transition-normal);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-icon {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-left: 18px;
  pointer-events: none;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  font-family: inherit;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Glowing Create Button - Replicating Try Syntia Button EXACTLY */
.create-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  
  /* Exact styling from signup-btn in header */
  background: linear-gradient(
    135deg,
    rgb(255, 255, 255) 0%,
    #008cffa4 50%,
    rgb(254, 254, 255) 100%
  );
  background-size: 300% 300%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4), 0 0 30px rgba(0, 102, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: gradientShift 4s ease-in-out infinite;
  white-space: nowrap;
}

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

.create-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  pointer-events: none;
}

.create-btn:hover {
  background: linear-gradient(
    135deg,
    rgb(255, 255, 255) 0%,
    #008cffa4 50%,
    rgb(254, 254, 255) 100%
  );
  background-size: 300% 300%;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
  animation: gradientShift 1.5s ease-in-out infinite,
    buttonPulse 2s ease-in-out infinite;
}

.create-btn:hover::before {
  left: 100%;
}

.create-btn:hover::after {
  width: 120px;
  height: 120px;
  opacity: 0.6;
}

.create-btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.create-btn:focus {
  outline: none;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
    0 0 0 3px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: gradientShift 1.5s ease-in-out infinite;
}

/* Hints Section */
.hints-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.hints-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.hints-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-right: 6px;
  display: flex;
  align-items: center;
}

.hint-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hint-tag i {
  font-size: 0.75rem;
  opacity: 0.6;
}

.hint-tag:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* Navigation Tabs - Minimalist */
/* -------------------------------------------------------------------------- */
.explore-nav {
  position: sticky;
  top: 70px; /* Header height */
  z-index: 900;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  margin-bottom: 36px;
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  letter-spacing: 0.01em;
}

.tab-btn i {
  font-size: 1.1rem;
}

.tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

/* -------------------------------------------------------------------------- */
/* Content Grid - Masonry Layout */
/* -------------------------------------------------------------------------- */
.explore-content {
  padding-bottom: 80px;
}

.content-grid {
  column-count: 4;
  column-gap: 24px;
  width: 100%;
}

@media (max-width: 1400px) {
  .content-grid { column-count: 3; }
}

@media (max-width: 992px) {
  .content-grid { column-count: 2; }
}

@media (max-width: 576px) {
  .content-grid { column-count: 1; }
}

.content-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
  cursor: pointer;
  opacity: 0; /* Managed by JS for entrance */
}

.content-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.card-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Aspect ratios handled by content or JS, but basic styling here */
  background: #111;
}

.card-image, .card-video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-card:hover .card-image,
.content-card:hover .card-video {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.1) 100%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  z-index: 10;
}

.content-card:hover .card-overlay {
  opacity: 1;
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.like-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.like-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.like-btn.liked {
  background: #ffffff;
  color: #0a0a0a;
}

.like-btn i {
  font-size: 0.9rem;
}

.creator-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
}

.creator-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* -------------------------------------------------------------------------- */
/* Professional Lightbox (Modal) - Refined */
.fullscreen-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96); /* Slightly darker for better focus */
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fullscreen-modal-container {
  width: 96%;
  height: 94%;
  max-width: 1700px;
  background: #0a0a12;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.8);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-modal-overlay.active .fullscreen-modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Layout */
.fullscreen-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.fullscreen-media-wrapper {
  flex: 1;
  background: radial-gradient(circle at center, rgba(20, 20, 30, 0.5) 0%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.fullscreen-media-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(90px) brightness(0.25);
  opacity: 0.7;
  z-index: 0;
}

.fullscreen-image {
  max-width: min(100%, 1100px);
  max-height: calc(100% - 48px);
  object-fit: contain;
  z-index: 2;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  transition: transform 0.4s ease;
}

.fullscreen-media-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.35) 70%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.fullscreen-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

.fullscreen-back-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Sidebar Styling */
.fullscreen-sidebar {
  width: 420px;
  background: linear-gradient(180deg, rgba(15, 17, 30, 0.98) 0%, rgba(10, 11, 20, 0.98) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 100%;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 15, 26, 0.95);
  flex-shrink: 0;
  z-index: 10;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(37, 99, 235, 0.5);
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name-row h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.user-stats {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.separator {
  color: var(--glass-border);
}

/* Follow Button - Simple Style */
.follow-btn-simple {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.follow-btn-simple:hover {
  background: rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.follow-btn-simple.following {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text-muted);
}

/* Scrollable Content Area */
.sidebar-scroll-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden; /* Fix horizontal scroll */
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Ensure no child causes overflow */
.media-info-section, .comments-section {
  width: 100%;
  box-sizing: border-box;
}

.media-info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 16px;
}

/* Custom Scrollbar for Sidebar */
.sidebar-scroll-content::-webkit-scrollbar {
  width: 6px;
}

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

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

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

.media-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.3;
}

/* Media Actions & Dropdown */
.media-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
  position: relative;
}

.menu-container {
  position: relative;
  z-index: 200;
}

.explore-action-menu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(6, 8, 14, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.explore-action-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.explore-action-item {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.explore-action-item i {
  color: rgba(255, 255, 255, 0.65);
  width: 18px;
  text-align: center;
}

.explore-action-item:hover {
  background: rgba(0, 102, 255, 0.12);
  border-color: rgba(0, 102, 255, 0.35);
  color: white;
}

.explore-action-item:hover i {
  color: white;
}

.explore-action-item.is-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.explore-action-item.is-danger:hover i {
  color: #ef4444;
}

/* Lightbox Like Button - Professional & Minimalist */
.action-btn-icon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 8px 16px;
  border-radius: 100px;
  height: 36px;
  min-width: 60px;
}

.action-btn-icon:hover {
  color: white;
  transform: translateY(-1px);
}

.action-btn-icon.like-trigger.liked {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn-icon.like-trigger.liked i {
  color: #000000; /* Keep heart red or black based on preference, user asked for professional */
}

/* Menu Trigger Button */
.action-btn-icon.menu-trigger {
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid transparent;
}


.media-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Prompt Box Compact */
.prompt-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  margin-top: 8px;
}

.prompt-text {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #a0a0b0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.copy-prompt-btn-inline {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.copy-prompt-btn-inline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
}

.tag-pill:hover {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-primary);
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
  border-radius: 16px;
}

.comments-header {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.comment-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #333;
  flex-shrink: 0;
}

.placeholder-avatar {
    background-image: url('../images/syntia-logo.png'); /* Fallback */
    background-size: cover;
}

.comment-input {
  background: transparent;
  border: none;
  color: white;
  flex: 1;
  font-size: 0.9rem;
  outline: none;
}

.send-comment-btn {
  background: transparent;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}

.send-comment-btn:hover {
    transform: scale(1.1);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comment-item {
  display: flex;
  gap: 12px;
  animation: fadeUp 0.3s ease forwards;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
}

.author-badge {
  background: var(--accent-primary);
  color: white;
  font-size: 0.6rem;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.comment-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.liked-by-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  width: fit-content;
}

.liked-by-author-badge i {
  color: #ef4444;
}

.comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-action-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.comment-action-btn:hover {
  color: var(--text-secondary);
}

.sidebar-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 16, 0.6);
  flex-shrink: 0;
}

/* Recreate Button - Glowing Style (Try Syntia style) */
.recreate-btn-glow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  
  /* Exact styling from create-btn / signup-btn */
  background: linear-gradient(
    135deg,
    rgb(255, 255, 255) 0%,
    #008cffa4 50%,
    rgb(254, 254, 255) 100%
  );
  background-size: 300% 300%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4), 0 0 30px rgba(0, 102, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: gradientShift 4s ease-in-out infinite;
}

.recreate-btn-glow:hover {
  background: linear-gradient(
    135deg,
    rgb(255, 255, 255) 0%,
    #008cffa4 50%,
    rgb(254, 254, 255) 100%
  );
  background-size: 300% 300%;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
  animation: gradientShift 1.5s ease-in-out infinite,
    buttonPulse 2s ease-in-out infinite;
}

/* Remove Card Badges */
.card-badge {
  display: none !important;
}

/* Badge Pro Remove */
.badge-pro {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Pagination */
/* -------------------------------------------------------------------------- */
.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 52px;
}

.pagination-info {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.pagination-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: rgba(10, 10, 16, 0.6);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  width: min(680px, 92vw);
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 140px;
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.02);
}

.pagination-btn:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 4px;
}

.page-number {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.18s ease;
}

.page-number:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-number.active {
  color: #0a0a0a;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

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

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.7),
      0 0 0 2px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3),
      0 0 20px rgba(59, 130, 246, 0.4);
  }
}

.slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Modal */

@media (max-width: 768px) {
  .fullscreen-modal-container {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .fullscreen-media-wrapper {
    min-height: 40vh;
  }
  
  .fullscreen-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--glass-border);
    flex: none; /* Allow it to take natural height */
  }
  
  .sidebar-scroll-content {
    overflow: visible; /* Let container scroll */
  }
  
  .explore-hero {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}
