/* Custom Section Styles & Mobile Optimizations for Epson Event Manager */

/* Trust & Verification Badges */
.trust-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 25px 0;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.trust-badge .badge-icon {
  font-size: 1.25rem;
  color: #16a34a;
}

/* Software Verification & Checksum Box */
.checksum-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f172a;
  border-radius: 6px;
  padding: 18px 20px;
  margin: 25px 0;
  font-size: 0.95rem;
}

.checksum-box h3, .checksum-box h4 {
  margin-top: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.checksum-box code {
  background: #e2e8f0;
  padding: 3px 6px;
  border-radius: 4px;
  color: #0f172a;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
  display: inline-block;
  margin-top: 4px;
}

/* Feature & Advance Grid Cards */
.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #1e293b;
}

.feature-card p {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Step-by-Step Flow Styling */
.step-container {
  margin: 25px 0;
  padding-left: 10px;
}

.step-card {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.step-content {
  flex-grow: 1;
  padding-top: 4px;
}

/* Enhanced FAQ Accordions */
.faq-accordion-container {
  margin: 25px 0;
}

.faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.faq-card summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  transition: background 0.15s ease;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #64748b;
  transition: transform 0.2s ease;
}

.faq-card[open] summary::after {
  content: "−";
}

.faq-card[open] summary {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.faq-answer {
  padding: 16px 20px;
  color: #334155;
  line-height: 1.65;
  background: #ffffff;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Ad Placement Optimization & Safe Spacing */
.ad-safe-slot {
  margin: 30px auto;
  padding: 15px 0;
  text-align: center;
  clear: both;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-label {
  font-size: 0.75rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Mobile-Friendly Fixed Bottom Ad Container */
#fixed-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  background: #1f2937;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
  border-top: 1px solid #374151;
  overflow-x: hidden;
  box-sizing: border-box;
}

.ad-close-btn {
  position: absolute;
  top: -16px;
  right: 12px;
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  touch-action: manipulation;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.table-responsive table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.table-responsive th, .table-responsive td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.table-responsive th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

/* Mobile Media Queries */
@media screen and (max-width: 768px) {
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  .checksum-box {
    padding: 14px;
  }
  .feature-card-grid {
    grid-template-columns: 1fr;
  }
  .table-responsive table {
    min-width: 480px;
  }
}
