/* ---------------------------------------------------------------------
   Screenshot Gate Overlay Styles
   ------------------------------------------------------------------ */

.screenshot-gate {
  position: relative;
  width: 100%;
  margin: 48px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(205, 154, 60, 0.05),
    rgba(108, 138, 84, 0.05)
  );
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
}

.gate-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gate-header {
  text-align: center;
  margin-bottom: 32px;
}

.gate-icon {
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin: 0 auto 16px;
  display: block;
}

.gate-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 8px 0;
}

.gate-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Tabs */
.gate-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-deep);
  border-radius: 10px;
  padding: 4px;
}

.gate-tab {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-tab:hover {
  color: var(--cream);
  background: var(--panel);
}

.gate-tab.active {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Tab Content */
.gate-tab-content {
  display: none;
}

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

/* Form Styles */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}

.required {
  color: var(--gold);
}

.gate-field input,
.gate-field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--card-line);
  border-radius: 8px;
  color: var(--cream);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.gate-field input:focus,
.gate-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--panel);
}

.gate-field input::placeholder,
.gate-field textarea::placeholder {
  color: var(--muted-dim);
}

.gate-field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.gate-hint {
  font-size: 13px;
  color: var(--muted-dim);
  margin-top: -2px;
}

/* Button */
.gate-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gate-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(205, 154, 60, 0.3);
}

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

.gate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages */
.gate-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.gate-message:not(:empty) {
  display: block;
}

.gate-message.success {
  background: rgba(108, 138, 84, 0.15);
  border: 1px solid var(--green);
  color: var(--green-light);
}

.gate-message.error {
  background: rgba(205, 60, 60, 0.15);
  border: 1px solid #cd3c3c;
  color: #ff6b6b;
}

/* Reset Link (if added to nav) */
.reset-screenshot-link {
  font-size: 13px;
  color: var(--muted-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.reset-screenshot-link:hover {
  color: var(--gold);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .gate-content {
    padding: 24px 20px;
    margin: 0 16px;
  }

  .gate-header h3 {
    font-size: 20px;
  }

  .gate-subtitle {
    font-size: 14px;
  }

  .gate-icon {
    width: 40px;
    height: 40px;
  }

  .gate-tabs {
    flex-direction: column;
    gap: 4px;
  }

  .gate-tab {
    text-align: center;
  }

  .gate-field input,
  .gate-field textarea {
    padding: 10px 14px;
    font-size: 14px;
  }

  .gate-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

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

.gate-content {
  animation: fadeInUp 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .gate-content {
    animation: none;
  }
}

/* Video Gate Styles */
.video-gate {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: var(--bg-deep);
  border-radius: var(--radius);
  border: 1px solid var(--card-line);
  overflow: hidden;
}

.video-gate-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  min-height: 400px;
  background: linear-gradient(
    135deg,
    rgba(205, 154, 60, 0.08),
    rgba(108, 138, 84, 0.08)
  );
}

.video-gate-icon {
  width: 64px;
  height: 64px;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.9;
}

.video-gate-overlay h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 12px 0;
}

.video-gate-overlay p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 500px;
}

@media (max-width: 640px) {
  .video-gate {
    min-height: 300px;
  }

  .video-gate-overlay {
    padding: 40px 24px;
    min-height: 300px;
  }

  .video-gate-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .video-gate-overlay h3 {
    font-size: 20px;
  }

  .video-gate-overlay p {
    font-size: 14px;
  }
}
