/* =============================================================================
   retrieve.css — Retrieve Video page styles (Claim Code functionality)
   Used by: retrieve.html only
   Includes: Desktop UI + Mobile UI styles
   ============================================================================= */

/* ═══════════════════════════════════════════════════════════════════════════════
   DESKTOP UI STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.cf-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 5% 6rem;
}

.cf-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.cf-hero-icon {
  width: 72px;
  height: 72px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem;
}

.cf-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.cf-hero p {
  color: #546180;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-banner {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid #f59e0b;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.info-banner i {
  color: #f59e0b;
  margin-right: 0.5rem;
}

.info-banner strong {
  color: #f59e0b;
}

.cf-card {
  background: #0d1017;
  border: 1px solid #1e2d45;
  border-radius: 32px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.cf-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.claim-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.claim-input-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.claim-input {
  flex: 1;
  min-width: 200px;
  background: #070c16;
  border: 2px solid #1e2d45;
  border-radius: 60px;
  padding: 0.85rem 1.5rem;
  color: #f1f5f9;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.15s;
}

.claim-input::placeholder {
  color: #2d3a5a;
  letter-spacing: 0.05em;
}

.claim-input:focus {
  outline: none;
  border-color: #6366f1;
}

.turnstile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.turnstile-note {
  font-size: 0.75rem;
  color: #3f5070;
  display: none;
}

.turnstile-note.visible {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-check {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-check:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-check:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.cf-result {
  margin-top: 1.2rem;
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  display: none;
}

.cf-result.visible {
  display: block;
}

.cf-result.pending {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cf-result.completed {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.cf-result.failed {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cf-result.notfound {
  background: rgba(100, 116, 139, 0.06);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.result-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.result-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.result-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.cf-result.pending .result-title {
  color: #f59e0b;
}

.cf-result.completed .result-title {
  color: #34d399;
}

.cf-result.failed .result-title {
  color: #f87171;
}

.cf-result.notfound .result-title {
  color: #8897b3;
}

.result-meta {
  font-size: 0.8rem;
  color: #546180;
  line-height: 1.7;
}

.result-meta strong {
  color: #8897b3;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 0.75rem 1.8rem;
  border-radius: 60px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  border: none;
  cursor: pointer;
}

.btn-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

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

.saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.saved-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-clear-saved {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-clear-saved:hover {
  background: rgba(239, 68, 68, 0.1);
}

.saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.saved-item {
  background: #070c16;
  border: 1px solid #1a2035;
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  transition: border-color 0.15s;
}

.saved-item:hover {
  border-color: #2d3a5a;
}

.saved-code {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #818cf8;
  letter-spacing: 0.08em;
  flex: 1;
  cursor: pointer;
}

.saved-code:hover {
  color: #a5b4fc;
}

.saved-date {
  font-size: 0.72rem;
  color: #3f5070;
}

.saved-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-unknown {
  background: rgba(100, 116, 139, 0.15);
  color: #8897b3;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.badge-queued {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-completed {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-failed {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-check-saved {
  background: transparent;
  border: 1px solid #1e2d45;
  color: #c7d2e8;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-check-saved:hover {
  border-color: #6366f1;
  color: #818cf8;
}

.saved-empty {
  text-align: center;
  padding: 2rem;
  color: #2d3a5a;
  font-size: 0.85rem;
}

.saved-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

.cf-ttl-note {
  text-align: center;
  font-size: 0.78rem;
  color: #2d3a5a;
  margin-top: 2rem;
  line-height: 1.8;
}

.realtime-note {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 0.8rem;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
}

.realtime-note a {
  color: #818cf8;
  text-decoration: none;
}

.realtime-note a:hover {
  color: #a5b4fc;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MOBILE UI STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

#mobile-retrieve-ui {
  display: none;
  padding-top: 60px;
  background: #04060c;
  min-height: 100vh;
}

.mob-retrieve-hero {
  padding: 2rem 1.2rem 1.6rem;
  text-align: center;
  background: linear-gradient(180deg, #070c16 0%, #04060c 100%);
  border-bottom: 1px solid #1e2d45;
}

.mob-retrieve-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  margin-bottom: 1rem;
}

.mob-retrieve-hero h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.mob-retrieve-hero h1 span {
  color: #818cf8;
}

.mob-retrieve-hero p {
  font-size: 0.9rem;
  color: #8897b3;
  max-width: 340px;
  margin: 0 auto 1.2rem;
  line-height: 1.55;
}

.mob-retrieve-form-wrap {
  padding: 1.2rem 1rem 2rem;
}

.mob-retrieve-card {
  background: #111827;
  border: 1px solid #1e2d45;
  border-radius: 24px;
  overflow: hidden;
}

.mob-retrieve-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #1e2d45;
  background: #0d1421;
}

.mob-retrieve-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.mob-retrieve-card-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.2;
}

.mob-retrieve-card-header p {
  font-size: 0.78rem;
  color: #8897b3;
  margin: 0;
}

.mob-retrieve-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mob-retrieve-input {
  width: 100%;
  background: #070c16;
  border: 2px solid #1e2d45;
  border-radius: 60px;
  padding: 0.8rem 1rem;
  color: #f1f5f9;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.15s;
  text-align: center;
}

.mob-retrieve-input:focus {
  outline: none;
  border-color: #6366f1;
}

.mob-retrieve-turnstile {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0;
}

.mob-retrieve-btn-check {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: 60px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mob-retrieve-btn-check:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.mob-retrieve-result {
  margin-top: 0.5rem;
  border-radius: 16px;
  padding: 0.9rem;
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mob-retrieve-result.visible {
  display: block;
}

.mob-result-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.mob-result-icon {
  font-size: 1.2rem;
}

.mob-result-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.mob-result-meta {
  font-size: 0.78rem;
  color: #546180;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.mob-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mob-btn-download {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: opacity 0.2s;
}

.mob-retrieve-saved {
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 0.5rem;
}

.mob-saved-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.2rem;
}

.mob-saved-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mob-clear-saved {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  cursor: pointer;
}

.mob-saved-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mob-saved-item {
  background: #070c16;
  border: 1px solid #1a2035;
  border-radius: 12px;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.mob-saved-code {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #818cf8;
  flex: 1;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.mob-saved-date {
  font-size: 0.65rem;
  color: #3f5070;
}

.mob-saved-badge {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
}

.mob-btn-load {
  background: transparent;
  border: 1px solid #1e2d45;
  color: #c7d2e8;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  cursor: pointer;
}

/* Mobile footer styles */
.mob-on-footer {
  background: #0b1120;
  border-top: 1px solid #1e2d45;
  padding: 2rem 1.2rem 1.2rem;
  margin-top: 1rem;
}

.mob-on-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  margin-bottom: 1.5rem;
}

.mob-on-footer-logo-col {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.mob-on-footer-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #c7d2e8;
}

.mob-on-footer-logo img {
  height: 32px;
  width: auto;
}

.mob-on-footer-tagline {
  font-size: 0.75rem;
  color: #546180;
}

.mob-on-footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.7rem;
  border-left: 2px solid #4f46e5;
  padding-left: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mob-on-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mob-on-footer-col a {
  color: #8897b3;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.15s;
}

.mob-on-footer-col a:active {
  color: #818cf8;
}

.mobile-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #8897b3;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 30px;
  border: 1px solid #1e2d45;
  background: #111827;
  transition: color 0.15s, border-color 0.15s;
}

.mobile-social-links a:active {
  color: #818cf8;
  border-color: #4f46e5;
}

.mob-on-footer-email {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid #1e2d45;
  border-bottom: 1px solid #1e2d45;
  margin-bottom: 1rem;
}

.mob-on-footer-email a {
  color: #8897b3;
  font-size: 0.78rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.mob-on-footer-email a i {
  color: #818cf8;
}

.mob-on-footer-email a:active {
  color: #c7d2e8;
}

.mob-on-footer-copy {
  text-align: center;
  font-size: 0.72rem;
  color: #546180;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .mob-retrieve-hero h1 {
    font-size: 1.6rem;
  }
  .mob-retrieve-card-header {
    flex-direction: column;
    text-align: center;
  }
}
