/* ============ CONTAINER ============ */
.sgd-container {
  max-width: 1290px;
  width: 100%;
  margin: 40px auto;
  padding: 3rem 1.5rem 2rem;
  font-family: 'Segoe UI', sans-serif;
  color: #212121;
  background-color: #fff;
}

/* ============ HEADER & INFO ============ */
.sgd-slot-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 0;
}

.sgd-thumbnail {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sgd-slot-info {
  flex: 1;
}

.sgd-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
  margin-bottom: 10px;
}

.sgd-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  color: #fff;
}

.badge-popular {
  background: #ff9800;
}

.badge-rtp {
  background: #f44336;
}

.sgd-meta-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}

.sgd-meta-list li {
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* RTP bar style */
.rtp-bar-wrapper {
  grid-column: span 2;
}

.rtp-bar {
  position: relative;
  background: #e0e0e0;
  border-radius: 8px;
  height: 20px;
  margin-top: 6px;
  overflow: hidden;
}

.rtp-bar-fill {
  background: linear-gradient(to right, #00c853, #ffca28);
  height: 100%;
  width: 0%;
  transition: width 1s ease-out;
  border-radius: 8px;
}

.rtp-bar-label {
  position: absolute;
  right: 10px;
  top: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: bold;
  color: #fff;
}

@media (max-width: 768px) {
  .sgd-slot-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sgd-meta-list {
    grid-template-columns: 1fr;
  }
}

/* ============ ACTION BUTTONS ============ */
.sgd-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sgd-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 15px;
}

.sgd-btn.demo {
  background: #e0f7fa;
  color: #007b8a;
}

.sgd-btn.demo:hover {
  background: #b2ebf2;
}

.sgd-btn.main {
  background: linear-gradient(135deg, #ff4b2b, #ff416c);
  color: #fff;
  box-shadow: 0 4px 8px rgba(255, 75, 43, 0.3);
}

.sgd-btn.main:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(255, 75, 43, 0.4);
}

/* ============ CONTENT AREA ============ */
.sgd-content {
  max-width: 100%;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.sgd-content h2 {
  margin-top: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
}

.sgd-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.sgd-content th,
.sgd-content td {
  padding: 0.6rem 1rem;
  border: 1px solid #ccc;
}

.sgd-info-table th {
  width: 30%;
  background: #f9f9f9;
  text-align: left;
}

/* ============ PROS & CONS ============ */
.sgd-pros-cons {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sgd-pros-cons .pros,
.sgd-pros-cons .cons {
  flex: 1;
  background: #fafafa;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sgd-pros-cons ul {
  padding-left: 1rem;
  margin: 0.5rem 0;
}

/* ============ COMPARISON TABLE ============ */
.sgd-comparison-table table {
  width: 100%;
  border: 1px solid #ddd;
}

.sgd-comparison-table th {
  background: #f0f0f0;
  text-align: left;
}

.sgd-comparison-table td a {
  color: #0288d1;
}

/* ============ CAROUSEL ============ */
.sgd-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-content: center;
  margin-top: 1rem;
}

.sgd-related-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sgd-related-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sgd-related-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center center;
  background: #fff;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.sgd-related-item span {
  display: block;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* ============ SHARE BUTTONS ============ */
.sgd-share {
  margin-top: 3rem;
}

.sgd-share-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sgd-share-buttons a {
  padding: 0.6rem 1.2rem;
  background: #ececec;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.sgd-share-buttons a:hover {
  background: #333;
  color: #fff;
}

/* ============ STICKY CTA (MOBILE) ============ */
.sgd-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 99;
  gap: 10px;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateY(100%);
  opacity: 0;
}

.sgd-sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .sgd-sticky-cta {
    display: flex;
    flex-direction: row;
  }
}

/* ============ PAGINATION ============ */

.sgd-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

.sgd-pagination li {
  display: inline-block;
}

.sgd-pagination li a,
.sgd-pagination li span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: #f3f3f3;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  min-width: 36px;
  text-align: center;
}

.sgd-pagination li .current {
  background: #ff5722;
  color: #fff;
  font-weight: bold;
}

@media (max-width: 480px) {
  .sgd-pagination ul {
    flex-wrap: wrap;
    gap: 4px;
  }
}