/* Widget Styles - Beans.ai x Entrata Guidelines Page */

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

:root {
  /* Colors */
  --background: #f9fafb;
  --foreground: #1a2744;
  --card: #ffffff;
  --card-foreground: #1a2744;
  --primary: #2eb8a6;
  --primary-foreground: #ffffff;
  --secondary: #f3f4f6;
  --secondary-foreground: #1a2744;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #e84a7f;
  --accent-foreground: #ffffff;
  --destructive: #dc2626;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #2eb8a6;
  --radius: 0.625rem;
  
  /* Dark teal for CTA and footer */
  --dark-teal: #1a3a4a;
  --dark-teal-gradient-start: #1a3a4a;
  --dark-teal-gradient-mid: #1e3d4d;
  --dark-teal-gradient-end: #234550;
  
  /* Hero overlay */
  --hero-overlay: #1a2744;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: 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 {
  color: inherit;
  text-decoration: none;
}

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

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

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  transition: all 0.2s ease;
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

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

.btn-primary:hover {
  background: #27a08f;
}

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

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn .hide-mobile {
  display: none;
}

@media (min-width: 640px) {
  .btn .hide-mobile {
    display: inline;
  }
  .btn .show-mobile {
    display: none;
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 39, 68, 0.9),
    rgba(26, 39, 68, 0.8),
    rgba(26, 39, 68, 0.95)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 7rem 0;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 8rem 0;
  }
}

.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-wrap: balance;
}

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

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

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.hero-description strong {
  color: white;
  font-weight: 600;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-feature svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-feature svg.icon-primary {
  color: var(--primary);
}

.hero-feature svg.icon-accent {
  color: var(--accent);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.section-header {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

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

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* ==================== REQUIREMENTS SECTION ==================== */
.requirements-grid {
  display: grid;
  gap: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}

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

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(46, 184, 166, 0.3);
}

.requirement-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.requirement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
}

.requirement-icon.primary {
  background: rgba(46, 184, 166, 0.1);
  color: var(--primary);
}

.requirement-icon.muted {
  background: var(--muted);
  color: var(--muted-foreground);
}

.requirement-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.requirement-content {
  flex: 1;
}

.requirement-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.requirement-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-primary {
  background: rgba(46, 184, 166, 0.1);
  color: var(--primary);
}

.requirement-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.requirement-check {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--accent);
}

.requirement-check svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==================== EXAMPLES SECTION ==================== */
.examples-section {
  padding: 4rem 0 6rem;
}

@media (min-width: 768px) {
  .examples-section {
    padding: 5rem 0 6rem;
  }
}

.examples-group {
  margin-bottom: 4rem;
}

.examples-group:last-child {
  margin-bottom: 0;
}

.examples-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.examples-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
}

.examples-group-icon.good {
  background: rgba(46, 184, 166, 0.1);
  color: var(--primary);
}

.examples-group-icon.bad {
  background: rgba(220, 38, 38, 0.1);
  color: var(--destructive);
}

.examples-group-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.examples-group-title h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.examples-group-title p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.examples-grid {
  display: grid;
  gap: 1rem;
}

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

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

.example-card {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.example-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.example-card.good:hover {
  border-color: rgba(46, 184, 166, 0.5);
}

.example-card.bad:hover {
  border-color: rgba(220, 38, 38, 0.5);
}

.example-card.good .example-image::before {
  content: "✓ Good";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 5;
  background: #16a34a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.example-card.bad .example-image::before {
  content: "✗ Avoid";
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 5;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.example-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--muted);
  overflow: hidden;
}

.example-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.example-card:hover .example-image img {
  transform: scale(1.05);
}

.example-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: all 0.2s ease;
}

.example-card:hover .example-image-overlay {
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.example-image-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--card);
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.example-image-overlay svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--foreground);
}

.example-caption {
  padding: 0.75rem;
}

.example-caption p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Examples Info Box */
.examples-info {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
}

.examples-info.good {
  background: rgba(46, 184, 166, 0.05);
  border: 1px solid rgba(46, 184, 166, 0.2);
}

.examples-info.bad {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.examples-info h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.examples-info h4 svg {
  width: 1rem;
  height: 1rem;
}

.examples-info.good h4 svg {
  color: var(--primary);
}

.examples-info.bad h4 svg {
  color: var(--destructive);
}

.examples-info-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

@media (min-width: 640px) {
  .examples-info-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .examples-info-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.examples-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.examples-info-list li span.number {
  font-weight: 700;
}

.examples-info.good .examples-info-list li span.number {
  color: var(--primary);
}

.examples-info.bad .examples-info-list li span.number {
  color: var(--destructive);
}

/* ==================== TIPS SECTION ==================== */
.tips-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

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

.tip-card {
  padding: 1.5rem;
}

.tip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
}

.tip-icon.primary {
  background: rgba(46, 184, 166, 0.1);
  color: var(--primary);
}

.tip-icon.accent {
  background: rgba(232, 74, 127, 0.1);
  color: var(--accent);
}

.tip-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.tip-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Warning Card */
.warning-card {
  max-width: 56rem;
  margin: 2rem auto 0;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.warning-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

.warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 0.5rem;
  color: var(--destructive);
}

.warning-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.warning-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.warning-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Timing Note */
.timing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--muted-foreground);
}

.timing-note svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.timing-note strong {
  color: var(--foreground);
  font-weight: 500;
}

/* ==================== SUPPORT SECTION ==================== */
.support-section {
  background: rgba(241, 245, 249, 0.3);
  scroll-margin-top: 5rem;
}

.support-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 56rem;
  margin: 0 auto;
}

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

.support-card {
  overflow: hidden;
}

.support-card.primary {
  border-color: rgba(46, 184, 166, 0.2);
  background: linear-gradient(to bottom right, rgba(46, 184, 166, 0.05), var(--card));
}

.support-card.accent {
  border-color: rgba(232, 74, 127, 0.2);
  background: linear-gradient(to bottom right, rgba(232, 74, 127, 0.05), var(--card));
}

.support-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .support-card-content {
    padding: 2rem;
  }
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
}

.support-icon.primary {
  background: rgba(46, 184, 166, 0.1);
  color: var(--primary);
}

.support-icon.accent {
  background: rgba(232, 74, 127, 0.1);
  color: var(--accent);
}

.support-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.support-content {
  flex: 1;
}

.support-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.support-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.support-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.support-meta svg {
  width: 1rem;
  height: 1rem;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 5rem 0;
  }
}

.cta-card {
  max-width: 56rem;
  margin: 0 auto;
  background: linear-gradient(
    to bottom right,
    var(--dark-teal-gradient-start),
    var(--dark-teal-gradient-mid),
    var(--dark-teal-gradient-end)
  );
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  color: white;
}

.cta-card-content {
  padding: 2rem;
}

@media (min-width: 768px) {
  .cta-card-content {
    padding: 3rem;
  }
}

.cta-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cta-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-wrap: balance;
  color: white;
}

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

.cta-header p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
  margin: 0 auto;
}

.cta-offerings {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.cta-offering {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

.cta-offering-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.cta-offering-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}

.cta-offering h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.cta-offering p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-action {
  text-align: center;
}

/* ==================== IMAGE MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(26, 39, 68, 0.8);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  position: relative;
  max-height: 70vh;
  max-width: 70vw;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-content img {
  max-height: 70vh;
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: #fff;
}

.modal-close svg {
  width: 1rem;
  height: 1rem;
  color: var(--foreground);
}
