/* ==========================================================================
   Components - Reusable UI Elements
   ========================================================================== */

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: var(--border-width-2) solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-text);
  color: var(--color-white);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-full);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-text);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button (Outline) */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-full);
}

.btn-secondary:hover {
  background-color: var(--color-text);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

/* Button with Icon */
.btn svg,
.btn .icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.card {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border);
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.card-description {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* -------------------------------------------------------------------------
   Tags / Badges
   ------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  background-color: rgba(var(--color-primary-rgb), 0.1);
  border-radius: var(--radius-full);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.tag-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Skill Cards
   ------------------------------------------------------------------------- */
.skill-card {
  padding: var(--space-8);
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  text-align: left;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.skill-card:hover .skill-icon {
  background-color: var(--color-accent);
  color: white;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-5);
  font-size: var(--font-size-xl);
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.skill-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Form Elements
   ------------------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--color-text-light);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* -------------------------------------------------------------------------
   Social Links
   ------------------------------------------------------------------------- */
.social-links {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-text-muted);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.social-link:hover {
  color: white;
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* -------------------------------------------------------------------------
   Section Title
   ------------------------------------------------------------------------- */
.section-header {
  text-align: left;
  max-width: 800px;
  margin-bottom: var(--space-16);
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}

.section-label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.section-description {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

.section-header.center .section-description {
  margin: 0 auto;
}

.section-header-gradient {
  position: relative;
  padding: var(--space-24) var(--space-8);
  background-image: url('../prototypes/gradient2.png');
  background-size: 50%;
  background-position: calc(50% - 100px) calc(50% - 30px);
  background-repeat: no-repeat;
  border-radius: var(--radius-xl);
}

.section-header-gradient .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

/* -------------------------------------------------------------------------
   Divider
   ------------------------------------------------------------------------- */
.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  border: none;
}

/* -------------------------------------------------------------------------
   Project Overlay Modal
   ------------------------------------------------------------------------- */
.project-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-overlay-container {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(255, 255, 255, 0.05),
    0 0 120px rgba(255, 255, 255, 0.03),
    0 0 200px rgba(255, 255, 255, 0.02),
    0 25px 80px -12px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.project-overlay.active .project-overlay-container {
  transform: scale(1);
}

/* Desktop/Web browser - with margins */
.project-overlay[data-device="desktop"] .project-overlay-container {
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  max-width: 1440px;
}

/* Tablet - iPad-like dimensions */
.project-overlay[data-device="tablet"] .project-overlay-container {
  width: auto;
  height: calc(100% - 80px);
  max-height: 1024px;
  aspect-ratio: 3 / 4;
}

/* Mobile - Phone dimensions */
.project-overlay[data-device="mobile"] .project-overlay-container {
  width: auto;
  height: calc(100% - 80px);
  max-height: 844px;
  aspect-ratio: 9 / 19.5;
}

.project-overlay-header {
  display: none;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 24px;
  background: #ffffff;
}

.project-overlay[data-has-title="true"] .project-overlay-header {
  display: flex;
}

.project-overlay-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.project-overlay-close {
  display: none;
  position: fixed;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10002;
}

.project-overlay-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.project-overlay-close svg {
  width: 12px;
  height: 12px;
}

.project-overlay-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-overlay[data-has-title="true"] .project-overlay-content {
  height: calc(100% - 52px);
}

.project-overlay-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
}

/* Make project preview clickable */
.project-image-preview {
  cursor: pointer;
}

.project-image-preview:hover .project-image-overlay {
  opacity: 1;
}

.project-image-preview:hover .project-image-overlay span {
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-overlay[data-device="desktop"] .project-overlay-container {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
  }

  .project-overlay-close {
    top: 12px;
    right: 16px;
  }
}

/* Project Overlay Header - Updated Layout */
.project-overlay-header {
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: none;
  background: #1a1a1a;
}

.project-overlay[data-has-title="true"] .project-overlay-header {
  display: flex;
}

.project-overlay-header-left {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 12px;
}

.project-overlay-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
}

.project-overlay-live-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #f97316;
  border-radius: 50%;
  animation: pulse-orange 2s ease-in-out infinite;
}

@keyframes pulse-orange {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
}

.live-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-overlay-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.project-overlay-header-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.project-overlay-header-close svg {
  width: 16px;
  height: 16px;
}

/* Header Right Container */
.project-overlay-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* What to Test Button */
.project-overlay-test-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.project-overlay-test-btn:hover {
  color: #ffffff;
}

.project-overlay-test-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

/* Test Instructions Panel */
.project-overlay-test-panel {
  position: absolute;
  top: 50px;
  right: 0;
  width: 340px;
  max-height: calc(100% - 70px);
  background: #1a1a1a;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 0 12px;
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-overlay-test-panel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.test-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.test-panel-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.test-panel-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.test-panel-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.test-panel-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
}

.test-panel-content h5 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.test-panel-content ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.test-panel-content li {
  margin-bottom: 8px;
}

.test-panel-content li:last-child {
  margin-bottom: 0;
}

.test-panel-section {
  margin-bottom: 24px;
}

.test-panel-section:last-child {
  margin-bottom: 0;
}

.test-panel-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 20px;
  background: rgba(255, 180, 0, 0.1);
  border-top: 1px solid rgba(255, 180, 0, 0.2);
  color: rgba(255, 200, 100, 0.9);
  font-size: 12px;
  line-height: 1.5;
}

.test-panel-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(255, 180, 0, 0.8);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .project-overlay-test-btn span {
    display: none;
  }

  .project-overlay-test-btn {
    padding: 6px 8px;
  }

  .project-overlay-test-panel {
    width: 100%;
    border-radius: 0;
    border-left: none;
  }
}

/* ==========================================================================
   Image Lightbox - For viewing full-size screenshots
   ========================================================================== */

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-lightbox.active {
  display: flex;
}

.image-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.image-lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-lightbox.active .image-lightbox-container {
  /* no transform needed */
}

.image-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10002;
}

.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.image-lightbox-close svg {
  width: 20px;
  height: 20px;
}

.image-lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.image-lightbox-content img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Make screenshot items clickable */
.screenshot-item {
  cursor: pointer;
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
}

.screenshot-frame::after {
  content: "Click to enlarge";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screenshot-item:hover .screenshot-frame::after {
  opacity: 1;
}

/* Hide hover overlay for mobile UI section screenshots */
.screenshot-item:hover [data-mobile-lightbox]::after {
  opacity: 0 !important;
}

@media (max-width: 768px) {
  .image-lightbox-container {
    max-width: calc(100% - 32px);
    max-height: calc(100% - 32px);
  }

  .image-lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

/* -------------------------------------------------------------------------
   Fixed Screenshot Frames (Publishing Dashboard)
   ------------------------------------------------------------------------- */
.screenshot-frame.screenshot-frame-fixed {
  width: 480px;
  height: 300px;
  border-radius: 16px !important;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
  border: 2px solid #000 !important;
  box-shadow: none;
  flex-shrink: 0;
}

.screenshot-frame.screenshot-frame-fixed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.3s ease;
}

.screenshot-frame.screenshot-frame-fixed:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.screenshot-frame.screenshot-frame-fixed:hover img {
  transform: scale(1.02);
}

/* Scrollable variant - for tall images */
.screenshot-frame-scroll {
  overflow-y: auto;
  overflow-x: hidden;
}

.screenshot-frame-scroll img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top;
}

.screenshot-frame-scroll:hover img {
  transform: none;
}

/* Custom scrollbar for scroll frames */
.screenshot-frame-scroll::-webkit-scrollbar {
  width: 6px;
}

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

.screenshot-frame-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.screenshot-frame-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Tighter gap and proper sizing for publishing screenshots */
.project-card-linear .screenshot-gallery:not(.screenshot-gallery-mobile) {
  gap: 20px;
}

.project-card-linear .screenshot-item:has(.screenshot-frame-fixed) {
  width: auto;
}

.project-card-linear .screenshot-item .screenshot-frame-fixed {
  width: 480px;
  height: 300px;
}

@media (max-width: 768px) {
  .project-card-linear .screenshot-item .screenshot-frame-fixed {
    width: 360px;
    height: 225px;
  }
}

/* -------------------------------------------------------------------------
   Publishing Lightbox (with header)
   ------------------------------------------------------------------------- */
.publishing-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.publishing-lightbox.active {
  display: flex;
  opacity: 1;
}

.publishing-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
}

.publishing-lightbox-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: calc(100% - 200px);
  height: calc(100% - 80px);
  max-width: 1200px;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 80px -12px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 1;
}

.publishing-lightbox.active .publishing-lightbox-container {
  transform: scale(1);
}

.publishing-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #1a1a1a;
  flex-shrink: 0;
}

.publishing-lightbox-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.publishing-lightbox-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.publishing-lightbox-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.publishing-lightbox-indicator .indicator-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.publishing-lightbox-indicator .indicator-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.publishing-lightbox-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: rgba(255, 255, 255, 0.6);
}

.publishing-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.publishing-lightbox-close svg {
  width: 16px;
  height: 16px;
}

.publishing-lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}

.publishing-lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Fullwidth mode - for tall scrollable screenshots */
.publishing-lightbox-content.fullwidth-mode {
  align-items: flex-start;
  overflow-y: auto;
}

.publishing-lightbox-content.fullwidth-mode img {
  max-height: none;
  width: 100%;
  max-width: 1200px;
}

/* Navigation arrows */
.publishing-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.publishing-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.publishing-lightbox-nav svg {
  stroke: rgba(255, 255, 255, 0.8);
  width: 24px;
  height: 24px;
}

.publishing-lightbox-prev {
  left: 24px;
}

.publishing-lightbox-next {
  right: 24px;
}

.publishing-lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.publishing-lightbox-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .publishing-lightbox-container {
    width: calc(100% - 100px);
    height: calc(100% - 32px);
    border-radius: 8px;
  }

  .publishing-lightbox-header-left {
    gap: 10px;
  }

  .publishing-lightbox-title {
    font-size: 14px;
  }

  .publishing-lightbox-indicator .indicator-text {
    display: none;
  }

  .publishing-lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .publishing-lightbox-nav svg {
    width: 20px;
    height: 20px;
  }

  .publishing-lightbox-prev {
    left: 8px;
  }

  .publishing-lightbox-next {
    right: 8px;
  }
}
