/* =============================================================================
   WORKSHOP MEGA MENU - ID-Based Modern Design
   ============================================================================= */

/* CSS Custom Properties – colours bridge to central theme.css tokens */
:root {
  /* Spacing */
  --ws-space-xs: 6px;
  --ws-space-sm: 10px;
  --ws-space-md: 14px;
  --ws-space-lg: 18px;
  --ws-space-xl: 24px;

  /* Border Radius */
  --ws-radius-sm: 6px;
  --ws-radius-md: 10px;
  --ws-radius-lg: 14px;

  /* Animation */
  --ws-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Colors — mapped from central --z-* tokens */
  --ws-bg-primary:       var(--z-bg);
  --ws-bg-secondary:     var(--z-surface-1);
  --ws-surface:          var(--z-surface-2);
  --ws-surface-hover:    var(--z-surface-3);

  --ws-text-primary:     var(--z-text);
  --ws-text-secondary:   var(--z-text-sec);
  --ws-text-muted:       var(--z-text-muted);

  --ws-border:           var(--z-border);
  --ws-border-light:     var(--z-border-accent);

  --ws-brand-primary:    var(--z-accent);
  --ws-brand-light:      var(--z-accent-light);

  --ws-gradient-primary: var(--z-accent-gradient);
  --ws-gradient-surface: linear-gradient(135deg, var(--z-surface-1), var(--z-surface-2));
  --ws-gradient-hover:   linear-gradient(135deg, var(--z-accent-glow), transparent);

  --ws-shadow-sm:   0 2px 8px rgba(0,0,0,0.15);
  --ws-shadow-md:   0 8px 24px rgba(0,0,0,0.22);
  --ws-shadow-lg:   0 16px 48px rgba(0,0,0,0.3);

  --ws-success:          var(--z-success);
}

/* =============================================================================
   WORKSHOP BUTTON
   ============================================================================= */

/* Workshop Button Container */
.modern-navbar .workshop-dropdown {
  position: relative;
}

/* Workshop Button Styling */
#workshopDropdown {
  background: transparent;
  border: none;
  color: var(--ws-text-primary);
  transition: var(--ws-transition);
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--ws-radius-sm);
  position: relative;
  overflow: hidden;
}

#workshopDropdown:hover {
  color: var(--ws-brand-primary);
  background: var(--z-accent-glow);
}

/* Workshop Button Content */
#workshopNavContent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  z-index: 2;
}

/* Workshop Icon */
#workshopIconWrapper {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

#workshopNavIcon {
  font-size: 16px;
  transition: var(--ws-transition);
}

/* Workshop Text */
#workshopNavText {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
}

/* Workshop Dropdown Arrow */
#workshopDropdownArrow {
  margin-left: 6px;
  font-size: 12px;
  transition: transform 200ms ease;
}

/* Arrow Animation */
#workshopDropdown[aria-expanded="true"] #workshopDropdownArrow {
  transform: rotate(180deg);
}

/* Workshop Button Effects */
#workshopLinkGlow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ws-gradient-primary);
  opacity: 0;
  transition: var(--ws-transition);
  border-radius: var(--ws-radius-sm);
}

#workshopDropdown:hover #workshopLinkGlow {
  opacity: 0.1;
}

#workshopLinkRipple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#workshopDropdown:active #workshopLinkRipple {
  width: 100px;
  height: 100px;
}

/* Hide Bootstrap's default caret */
.modern-navbar .workshop-dropdown .dropdown-toggle::after {
  display: none !important;
}

/* No forced negative margin — let flex layout handle positioning */

/* =============================================================================
   WORKSHOP MEGA MENU
   ============================================================================= */

/* Main Mega Menu Container */
#workshopMegaMenu {
  position: absolute;
  top: calc(100% + 6px);
  /* Right-align: menu extends leftward so it stays within viewport and away from search */
  right: -16px;
  left: auto;
  transform: translateY(8px);
  width: min(820px, calc(100vw - 48px));
  max-height: min(72vh, 640px);
  background: var(--ws-bg-secondary);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  box-shadow: var(--ws-shadow-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  z-index: 1045;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#workshopMegaMenu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* =============================================================================
   WORKSHOP HEADER
   ============================================================================= */

/* Header Container */
#workshopHeader {
  background: var(--ws-gradient-primary);
  padding: var(--ws-space-lg);
  position: relative;
  overflow: hidden;
}

#workshopHeader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(400px at 50% 0%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

/* Header Content */
#workshopHeaderContent {
  position: relative;
  z-index: 2;
}

#workshopHeaderTitleSection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-md);
  flex-wrap: wrap;
}

/* Workshop Brand */
#workshopBrand {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
}

#workshopBrandIcon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--ws-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  backdrop-filter: blur(8px);
}

#workshopBrandText {
  color: white;
}

#workshopTitle {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: white;
}

#workshopSubtitle {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: 0.85;
  font-weight: 500;
  color: white;
}

/* Workshop Stats */
#workshopStats {
  display: flex;
  align-items: center;
  gap: var(--ws-space-md);
  padding: var(--ws-space-xs) var(--ws-space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--ws-radius-md);
  backdrop-filter: blur(8px);
}

#workshopStatCreators,
#workshopStatAssets {
  text-align: center;
  color: white;
}

#workshopStatCreatorsNumber,
#workshopStatAssetsNumber {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

#workshopStatCreatorsLabel,
#workshopStatAssetsLabel {
  display: block;
  font-size: 11px;
  opacity: 0.8;
  margin-top: 1px;
}

#workshopStatDivider1 {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.25), transparent);
}

/* =============================================================================
   WORKSHOP CONTENT
   ============================================================================= */

/* Content Container — 3-column grid */
#workshopContent {
  padding: var(--ws-space-md);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--ws-space-md);
  max-height: min(50vh, 500px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ws-border) transparent;
}

#workshopContent::-webkit-scrollbar {
  width: 6px;
}

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

#workshopContent::-webkit-scrollbar-thumb {
  background: var(--ws-border);
  border-radius: 3px;
}

/* =============================================================================
   QUICK ACTIONS SECTION
   ============================================================================= */

/* Quick Actions Section */
#workshopQuickActionsSection {
  background: var(--ws-gradient-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: var(--ws-space-md);
  transition: var(--ws-transition);
  opacity: 0;
  transform: translateY(8px);
  animation: slideUp 0.4s ease-out forwards;
  animation-delay: 0.05s;
}

#workshopQuickActionsSection:hover {
  border-color: var(--ws-border-light);
  background: var(--ws-gradient-hover);
}

/* Quick Actions Header */
#workshopQuickActionsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-sm);
  margin-bottom: var(--ws-space-sm);
}

#workshopQuickActionsTitleGroup {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
}

#workshopQuickActionsIcon {
  width: 36px;
  height: 36px;
  background: var(--ws-gradient-primary);
  border-radius: var(--ws-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: var(--ws-shadow-sm);
}

#quickActionsTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ws-text-primary);
  letter-spacing: -0.025em;
}

#workshopQuickActionsDescription {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ws-text-muted);
}

/* Quick Actions Grid — 1 column inside its panel */
#workshopQuickActionsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ws-space-xs);
}

/* Individual Action Items */
#workshopActionUpload,
#workshopActionArtwork,
#workshopActionDiscussion,
#workshopActionMessages {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
  padding: var(--ws-space-sm);
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  color: var(--ws-text-primary);
  text-decoration: none;
  transition: var(--ws-transition);
  position: relative;
  overflow: hidden;
}

#workshopActionUpload::before,
#workshopActionArtwork::before,
#workshopActionDiscussion::before,
#workshopActionMessages::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--ws-gradient-hover);
  transition: var(--ws-transition);
}

#workshopActionUpload:hover::before,
#workshopActionArtwork:hover::before,
#workshopActionDiscussion:hover::before,
#workshopActionMessages:hover::before {
  left: 0;
}

#workshopActionUpload:hover,
#workshopActionArtwork:hover,
#workshopActionDiscussion:hover,
#workshopActionMessages:hover {
  border-color: var(--ws-brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--ws-shadow-md);
}

/* Action Icons */
#workshopActionUploadIcon,
#workshopActionArtworkIcon,
#workshopActionDiscussionIcon,
#workshopActionMessagesIcon {
  width: 36px;
  height: 36px;
  background: var(--ws-gradient-primary);
  border-radius: var(--ws-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: var(--ws-shadow-sm);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* Action Content */
#workshopActionUploadContent,
#workshopActionArtworkContent,
#workshopActionDiscussionContent,
#workshopActionMessagesContent {
  flex: 1;
  position: relative;
  z-index: 2;
}

#workshopActionUploadTitle,
#workshopActionArtworkTitle,
#workshopActionDiscussionTitle,
#workshopActionMessagesTitle {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.2;
  color: var(--ws-success);
}

#workshopActionUploadSubtitle,
#workshopActionArtworkSubtitle,
#workshopActionDiscussionSubtitle,
#workshopActionMessagesSubtitle {
  display: block;
  font-size: 11px;
  color: var(--ws-text-muted);
  line-height: 1.2;
}

/* =============================================================================
   TRENDING DISCUSSIONS SECTION
   ============================================================================= */

/* Trending Section */
#workshopTrendingSection {
  background: var(--ws-gradient-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: var(--ws-space-md);
  transition: var(--ws-transition);
  opacity: 0;
  transform: translateY(8px);
  animation: slideUp 0.4s ease-out forwards;
  animation-delay: 0.1s;
}

#workshopTrendingSection:hover {
  border-color: var(--ws-border-light);
  background: var(--ws-gradient-hover);
}

/* Trending Header */
#workshopTrendingHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-sm);
  margin-bottom: var(--ws-space-sm);
}

#workshopTrendingTitleGroup {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
}

#workshopTrendingIcon {
  width: 36px;
  height: 36px;
  background: var(--ws-gradient-primary);
  border-radius: var(--ws-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: var(--ws-shadow-sm);
}

#trendingDiscussionsTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ws-text-primary);
  letter-spacing: -0.025em;
}

#workshopTrendingDescription {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ws-text-muted);
}

#workshopTrendingViewAll {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text-primary); /* Changed from --ws-text-secondary to --ws-text-primary for lighter color */
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: var(--ws-transition);
}
#workshopTrendingViewAll,
#workshopTrendingViewAll:visited {
  color: var(--ws-text-primary) !important;
}

#workshopTrendingViewAll i {
  color: currentColor !important;
}
#workshopTrendingViewAll:hover {
  background: var(--ws-surface-hover);
  border-color: var(--ws-brand-primary);
  color: var(--ws-brand-primary);
  transform: translateY(-1px);
}
/* Trending List */
#workshopTrendingList {
  display: grid;
  gap: var(--ws-space-xs);
}

#workshopTrendingItem1,
#workshopTrendingItem2,
#workshopTrendingItem3 {
  display: flex;
  align-items: center;
  padding: var(--ws-space-sm);
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text-primary);
  text-decoration: none;
  transition: var(--ws-transition);
}

#workshopTrendingItem1:hover,
#workshopTrendingItem2:hover,
#workshopTrendingItem3:hover {
  background: var(--ws-surface-hover);
  border-color: var(--ws-brand-primary);
  transform: translateX(4px);
}

#workshopTrendingItem1Details,
#workshopTrendingItem2Details,
#workshopTrendingItem3Details {
  flex: 1;
}

#workshopTrendingItem1Title,
#workshopTrendingItem2Title,
#workshopTrendingItem3Title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-text-primary);
  line-height: 1.3;
}

#workshopTrendingItem1Meta,
#workshopTrendingItem2Meta,
#workshopTrendingItem3Meta {
  display: flex;
  gap: var(--ws-space-sm);
  font-size: 11px;
  color: var(--ws-text-muted);
}

/* =============================================================================
   FEATURED CREATORS SECTION
   ============================================================================= */

/* Creators Section */
#workshopCreatorsSection {
  background: var(--ws-gradient-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: var(--ws-space-md);
  transition: var(--ws-transition);
  opacity: 0;
  transform: translateY(8px);
  animation: slideUp 0.4s ease-out forwards;
  animation-delay: 0.15s;
}

#workshopCreatorsSection:hover {
  border-color: var(--ws-border-light);
  background: var(--ws-gradient-hover);
}

/* Creators Header */
#workshopCreatorsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-sm);
  margin-bottom: var(--ws-space-sm);
}

#workshopCreatorsTitleGroup {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
}

#workshopCreatorsIcon {
  width: 36px;
  height: 36px;
  background: var(--ws-gradient-primary);
  border-radius: var(--ws-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: var(--ws-shadow-sm);
}

#featuredCreatorsTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ws-text-primary);
  letter-spacing: -0.025em;
}

#workshopCreatorsDescription {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ws-text-muted);
}

#workshopCreatorsViewAll {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: var(--ws-transition);
}

#workshopCreatorsViewAll:hover {
  background: var(--ws-surface-hover);
  border-color: var(--ws-brand-primary);
  color: var(--ws-brand-primary);
  transform: translateY(-1px);
}

/* Creators Grid — 1 column inside its panel */
#workshopCreatorsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ws-space-xs);
}

/* Creator Cards */
#workshopCreator1Card,
#workshopCreator2Card {
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-md);
  padding: var(--ws-space-sm);
  transition: var(--ws-transition);
  position: relative;
  overflow: hidden;
}

#workshopCreator1Card::before,
#workshopCreator2Card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ws-gradient-primary);
  transform: scaleX(0);
  transition: var(--ws-transition);
}

#workshopCreator1Card:hover::before,
#workshopCreator2Card:hover::before {
  transform: scaleX(1);
}

#workshopCreator1Card:hover,
#workshopCreator2Card:hover {
  border-color: var(--ws-brand-primary);
  transform: translateY(-4px);
  box-shadow: var(--ws-shadow-md);
}

/* Creator Header */
#workshopCreator1Header,
#workshopCreator2Header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ws-space-sm);
}

#workshopCreator1IconContainer,
#workshopCreator2IconContainer {
  width: 40px;
  height: 40px;
  border-radius: var(--ws-radius-sm);
  overflow: hidden;
  border: 1px solid var(--ws-border);
  background: var(--ws-gradient-primary);
  position: relative;
}

#workshopCreator1Bookmark,
#workshopCreator2Bookmark {
  width: 32px;
  height: 32px;
  background: var(--ws-surface-hover);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ws-transition);
  font-size: 12px;
}

#workshopCreator1Bookmark:hover,
#workshopCreator2Bookmark:hover {
  background: var(--ws-brand-primary);
  border-color: var(--ws-brand-primary);
  color: white;
  transform: scale(1.05);
}

/* Creator Content */
#workshopCreator1Content,
#workshopCreator2Content {
  margin-bottom: var(--ws-space-sm);
}

#workshopCreator1Title,
#workshopCreator2Title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ws-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.3;
}

#workshopCreator1Description,
#workshopCreator2Description {
  margin: 0 0 var(--ws-space-sm);
  font-size: 12px;
  color: var(--ws-text-muted);
  line-height: 1.4;
}

#workshopCreator1Meta,
#workshopCreator2Meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-sm);
}

/* Creator Actions */
#workshopCreator1Actions,
#workshopCreator2Actions {
  margin-top: var(--ws-space-sm);
}

#workshopCreator1Button,
#workshopCreator2Button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--ws-gradient-primary);
  border: none;
  border-radius: var(--ws-radius-sm);
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: var(--ws-transition);
  box-shadow: var(--ws-shadow-sm);
}

#workshopCreator1Button:hover,
#workshopCreator2Button:hover {
  transform: translateY(-1px);
  box-shadow: var(--ws-shadow-md);
  filter: brightness(1.05);
}

/* =============================================================================
   WORKSHOP FOOTER
   ============================================================================= */

/* Footer Container */
/* Footer Container */
#workshopFooter {
  background: var(--ws-bg-primary);
  border-top: 1px solid var(--ws-border);
  padding: var(--ws-space-sm);
  flex: 0 0 auto;
}

#workshopFooterContent {
  width: 100%;
}

#workshopFooterSection {
  width: 100%;
}

#workshopFooterTitle {
  margin: 0 0 var(--ws-space-xs);
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Compact Footer Grid */
#workshopFooterGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ws-space-xs);
}

/* Compact Footer Links */
#workshopFooterMarketplace,
#workshopFooterGallery,
#workshopFooterForum,
#workshopFooterContests {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--ws-space-xs);
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  color: var(--ws-text-primary);
  text-decoration: none;
  transition: var(--ws-transition);
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

#workshopFooterMarketplace::before,
#workshopFooterGallery::before,
#workshopFooterForum::before,
#workshopFooterContests::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--ws-gradient-hover);
  transition: var(--ws-transition);
}

#workshopFooterMarketplace:hover::before,
#workshopFooterGallery:hover::before,
#workshopFooterForum:hover::before,
#workshopFooterContests:hover::before {
  left: 0;
}

#workshopFooterMarketplace:hover,
#workshopFooterGallery:hover,
#workshopFooterForum:hover,
#workshopFooterContests:hover {
  border-color: var(--ws-brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--ws-shadow-md);
}

/* Compact Footer Icons */
#workshopFooterMarketplaceIcon,
#workshopFooterGalleryIcon,
#workshopFooterForumIcon,
#workshopFooterContestsIcon {
  width: 24px;
  height: 24px;
  background: var(--ws-gradient-primary);
  border-radius: var(--ws-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  box-shadow: var(--ws-shadow-sm);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-bottom: 4px;
}

/* Compact Footer Content */
#workshopFooterMarketplaceContent,
#workshopFooterGalleryContent,
#workshopFooterForumContent,
#workshopFooterContestsContent {
  flex: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Footer Text Styles */
#workshopFooterMarketplaceTitle,
#workshopFooterGalleryTitle,
#workshopFooterForumTitle,
#workshopFooterContestsTitle {
  font-size: 10px;
  font-weight: bold;
  color: var(--ws-text-primary);
  margin-bottom: 2px;
  line-height: 1.2;
}

#workshopFooterMarketplaceSubtitle,
#workshopFooterGallerySubtitle,
#workshopFooterForumSubtitle,
#workshopFooterContestsSubtitle {
  font-size: 8px;
  color: var(--ws-text-muted);
  line-height: 1.2;
}

/* =============================================================================
   ANIMATIONS & KEYFRAMES
   ============================================================================= */

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

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1100px) {
  #workshopMegaMenu {
    width: min(680px, calc(100vw - 24px));
  }
  #workshopContent {
    grid-template-columns: 1fr 1fr;
  }
  #workshopCreatorsSection {
    grid-column: 1 / -1;
  }
  #workshopCreatorsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  #workshopMegaMenu {
    /* On smaller screens pin to right edge of viewport */
    right: auto;
    left: 0;
    width: min(520px, calc(100vw - 16px));
  }
  #workshopContent {
    grid-template-columns: 1fr;
  }
  #workshopCreatorsSection {
    grid-column: auto;
  }
  #workshopCreatorsGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #workshopMegaMenu {
    position: fixed;
    top: var(--navbar-height, 80px);
    left: 0;
    right: 0;
    width: 100vw;
    transform: translateY(8px);
    border-radius: 0 0 var(--ws-radius-lg) var(--ws-radius-lg);
    max-height: 65vh;
  }
  #workshopMegaMenu.show {
    transform: translateY(0);
  }
  #workshopContent,
  #workshopHeader,
  #workshopFooter {
    padding: var(--ws-space-sm);
  }
  #workshopHeaderTitleSection {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--ws-space-sm);
  }
  #workshopStats {
    width: 100%;
    justify-content: space-around;
  }
  #workshopFooterGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================================================
   ACCESSIBILITY & UTILITIES
   ============================================================================= */

/* Focus States */
#workshopMegaMenu a:focus-visible,
#workshopMegaMenu button:focus-visible {
  outline: 2px solid var(--ws-brand-primary);
  outline-offset: 2px;
  border-radius: var(--ws-radius-sm);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  #workshopMegaMenu,
  #workshopQuickActionsSection,
  #workshopTrendingSection,
  #workshopCreatorsSection,
  #workshopActionUpload,
  #workshopActionArtwork,
  #workshopActionDiscussion,
  #workshopActionMessages,
  #workshopCreator1Card,
  #workshopCreator2Card {
    transition: none !important;
    animation: none !important;
  }
  
  #workshopQuickActionsSection,
  #workshopTrendingSection,
  #workshopCreatorsSection {
    opacity: 1;
    transform: none;
  }
}

/* Loading States */
#workshopMegaMenu.loading {
  pointer-events: none;
}

#workshopMegaMenu.loading #workshopQuickActionsSection,
#workshopMegaMenu.loading #workshopTrendingSection,
#workshopMegaMenu.loading #workshopCreatorsSection {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  #workshopMegaMenu {
    display: none !important;
  }
}