/* SoftwareDetail.css — CyberHive Software Detail Pages */

body { margin: 0; font-family: 'Arial', sans-serif; color: #fff; background: #000; overflow-x: hidden; }
.background { min-height: 100vh; background: linear-gradient(to bottom, #000, #111); }

.content {
  margin: 0 auto; width: 100%; max-width: 900px;
  padding: 200px 20px 120px; box-sizing: border-box;
  overflow-x: hidden;
}

/* ── Back Link ── */
.back-link {
  display: inline-block; margin-bottom: 30px;
  color: #ff9900; text-decoration: none; font-size: 15px;
  transition: color 0.2s;
}
.back-link:hover { color: #ffcc66; }

/* ── Hero Section ── */
.detail-hero {
  display: flex; align-items: center; gap: 30px;
  margin-bottom: 50px; flex-wrap: wrap;
}
.detail-product-icon {
  width: 120px; height: 120px; object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255,153,0,0.3));
}
.detail-hero-text h1 {
  font-size: clamp(24px, 6vw, 42px); color: #ff9900; margin: 0 0 8px;
  font-family: "CyberDyne", Arial, sans-serif;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
  word-break: break-word; overflow-wrap: break-word;
}
.detail-tagline {
  font-size: 18px; color: #ccc; margin: 0 0 15px; font-style: italic;
}
.card-platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.platform-tag {
  background: rgba(255,153,0,0.12); border: 1px solid rgba(255,153,0,0.3);
  border-radius: 8px; padding: 4px 12px; font-size: 13px; color: #ffcc66;
}

/* ── Sections ── */
.detail-section {
  margin-bottom: 50px;
}
.detail-section h2 {
  font-size: 26px; color: #ff9900; margin: 0 0 20px;
  font-family: "Orbitron", Arial, sans-serif;
  border-bottom: 1px solid rgba(255,153,0,0.3); padding-bottom: 10px;
}
.detail-section p {
  font-size: 16px; line-height: 1.7; color: #ccc; margin: 0 0 15px;
  word-break: break-word; overflow-wrap: break-word;
}
.detail-section h2 {
  word-break: break-word; overflow-wrap: break-word;
}

/* ── Screenshots ── */
.detail-screenshots {
  margin-bottom: 50px; padding: 10px 0;
}
.screenshot-gallery {
  display: flex; flex-direction: column; gap: 25px;
}
.screenshot-item {
  text-align: center;
}
.screenshot-item img {
  max-width: 100%; height: auto; border-radius: 12px;
  border: 2px solid rgba(255,153,0,0.3);
  box-shadow: 0 0 20px rgba(255,153,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.screenshot-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255,153,0,0.25);
}
.screenshot-caption {
  color: #888; font-size: 13px; margin-top: 10px; font-style: italic;
}
.placeholder-text {
  color: #555; font-style: italic; text-align: center; width: 100%; padding: 40px 0;
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 25px;
}
.feature-item {
  background: rgba(255,153,0,0.06);
  border: 1px solid rgba(255,153,0,0.2);
  border-radius: 14px; padding: 25px; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(255,153,0,0.15);
}
.feature-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.feature-item h3 {
  font-size: 18px; color: #ff9900; margin: 0 0 8px;
  font-family: "Orbitron", Arial, sans-serif;
}
.feature-item p { font-size: 14px; color: #aaa; margin: 0; line-height: 1.5; }

/* ── Requirements Table ── */
.req-table {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,153,0,0.2);
  border-radius: 12px; overflow: hidden;
}
.req-row {
  display: flex; padding: 12px 20px;
  border-bottom: 1px solid rgba(255,153,0,0.1);
}
.req-row:last-child { border-bottom: none; }
.req-label {
  width: 100px; flex-shrink: 0; color: #ff9900;
  font-weight: bold; font-size: 14px;
}
.req-value { color: #ccc; font-size: 14px; }

/* ── How It Works ── */
.how-it-works { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.step {
  text-align: center; flex: 1; min-width: 180px;
  background: rgba(255,153,0,0.06);
  border: 1px solid rgba(255,153,0,0.2);
  border-radius: 14px; padding: 25px 15px;
}
.step-num {
  display: inline-flex; width: 40px; height: 40px;
  border-radius: 50%; background: #ff9900; color: #000;
  font-weight: bold; font-size: 20px;
  align-items: center; justify-content: center; margin-bottom: 12px;
}
.step p { font-size: 14px; color: #ccc; margin: 0; }

/* ── Deadline List ── */
.deadline-list { display: flex; flex-direction: column; gap: 10px; }
.deadline-item {
  display: flex; align-items: center; gap: 15px;
  background: rgba(0,0,0,0.4); border: 1px solid rgba(255,153,0,0.15);
  border-radius: 10px; padding: 12px 20px;
}
.deadline-freq {
  background: rgba(255,153,0,0.2); color: #ffcc66;
  padding: 3px 10px; border-radius: 6px; font-size: 12px;
  font-weight: bold; min-width: 80px; text-align: center;
}
.deadline-name { color: #ccc; font-size: 15px; }

/* ── Comparison Box ── */
.comparison-box { display: flex; gap: 20px; flex-wrap: wrap; }
.compare-col {
  flex: 1; min-width: 250px; padding: 25px; border-radius: 14px;
}
.compare-bad {
  background: rgba(255,60,60,0.08); border: 1px solid rgba(255,60,60,0.3);
}
.compare-good {
  background: rgba(0,255,100,0.06); border: 1px solid rgba(0,255,100,0.3);
}
.compare-col h3 { font-size: 18px; margin: 0 0 15px; }
.compare-bad h3 { color: #ff6666; }
.compare-good h3 { color: #66ff88; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { padding: 6px 0; font-size: 14px; color: #ccc; }

/* ── CTA Section ── */
.detail-cta {
  text-align: center; padding: 40px;
  background: rgba(255,153,0,0.06);
  border: 2px solid rgba(255,153,0,0.3);
  border-radius: 20px; margin-top: 20px;
}
.price-sats { font-size: 22px; color: #ffcc66; font-weight: bold; }
.card-price { margin-bottom: 20px; }

/* Buy button & download links (shared with Software.css) */
.buy-btn {
  padding: 14px 36px; font-size: 18px; background: #ff9900;
  color: black; border: none; border-radius: 10px; cursor: pointer;
  font-weight: bold; transition: transform 0.3s, background 0.3s;
  box-shadow: 0 4px 15px rgba(255,153,0,0.3);
}
.buy-btn:hover { transform: scale(1.05); background: #ffcc66; }

.download-links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.download-links.hidden { display: none; }
.dl-btn {
  display: inline-block; padding: 10px 20px;
  background: rgba(0,255,100,0.15); border: 1px solid rgba(0,255,100,0.4);
  color: #66ff88; border-radius: 8px; text-decoration: none; font-size: 14px;
  transition: background 0.2s;
}
.dl-btn:hover { background: rgba(0,255,100,0.25); }

/* Payment modal (same as Software.css) */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.modal-overlay.hidden { display: none; }
.modal-content { background: #111; border: 2px solid #ff9900; border-radius: 20px; padding: 40px; max-width: 440px; width: 90%; text-align: center; position: relative; box-shadow: 0 0 60px rgba(255,153,0,0.3); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #888; font-size: 24px; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-content h3 { font-size: 24px; color: #ff9900; font-family: "Orbitron", Arial, sans-serif; margin: 0 0 20px; }
.qr-container { background: #fff; padding: 15px; border-radius: 12px; display: inline-block; margin-bottom: 15px; }
.invoice-amount { font-size: 20px; color: #ffcc66; font-weight: bold; margin: 10px 0 5px; }
.invoice-label { font-size: 14px; color: #888; margin: 0 0 15px; }
.invoice-string-box { display: flex; gap: 8px; margin-bottom: 20px; }
.invoice-string-box input { flex: 1; background: rgba(0,0,0,0.6); border: 1px solid #333; color: #aaa; padding: 10px; border-radius: 8px; font-size: 12px; font-family: monospace; }
.copy-btn { background: #ff9900; color: black; border: none; border-radius: 8px; padding: 10px 14px; cursor: pointer; font-weight: bold; white-space: nowrap; }
.copy-btn:hover { background: #ffcc66; }
.payment-status { display: flex; align-items: center; justify-content: center; gap: 10px; color: #888; font-size: 14px; }
.payment-status.paid { color: #66ff88; }
.spinner { width: 18px; height: 18px; border: 2px solid #333; border-top-color: #ff9900; border-radius: 50%; animation: spin 1s linear infinite; }
.payment-status.paid .spinner { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .content { padding: 140px 12px 80px; }
  .detail-hero { flex-direction: column; text-align: center; gap: 15px; }
  .detail-hero-text h1 { font-size: clamp(18px, 5.5vw, 28px); white-space: nowrap; }
  .detail-product-icon { width: 80px; height: 80px; }
  .detail-tagline { font-size: 15px; }
  .card-platforms { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .comparison-box { flex-direction: column; }
  .req-row { flex-direction: column; gap: 4px; }
  .req-label { width: auto; }
  .modal-content { padding: 20px 15px; width: 95%; }
  .detail-section h2 { font-size: 20px; }
  .detail-section p { font-size: 14px; }
  .detail-cta { padding: 25px 15px; }
  .buy-btn { font-size: 16px; padding: 12px 28px; }
  .screenshot-item img { border-radius: 8px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .content { padding: 180px 20px 100px; }
  .detail-hero-text h1 { font-size: 36px; }
}
