/**
 * Veewom.com - PS2 BIOS Hub Stylesheet
 * Scoped to /ps2bios-download/ section. Reuses Veewom core theme & Bootstrap 3.
 */

/* Content Typography & Spacing */
#vee-content h1, 
#vee-title h1 {
  font-family: 'Sitka Heading', Raleway, 'Helvetica Neue', Arial, sans-serif;
  font-size: 28px;
  line-height: 38px;
  color: #1a1a1a;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: none;
  text-align: left;
}

#vee-content h2 {
  font-family: 'Sitka Heading', Raleway, 'Helvetica Neue', Arial, sans-serif;
  font-size: 22px;
  line-height: 32px;
  color: #222;
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2f5;
  font-weight: 700;
  text-shadow: none;
}

#vee-content h3 {
  font-family: 'Sitka Heading', Raleway, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 26px;
  color: #333;
  margin-top: 25px;
  margin-bottom: 12px;
  font-weight: 600;
  text-shadow: none;
}

#vee-content p {
  font-family: 'Open Sans', Verdana, sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #3a3a3a;
  text-align: left;
  margin-bottom: 18px;
}

#vee-content ul, 
#vee-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

#vee-content ul li {
  list-style: disc;
  font-family: 'Open Sans', Verdana, sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #3a3a3a;
  margin-bottom: 8px;
}

#vee-content ol li {
  list-style: decimal;
  font-family: 'Open Sans', Verdana, sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #3a3a3a;
  margin-bottom: 8px;
}

/* Meta Bar */
.ps2-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #f8fafc;
  border-left: 4px solid #8dc73f;
  padding: 10px 16px;
  margin-bottom: 25px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  color: #64748b;
}

.ps2-article-meta span {
  margin-right: 18px;
  display: inline-flex;
  align-items: center;
}

.ps2-article-meta i {
  color: #8dc73f;
  margin-right: 6px;
}

/* Table of Contents */
.ps2-toc-container {
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 25px 0 35px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ps2-toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.ps2-toc-title i {
  color: #8dc73f;
  margin-right: 8px;
}

.ps2-toc-list {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.ps2-toc-list li {
  list-style: none !important;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 20px;
}

.ps2-toc-list li a {
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.ps2-toc-list li a:hover {
  color: #8dc73f;
  padding-left: 4px;
}

.ps2-toc-list li.sub-item {
  padding-left: 20px;
}

/* Callout Boxes */
.ps2-callout {
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: 4px;
  border-left: 4px solid;
  font-size: 14px;
  line-height: 22px;
}

.ps2-callout h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.ps2-callout h4 i {
  margin-right: 8px;
  font-size: 16px;
}

.ps2-callout-info {
  background-color: #f0f7ff;
  border-color: #0284c7;
  color: #0369a1;
}
.ps2-callout-info h4 { color: #0284c7; }

.ps2-callout-tip {
  background-color: #f2fcf0;
  border-color: #8dc73f;
  color: #27670e;
}
.ps2-callout-tip h4 { color: #53940c; }

.ps2-callout-warning {
  background-color: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.ps2-callout-warning h4 { color: #d97706; }

.ps2-callout-danger {
  background-color: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
}
.ps2-callout-danger h4 { color: #dc2626; }

/* Step-by-Step Cards */
.ps2-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps2-step-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ps2-step-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.ps2-step-number {
  background-color: #8dc73f;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-right: 14px;
  flex-shrink: 0;
}

.ps2-step-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

/* Code & File Paths */
.ps2-code-box {
  background: #1e293b;
  color: #f8fafc;
  padding: 14px 18px;
  border-radius: 5px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 20px;
  overflow-x: auto;
  margin: 14px 0 18px 0;
  position: relative;
}

.ps2-inline-code {
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  border: 1px solid #e2e8f0;
}

/* Tables */
.ps2-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.ps2-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
}

.ps2-table th {
  background-color: #1e293b;
  color: #ffffff;
  font-weight: 600;
  padding: 12px 14px;
  font-size: 13px;
  border: 1px solid #334155;
  text-align: left;
}

.ps2-table td {
  padding: 11px 14px;
  font-size: 13px;
  line-height: 20px;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.ps2-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.ps2-table tbody tr:hover {
  background-color: #f1f5f9;
}

/* Badges */
.ps2-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ps2-badge-green { background-color: #dcfce7; color: #166534; }
.ps2-badge-blue  { background-color: #dbeafe; color: #1e40af; }
.ps2-badge-yellow{ background-color: #fef9c3; color: #854d0e; }
.ps2-badge-red   { background-color: #fee2e2; color: #991b1b; }

/* FAQ Accordion */
.ps2-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ffffff;
}

.ps2-faq-question {
  padding: 16px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  transition: background-color 0.2s ease;
}

.ps2-faq-question:hover {
  background-color: #f1f5f9;
}

.ps2-faq-question i {
  color: #8dc73f;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.ps2-faq-item.active .ps2-faq-question i {
  transform: rotate(180deg);
}

.ps2-faq-answer {
  padding: 18px 20px;
  font-size: 14px;
  line-height: 24px;
  color: #334155;
  display: none;
  border-top: 1px solid #e2e8f0;
}

.ps2-faq-item.active .ps2-faq-answer {
  display: block;
}

/* Sidebar Customization */
.ps2-sidebar-nav {
  margin-bottom: 25px;
}

.ps2-sidebar-nav .cat-list li a.active-link {
  background-color: #8dc73f;
  color: #ffffff !important;
  font-weight: 700;
}

.ps2-sidebar-nav .cat-list li a.active-link i {
  color: #ffffff;
}

/* Bottom Pagination & Hub Cards */
.ps2-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 25px 0 35px 0;
}

.ps2-hub-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 18px;
  background: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ps2-hub-card:hover {
  transform: translateY(-2px);
  border-color: #8dc73f;
  box-shadow: 0 4px 12px rgba(141, 199, 63, 0.15);
  text-decoration: none;
}

.ps2-hub-card h4 {
  margin-top: 0;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.ps2-hub-card p {
  font-size: 13px;
  line-height: 20px;
  color: #64748b;
  margin-bottom: 12px;
}

.ps2-hub-card .card-cta {
  font-size: 12px;
  font-weight: 600;
  color: #8dc73f;
  display: inline-flex;
  align-items: center;
}

.ps2-hub-card .card-cta i {
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.ps2-hub-card:hover .card-cta i {
  transform: translateX(4px);
}

/* Touch targets and mobile usability */
@media (max-width: 767px) {
  #vee-content h1, 
  #vee-title h1 {
    font-size: 22px;
    line-height: 30px;
  }
  #vee-content h2 {
    font-size: 19px;
    line-height: 27px;
  }
  .ps2-step-card {
    padding: 16px;
  }
  .ps2-article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .ps2-article-meta span {
    margin-right: 0;
    margin-bottom: 6px;
  }
}

/* User Download Cards Section (Matches UI Specification) */
.ps2-dl-wrapper {
  background: #eaf3fa;
  border: 1px solid #d4e4f5;
  border-radius: 12px;
  padding: 20px 16px;
  margin: 28px 0 35px 0;
}

.ps2-dl-wrapper-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ps2-dl-wrapper-title span.badge-info-note {
  font-size: 11px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 4px;
}

.ps2-dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.ps2-dl-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ps2-dl-card:hover {
  transform: translateY(-2px);
  border-color: #0070d2;
  box-shadow: 0 4px 12px rgba(0, 112, 210, 0.12);
}

.ps2-dl-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.ps2-dl-sub1 {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.ps2-dl-sub2 {
  font-size: 11px;
  color: #94a3b8;
  margin: 0 0 14px 0;
  line-height: 1.3;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps2-dl-btn {
  background-color: #0070d2;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 140px;
}

.ps2-dl-btn:hover {
  background-color: #0056b3;
  color: #ffffff !important;
  text-decoration: none !important;
}

.ps2-dl-btn i {
  font-size: 12px;
}

/* Tablet Responsive */
@media (max-width: 991px) and (min-width: 576px) {
  .ps2-dl-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}

/* Mobile Responsive */
@media (max-width: 575px) {
  .ps2-dl-wrapper {
    padding: 16px 12px;
  }
  .ps2-dl-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ps2-dl-card {
    padding: 16px 14px;
  }
  .ps2-dl-sub2 {
    min-height: auto;
    margin-bottom: 12px;
  }
  .ps2-dl-btn {
    max-width: 200px;
  }
}

