/* ============================================
   GlucoThrive Advertorial - Keitaro Version
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --primary: hsl(340, 75%, 55%);
  --primary-dark: hsl(340, 75%, 45%);
  --primary-light: hsl(340, 75%, 55%, 0.1);
  --primary-medium: hsl(340, 75%, 55%, 0.15);
  
  --background: hsl(30, 40%, 98%);
  --foreground: hsl(20, 25%, 20%);
  --card: hsl(30, 30%, 99%);
  --muted: hsl(30, 10%, 45%);
  --border: hsl(30, 25%, 88%);
  --headline: hsl(20, 30%, 15%);
  
  /* Fonts */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
  
  /* Radius */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--headline);
  line-height: 1.2;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.max-w-4xl { max-width: 56rem; margin: 0 auto; }
.max-w-3xl { max-width: 48rem; margin: 0 auto; }
.max-w-2xl { max-width: 42rem; margin: 0 auto; }
.max-w-5xl { max-width: 64rem; margin: 0 auto; }

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1rem 0;
  text-align: center;
}

.header-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 9999px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hero Section */
.hero {
  padding: 3rem 0 5rem;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--background) 100%);
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-image {
  max-width: 48rem;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-caption {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Quote Block */
.quote-block {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-block p {
  font-weight: 500;
  font-size: 1.125rem;
  font-style: italic;
  margin: 0;
}

.quote-block .author {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: normal;
}

/* Story Section */
.story-section {
  padding: 1rem 0 2rem;
}

.prose {
  font-size: 1.125rem;
  line-height: 1.75;
}

.prose h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .prose h2 { font-size: 1.875rem; }
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose strong {
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

/* Alert Boxes */
.alert {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

.alert-danger {
  background: hsl(0, 93%, 97%);
  border: 1px solid hsl(0, 80%, 85%);
}

.alert-danger h3 {
  color: hsl(0, 65%, 35%);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-danger ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-danger li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(0, 50%, 25%);
  margin-bottom: 0.75rem;
}

.alert-danger .icon {
  color: hsl(0, 70%, 50%);
  font-weight: 700;
}

.alert-amber {
  background: hsl(45, 93%, 94%);
  border-left: 4px solid hsl(38, 90%, 50%);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.alert-amber p {
  color: hsl(25, 65%, 25%);
  font-weight: 500;
  font-size: 1.125rem;
  font-style: italic;
  margin: 0;
}

.alert-blue {
  background: hsl(210, 93%, 97%);
  border: 1px solid hsl(210, 80%, 85%);
}

.alert-blue h3 {
  color: hsl(210, 65%, 35%);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-blue p, .alert-blue li {
  color: hsl(210, 50%, 25%);
}

.alert-green {
  background: hsl(140, 50%, 96%);
  border: 1px solid hsl(140, 40%, 80%);
}

.alert-green h3 {
  color: hsl(140, 50%, 30%);
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-green li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: hsl(140, 40%, 25%);
  margin-bottom: 0.75rem;
}

.check-icon {
  width: 20px;
  height: 20px;
  color: hsl(140, 60%, 40%);
  flex-shrink: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
  border: 2px solid hsl(340, 75%, 55%, 0.4);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-box h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius);
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px hsl(340, 75%, 55%, 0.3);
  animation: cta-pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 30px hsl(340, 75%, 55%, 0.5);
  transform: scale(1.03);
  animation-play-state: paused;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: hsl(0, 0%, 95%);
}

@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.arrow-icon {
  animation: arrow-bounce 1s ease-in-out infinite;
}

/* Ingredients Section */
.ingredients-section {
  padding: 3rem 0;
  background: var(--primary-light);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .ingredients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ingredient-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ingredient-card img {
  width: 100%;
  height: 7rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.ingredient-card h4 {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.ingredient-card .desc {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.ingredient-card .source {
  font-size: 0.625rem;
  color: hsl(30, 10%, 60%);
  font-style: italic;
}

/* Recipe Box */
.recipe-box {
  background: hsl(45, 93%, 94%);
  border: 2px solid hsl(38, 60%, 70%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.recipe-box h3 {
  color: hsl(25, 65%, 30%);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recipe-card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
}

.recipe-card h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.recipe-card p {
  font-size: 0.875rem;
  color: var(--foreground);
  margin: 0;
}

.recipe-tip {
  color: hsl(25, 65%, 30%);
  font-size: 0.875rem;
  font-style: italic;
}

/* Product Section */
.product-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  margin: 2.5rem 0;
}

.product-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-grid {
    flex-direction: row;
  }
}

.product-image {
  flex: 1;
}

.product-image img {
  max-width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.25));
}

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

@media (min-width: 768px) {
  .product-info {
    text-align: left;
  }
}

.product-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.product-title {
  font-size: 1.5rem;
  margin: 0.75rem 0;
  color: white;
}

.product-desc {
  opacity: 0.9;
  margin-bottom: 1rem;
}

.product-note {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials-section {
  padding: 1.5rem 0 2.5rem;
  background: hsl(140, 50%, 96%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  background: white;
  border: 1px solid hsl(140, 40%, 80%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid hsl(140, 50%, 70%);
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(140, 50%, 35%);
  margin: 0;
}

.testimonial-location {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.testimonial-text {
  font-style: italic;
  margin: 0;
}

/* Final CTA */
.final-cta {
  padding: 3rem 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--background) 100%);
  text-align: center;
}

.final-cta h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .final-cta h2 { font-size: 1.875rem; }
}

.final-cta .subtitle {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .cta-note {
  font-weight: 500;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.final-cta .footer-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

/* Comments Section */
.comments-section {
  padding: 1.5rem 0;
}

.comments-header {
  text-align: center;
  margin-bottom: 1rem;
}

.comments-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .comments-header h2 { font-size: 1.5rem; }
}

.comments-header p {
  font-size: 0.875rem;
  color: var(--muted);
}

.comment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(340, 75%, 55%, 0.2);
}

.form-group textarea {
  resize: none;
}

.photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.photo-btn:hover {
  background: hsl(30, 20%, 92%);
}

.photo-btn svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}

.photo-btn span {
  font-size: 0.75rem;
  color: var(--muted);
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.25rem;
}

.submit-btn {
  background: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

.success-msg {
  color: hsl(140, 60%, 40%);
  font-size: 0.75rem;
  margin-left: 0.75rem;
}

.comments-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.comment {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.375rem;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid hsl(340, 75%, 55%, 0.3);
}

.comment-initial {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-name {
  font-weight: 500;
  font-size: 0.875rem;
}

.comment-date {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-text {
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.disclaimer p {
  margin-bottom: 0.5rem;
}

.sources {
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.legal-links button {
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  border: none;
  text-decoration: underline;
  transition: color 0.2s;
}

.legal-links button:hover {
  color: var(--foreground);
}

.legal-links span {
  font-size: 0.75rem;
  color: var(--muted);
}

.copyright {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  max-width: 42rem;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-header h2 {
  font-size: 1.25rem;
}

.modal-close {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-content {
  font-size: 0.875rem;
}

.modal-content h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.modal-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 500;
  margin-top: 1.5rem;
  transition: background 0.2s;
}

.modal-btn:hover {
  background: var(--primary-dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
