/* ===== GGR Article Shortcode Styles ===== */
/* Self-contained — no Tailwind dependency */

/* ===== Variables ===== */
:root {
  --ggr-primary: #2c3e50;
  --ggr-primary-light: #34495e;
  --ggr-secondary: #4aa3a0;
  --ggr-secondary-light: #5bb8b5;
  --ggr-secondary-bg: #e8f5f4;
  --ggr-secondary-bg-alt: #f0faf8;
  --ggr-star: #f59e0b;
  --ggr-text: #4a5568;
  --ggr-text-light: #5a6872;
  --ggr-text-muted: #94a3b8;
  --ggr-border: #e2e8f0;
  --ggr-card-bg: #f8fafc;
  --ggr-pro-green: #16a34a;
  --ggr-pro-bg: #f0fdf4;
  --ggr-pro-border: #bbf7d0;
  --ggr-con-red: #dc2626;
  --ggr-con-bg: #fef2f2;
  --ggr-con-border: #fecaca;
  --ggr-callout-gold-bg: #fffbeb;
  --ggr-callout-gold-border: #fde68a;
  --ggr-callout-gold-text: #92400e;
  --ggr-callout-info-bg: #e8f5f4;
  --ggr-callout-info-border: #99d5d3;
  --ggr-callout-info-text: #2c3e50;
  --ggr-callout-update-bg: #f0f4ff;
  --ggr-callout-update-border: #c7d2fe;
  --ggr-callout-update-text: #3730a3;
  --ggr-max-width: 820px;
  --ggr-font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}

/* ===== Listicle Summary ===== */
.ggr-listicle {
  max-width: var(--ggr-max-width);
  margin: 0 auto 32px;
  font-family: var(--ggr-font);
}

.ggr-listicle__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ggr-primary);
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-listicle__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ggr-border);
  border-radius: 12px;
  overflow: hidden;
}

.ggr-listicle__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--ggr-border);
  text-decoration: none;
  transition: background 0.15s ease;
}

.ggr-listicle__item:last-child {
  border-bottom: none;
}

.ggr-listicle__item:hover {
  background: var(--ggr-card-bg);
}

.ggr-listicle__rank {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--ggr-secondary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ggr-listicle__name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--ggr-primary);
}

.ggr-listicle__award {
  font-size: 12px;
  font-weight: 600;
  color: var(--ggr-secondary);
  background: var(--ggr-secondary-bg);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.ggr-listicle__score {
  font-size: 14px;
  font-weight: 800;
  color: var(--ggr-secondary);
  white-space: nowrap;
}

.ggr-listicle__arrow {
  color: var(--ggr-text-muted);
  font-size: 14px;
}

/* ===== Product Card ===== */
.ggr-product {
  max-width: var(--ggr-max-width);
  margin: 0 auto 32px;
  background: #fff;
  border: 1px solid var(--ggr-border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  font-family: var(--ggr-font);
}

.ggr-product__award-banner {
  background: linear-gradient(
    90deg,
    var(--ggr-secondary),
    var(--ggr-secondary-light)
  );
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Product Header: Image + Info side by side */
.ggr-product__header {
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 24px 24px 0;
  align-items: flex-start;
}

.ggr-product__image {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  min-width: 180px;
  background: var(--ggr-card-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ggr-product__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.ggr-product__info {
  flex: 1;
}

.ggr-product__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ggr-primary);
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1.3;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

/* Score + Stars row */
.ggr-product__score-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ggr-product__score-badge {
  background: var(--ggr-secondary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.ggr-product__stars {
  font-size: 18px;
  color: var(--ggr-star);
  letter-spacing: 1px;
}

.ggr-product__score-suffix {
  font-size: 13px;
  color: var(--ggr-text-muted);
}

/* Divider */
.ggr-product__divider {
  border: none;
  border-top: 1px solid var(--ggr-border);
  margin: 20px 24px 0;
  padding: 0;
}

/* ===== Specs Grid ===== */
.ggr-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 8px;
}

.ggr-specs__item {
  display: flex;
  flex-direction: row;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  padding: 4px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ggr-specs__label {
  font-weight: 700;
  color: var(--ggr-primary);
  white-space: nowrap;
}

.ggr-specs__value {
  color: var(--ggr-text);
}

/* ===== Pros & Cons ===== */
.ggr-product__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 24px 0;
  margin-bottom: 20px;
}

.ggr-pros {
  padding: 16px;
  border-radius: 10px;
  background: var(--ggr-pro-bg);
  border: 1px solid var(--ggr-pro-border);
}

.ggr-pros__heading {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ggr-pro-green);
  border: none;
}

.ggr-pros__list {
  font-size: 13px;
  color: var(--ggr-text);
  line-height: 1.5;
}

.ggr-pros__item {
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ggr-pros__bullet {
  color: var(--ggr-pro-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.ggr-cons {
  padding: 16px;
  border-radius: 10px;
  background: var(--ggr-con-bg);
  border: 1px solid var(--ggr-con-border);
}

.ggr-cons__heading {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ggr-con-red);
  border: none;
}

.ggr-cons__list {
  font-size: 13px;
  color: var(--ggr-text);
  line-height: 1.5;
}

.ggr-cons__item {
  padding: 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ggr-cons__bullet {
  color: var(--ggr-con-red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Deal / Sale Banner ===== */
.ggr-deal {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fdf6ec;
  border: 1px solid #f0d9a8;
  border-radius: 8px;
  padding: 12px 20px;
  margin: 0 24px;
  font-family: var(--ggr-font);
}

.ggr-deal__tag {
  display: inline-block;
  background: #d4740a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ggr-deal__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ggr-text);
  flex: 1;
}

.ggr-deal__link {
  font-size: 14px;
  font-weight: 600;
  color: #d4740a;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ggr-deal__link:hover {
  color: #b5620a;
}

@media (max-width: 600px) {
  .ggr-deal {
    margin: 0 16px;
    padding: 10px 14px;
    gap: 8px;
  }
  .ggr-deal__text {
    font-size: 13px;
  }
}

/* ===== Rating Bars ===== */
.ggr-ratings {
  padding: 20px 24px 0;
}

.ggr-ratings__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ggr-primary);
  margin: 0 0 12px 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
}

.ggr-rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.ggr-rating__label {
  flex-shrink: 0;
  width: 90px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ggr-text);
  text-align: right;
}

.ggr-rating__bar {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}

.ggr-rating__fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.4s ease;
}

.ggr-rating__fill--high {
  background: var(--ggr-secondary);
}

.ggr-rating__fill--mid {
  background: var(--ggr-star);
}

.ggr-rating__fill--low {
  background: var(--ggr-con-red);
}

.ggr-rating__value {
  flex-shrink: 0;
  width: 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ggr-primary);
}

/* ===== CTA Button ===== */
.ggr-product__cta {
  padding: 0 24px 24px;
  text-align: center;
}

.ggr-cta__btn {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--ggr-secondary),
    var(--ggr-secondary-light)
  );
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
  cursor: pointer;
  border: none;
}

.ggr-cta__btn:hover {
  opacity: 0.9;
  text-decoration: none !important;
  color: #fff !important;
}

/* ===== Product Description (Bottom Line inside card) ===== */
.ggr-product-desc {
  background: var(--ggr-card-bg);
  border-left: 4px solid var(--ggr-secondary);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 0 24px 20px;
}

.ggr-product-desc__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ggr-primary);
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-product-desc p {
  font-size: 14px;
  color: var(--ggr-text);
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1.7;
}

.ggr-product-desc p:last-child {
  margin-bottom: 0;
}

/* ===== Expandable Section ===== */
.ggr-expandable {
  max-width: var(--ggr-max-width);
  margin: 0 auto 32px;
  border: 1px solid var(--ggr-border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--ggr-font);
}

.ggr-expandable summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ggr-secondary);
  cursor: pointer;
  background: var(--ggr-card-bg);
  list-style: none;
  user-select: none;
}

.ggr-expandable summary::-webkit-details-marker {
  display: none;
}

.ggr-expandable summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--ggr-secondary);
  transition: transform 0.2s ease;
}

.ggr-expandable[open] summary::after {
  content: '\2212';
}

.ggr-expandable__content {
  padding: 20px;
  font-size: 15px;
  color: var(--ggr-text);
  line-height: 1.7;
  border-top: 1px solid var(--ggr-border);
}

.ggr-expandable__content p {
  margin: 0 0 14px 0;
  padding: 0;
}

.ggr-expandable__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ggr-primary);
  margin: 24px 0 10px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

/* ===== Callout Box ===== */
.ggr-callout {
  max-width: var(--ggr-max-width);
  margin: 0 auto 28px;
  padding: 20px 24px;
  border-radius: 12px;
  font-family: var(--ggr-font);
}

.ggr-callout--gold {
  background: var(--ggr-callout-gold-bg);
  border: 1px solid var(--ggr-callout-gold-border);
}

.ggr-callout--info {
  background: var(--ggr-callout-info-bg);
  border: 1px solid var(--ggr-callout-info-border);
}

.ggr-callout--update {
  background: var(--ggr-callout-update-bg);
  border: 1px solid var(--ggr-callout-update-border);
}

.ggr-callout__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-callout--gold .ggr-callout__title {
  color: var(--ggr-callout-gold-text);
}

.ggr-callout--info .ggr-callout__title {
  color: var(--ggr-callout-info-text);
}

.ggr-callout--update .ggr-callout__title {
  color: var(--ggr-callout-update-text);
}

.ggr-callout__body {
  font-size: 14px;
  color: var(--ggr-text);
  line-height: 1.7;
}

.ggr-callout__body p {
  margin: 0 0 10px 0;
  padding: 0;
}

.ggr-callout__body p:last-child {
  margin-bottom: 0;
}

/* ===== FAQ Accordion ===== */
.ggr-faq {
  max-width: var(--ggr-max-width);
  margin: 0 auto 32px;
  font-family: var(--ggr-font);
}

.ggr-faq__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ggr-primary);
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-faq__item {
  border: 1px solid var(--ggr-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.ggr-faq__item summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ggr-primary);
  cursor: pointer;
  background: #fff;
  list-style: none;
  user-select: none;
}

.ggr-faq__item summary::-webkit-details-marker {
  display: none;
}

.ggr-faq__item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--ggr-secondary);
  flex-shrink: 0;
}

.ggr-faq__item[open] summary::after {
  content: '\2212';
}

.ggr-faq__answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ggr-text);
  line-height: 1.7;
  border-top: 1px solid var(--ggr-border);
  padding-top: 16px;
}

.ggr-faq__answer p {
  margin: 0 0 10px 0;
  padding: 0;
}

.ggr-faq__answer p:last-child {
  margin-bottom: 0;
}

/* ===== Intro Paragraph ===== */
.ggr-intro {
  max-width: var(--ggr-max-width);
  margin: 0 auto 32px;
  font-family: var(--ggr-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ggr-text);
}

.ggr-intro p {
  margin: 0 0 16px 0;
  padding: 0;
}

.ggr-intro p:last-child {
  margin-bottom: 0;
}

/* ===== Current Top Deals ===== */
.ggr-deals {
  max-width: var(--ggr-max-width);
  margin: 0 auto 32px;
  background: var(--ggr-secondary-bg-alt);
  border: 1px solid var(--ggr-secondary);
  border-radius: 12px;
  padding: 24px 28px;
  font-family: var(--ggr-font);
}

.ggr-deals__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ggr-primary);
  margin: 0 0 8px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-deals__desc {
  font-size: 14px;
  color: var(--ggr-text);
  margin: 0 0 16px 0;
  padding: 0;
  line-height: 1.6;
}

.ggr-deals__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ggr-deals__item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 163, 160, 0.2);
  font-size: 14px;
  line-height: 1.5;
}

.ggr-deals__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ggr-deals__item:first-child {
  padding-top: 0;
}

.ggr-deals__link {
  font-weight: 700;
  color: var(--ggr-secondary);
  text-decoration: none;
}

a.ggr-deals__link:hover {
  text-decoration: underline;
  color: var(--ggr-primary);
}

.ggr-deals__separator {
  color: var(--ggr-text-muted);
}

.ggr-deals__deal {
  color: var(--ggr-text);
  font-weight: 600;
}

/* ===== At a Glance ===== */
.ggr-glance {
  background: var(--ggr-secondary-bg);
  border-left: 4px solid var(--ggr-secondary);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-family: var(--ggr-font);
}

.ggr-glance__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ggr-primary);
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-glance__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ggr-glance__item {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ggr-text);
}

.ggr-glance__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--ggr-secondary);
  border-radius: 50%;
}

/* ===== Inline Photo ===== */
.ggr-photo {
  margin: 24px 0;
  padding: 0;
}

.ggr-photo--center {
  text-align: center;
}

.ggr-photo--left {
  float: left;
  margin-right: 24px;
  margin-bottom: 8px;
  max-width: 45%;
}

.ggr-photo--right {
  float: right;
  margin-left: 24px;
  margin-bottom: 8px;
  max-width: 45%;
}

.ggr-photo__img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.ggr-photo--center .ggr-photo__img {
  margin: 0 auto;
}

.ggr-photo__caption {
  font-size: 13px;
  color: var(--ggr-text-muted);
  font-style: italic;
  margin-top: 8px;
  line-height: 1.4;
}

/* ===== Testing Breakdown ===== */
.ggr-breakdown {
  background: var(--ggr-card-bg);
  border: 1px solid var(--ggr-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 28px;
  font-family: var(--ggr-font);
}

.ggr-breakdown__header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ggr-breakdown__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ggr-primary);
  margin: 0;
  padding: 0;
  border: none;
  text-transform: none;
  letter-spacing: normal;
}

.ggr-breakdown__overall {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
}

.ggr-breakdown__overall-score {
  background: var(--ggr-secondary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 8px;
  line-height: 1.4;
}

.ggr-breakdown__overall-label {
  font-size: 13px;
  color: var(--ggr-text-muted);
  font-weight: 600;
}

.ggr-breakdown .ggr-rating__label {
  width: 120px;
}

/* ===== Responsive ===== */
@media screen and (max-width: 640px) {
  .ggr-product__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ggr-product__image {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }

  .ggr-product__score-row {
    justify-content: center;
  }

  .ggr-specs {
    grid-template-columns: 1fr;
  }

  .ggr-product__pros-cons {
    grid-template-columns: 1fr;
  }

  .ggr-rating__label {
    width: 70px;
    font-size: 12px;
  }

  .ggr-listicle__item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .ggr-listicle__award {
    order: 4;
  }

  .ggr-listicle__score {
    order: 3;
  }

  .ggr-photo--left,
  .ggr-photo--right {
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .ggr-breakdown__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ggr-breakdown .ggr-rating__label {
    width: 100px;
    font-size: 12px;
  }
}
