/* Custom Styles for Endosulin Advertorial News Landing Page */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Rubik:wght@500;700;800;900&display=swap');

/* CSS Variables */
:root {
  --font-body: 'Inter', sans-serif;
  --font-header: 'Rubik', sans-serif;

  --color-primary-red: #c00c0c;
  --color-secondary-red: #a00a0a;
  --color-accent-orange: #ff5722;
  --color-bg-light: #f5f7fa;
  --color-bg-paper: #ffffff;
  --color-text-dark: #1f2937;
  --color-text-muted: #6b7280;
  --color-green-success: #1b5e20;
  --color-green-bg: #e8f5e9;
  --color-border: #e5e7eb;
  --color-alert-bg: #ffebee;
  --color-warning-amber: #e65100;
  --color-warning-bg: #fff3e0;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-pulse: 0 0 0 0 rgba(192, 12, 12, 0.7);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
}

a:hover {
  color: #1e40af;
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-bg-paper);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Top Live Ticker / Announcement Bar */
.top-ticker {
  background-color: #111;
  color: #fff;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-primary-red);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-primary-red);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-right: 10px;
  animation: pulse-red 2s infinite;
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: white;
  border-radius: 50%;
  margin-right: 5px;
  display: inline-block;
}

.views-counter {
  color: var(--color-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.views-counter span {
  color: #fff;
}

/* News Header Block */
.news-header {
  border-bottom: 3px double var(--color-border);
  padding: 20px 25px;
  background-color: #fff;
}

.portal-brand {
  font-family: var(--font-header);
  font-size: 28px;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.brand-red {
  color: var(--color-primary-red);
}

.portal-date {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 5px 0;
  margin-top: 5px;
  display: flex;
  justify-content: space-between;
}

.investigation-tag {
  color: var(--color-primary-red);
  font-weight: 800;
  text-transform: uppercase;
}

/* Article Styling */
.article-content {
  padding: 25px;
}

.main-headline {
  font-family: var(--font-header);
  font-size: 32px;
  line-height: 1.25;
  color: #000;
  font-weight: 800;
  margin-bottom: 15px;
}

.sub-headline-quote {
  border-left: 4px solid var(--color-primary-red);
  padding-left: 15px;
  margin-bottom: 25px;
  font-size: 17px;
  font-weight: 600;
  font-style: italic;
  color: #374151;
}

/* Hero Section Media / Image */
.hero-image-wrapper {
  position: relative;
  margin-bottom: 25px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  background-color: #111;
  color: #e5e7eb;
  padding: 8px 12px;
  font-size: 13px;
  font-style: italic;
  border-left: 4px solid var(--color-primary-red);
}

/* Urgent Alert boxes / banners */
.urgency-banner {
  background-color: var(--color-alert-bg);
  border: 1px solid #ffcdd2;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
}

.urgency-banner h4 {
  color: var(--color-primary-red);
  font-size: 18px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-header);
}

.price-box-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border: 2px dashed var(--color-primary-red);
  padding: 15px;
  border-radius: 6px;
  margin-top: 10px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 16px;
}

.new-price {
  color: var(--color-primary-red);
  font-size: 26px;
  font-weight: 900;
  animation: glow-red 1.5s ease-in-out infinite alternate;
}

.program-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green-success);
  background-color: var(--color-green-bg);
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 5px;
}

/* Countdowns styling */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timer-label {
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.timer-numbers {
  font-family: monospace;
  font-size: 24px;
  font-weight: 900;
  background-color: #111;
  color: #ff3d00;
  padding: 5px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Article Body Typography */
p.lead-paragraph {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #111;
  margin-bottom: 20px;
}

p.story-text {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.highlight {
  background-color: #ffeb3b;
  padding: 2px 5px;
  font-weight: 600;
  border-radius: 2px;
}

.highlight-red {
  color: var(--color-primary-red);
  font-weight: 700;
}

/* Pain points indicators */
.pain-points-list {
  list-style: none;
  margin: 25px 0;
  padding: 20px;
  background-color: #fafafa;
  border-left: 4px solid var(--color-text-dark);
  border-radius: 0 6px 6px 0;
}

.pain-points-list li {
  margin-bottom: 15px;
  font-size: 16px;
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}

.pain-points-list li:last-child {
  margin-bottom: 0;
}

.pain-points-list li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 16px;
}

/* Quote/Highlight Box */
.quote-box {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  position: relative;
}

.quote-box::after {
  content: '“';
  font-size: 120px;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: -20px;
  right: 15px;
  line-height: 1;
  font-family: serif;
}

/* Timeline Markers */
.timeline-container {
  margin: 30px 0;
  padding-left: 15px;
  border-left: 3px solid #2e7d32;
}

.timeline-step {
  position: relative;
  margin-bottom: 25px;
  padding-left: 20px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step::before {
  content: '✓';
  position: absolute;
  left: -27px;
  top: -2px;
  background-color: #2e7d32;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.timeline-title {
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 5px;
}

/* Doctor Block Profile */
.doctor-block {
  background-color: #fff;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 25px;
  margin: 35px 0;
  box-shadow: var(--shadow-md);
}

.doctor-profile {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: center;
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-bg-light);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.doctor-info h5 {
  font-family: var(--font-header);
  font-size: 19px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px;
}

.doctor-info .title {
  font-size: 13px;
  color: var(--color-primary-red);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.doctor-info .desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.doctor-quote-text {
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  font-style: italic;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
}

/* Product Info Block */
.product-showcase {
  background-color: #fcfcfc;
  border: 2px solid var(--color-primary-red);
  border-radius: 8px;
  padding: 25px;
  margin: 35px 0;
}

.product-showcase-title {
  text-align: center;
  font-family: var(--font-header);
  color: var(--color-primary-red);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

.product-columns {
  display: flex;
  gap: 20px;
  align-items: center;
}

.product-img-col {
  flex: 1;
  text-align: center;
}

.product-img {
  max-width: 100%;
  max-height: 220px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.product-details-col {
  flex: 1.3;
}

.product-benefits {
  list-style: none;
  margin-bottom: 15px;
}

.product-benefits li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.product-benefits li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 1px;
}

/* Conversion form styles */
.order-form-container {
  background: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 100%);
  color: white;
  border-radius: 12px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.order-form-container::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background-color: rgba(239, 68, 68, 0.15);
  border-radius: 50%;
}

.form-header {
  text-align: center;
  margin-bottom: 25px;
}

.form-title {
  font-family: var(--font-header);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.form-subtitle {
  font-size: 14px;
  color: #cbd5e1;
  margin-top: 5px;
}

.form-deal {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-price-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.form-price-val {
  font-size: 22px;
  font-weight: 800;
}

.form-price-val.free {
  color: #f87171;
  font-size: 28px;
  animation: pulse-text-glow 1.5s infinite;
}

.form-stock-info {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  background-color: var(--color-warning-bg);
  color: var(--color-warning-amber);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  width: 100%;
}

.form-stock-number {
  font-size: 18px;
  color: var(--color-primary-red);
  font-weight: 900;
}

.form-timer-box {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-timer-label {
  font-size: 13px;
  font-weight: 700;
  color: #f8a5c2;
}

.form-timer-clock {
  font-family: monospace;
  font-size: 20px;
  color: #ff3f3f;
  font-weight: 900;
}

.actual-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #475569;
  background-color: rgba(15, 23, 42, 0.6);
  color: white;
  font-size: 16px;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: #64748b;
}

.form-input:focus {
  outline: none;
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  background-color: rgba(15, 23, 42, 0.9);
}

.submit-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  transition: all 0.2s;
  animation: pulse-button 2s infinite;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.5);
}

.submit-btn:active {
  transform: translateY(0);
}

.form-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 15px;
  line-height: 1.4;
}

/* Comments Section Style */
.comments-section {
  border-top: 2px solid var(--color-border);
  padding: 30px 25px;
  background-color: #fff;
}

.comments-title {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 800;
  color: #000;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 15px;
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.comment-author {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.comment-time {
  font-size: 12px;
  color: var(--color-text-muted);
}

.comment-text {
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.comment-actions {
  display: flex;
  gap: 15px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.comment-action-btn {
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
}

.comment-action-btn:hover {
  color: var(--color-primary-red);
}

.comment-action-btn.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.comment-action-btn.like-btn.liked {
  color: #3b82f6;
}

.reply-block {
  margin-left: 50px;
  background-color: var(--color-bg-light);
  padding: 12px 15px;
  border-radius: 8px;
  border-left: 3px solid var(--color-primary-red);
  margin-top: 10px;
}

/* Footer Section */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 30px 20px;
  text-align: center;
  font-size: 12px;
  border-top: 3px solid var(--color-primary-red);
}

.footer-logo {
  font-family: var(--font-header);
  font-weight: 900;
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer-nav {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

/* Animations */
@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 12, 12, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(192, 12, 12, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 12, 12, 0);
  }
}

@keyframes pulse-button {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4);
  }
}

@keyframes glow-red {
  from {
    text-shadow: 0 0 2px rgba(192, 12, 12, 0.4);
  }
  to {
    text-shadow:
      0 0 10px rgba(192, 12, 12, 0.9),
      0 0 20px rgba(192, 12, 12, 0.3);
  }
}

@keyframes pulse-text-glow {
  0% {
    opacity: 0.9;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
  }
  100% {
    opacity: 0.9;
  }
}

/* Mobile-First Responsiveness Overrides */
@media (max-width: 600px) {
  .news-header {
    padding: 15px;
  }

  .portal-brand {
    font-size: 22px;
  }

  .article-content {
    padding: 15px;
  }

  .main-headline {
    font-size: 24px;
  }

  .sub-headline-quote {
    font-size: 15px;
  }

  .price-box-wrapper {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .product-columns {
    flex-direction: column;
    text-align: center;
  }

  .product-img-col {
    margin-bottom: 15px;
  }

  .doctor-profile {
    flex-direction: column;
    text-align: center;
  }

  .doctor-avatar {
    margin: 0 auto;
  }

  .order-form-container {
    padding: 20px 15px;
  }

  .form-deal {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .form-title {
    font-size: 20px;
  }

  .comment-item {
    gap: 10px;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .reply-block {
    margin-left: 20px;
  }
}
