/* Inturious Labs Custom Styles */

:root {
  --spacing-company: 3rem;

  /* Pastel Color Palette */
  --color-blue: #B4D4FF;
  --color-pink: #FFD6E8;
  --color-lavender: #E0BBE4;
  --color-mint: #C8E6C9;
  --color-peach: #FFD4B2;
  --color-lilac: #D4C5F9;
  --color-sky: #A7D8DE;
  --color-coral: #FFB3BA;
  --color-sage: #B4CFB0;
  --color-lemon: #FFF4B3;
  --color-rose: #FFB3C6;
  --color-periwinkle: #C5D3E8;
  --color-aqua: #B3E5E6;
  --color-apricot: #FED8B1;
  --color-mauve: #E8C4D4;
  --color-pistachio: #D4E7B0;
  --color-powder: #C8E0F0;
  --color-seafoam: #B8E6D5;
  --color-vanilla: #FFF9E3;
  --color-blush: #FFD5CD;

  /* Default product color (pink) */
  --product-color: var(--color-pink);
}

/* Background */
body {
  background-color: #2d2d2d;
  color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
}

h2 {
  color: #f472b6;
}

/* Product page section headings - use product color variable */
.container section h2,
.comments-section h2 {
  color: var(--product-color);
  opacity: 0.4;
}

p, li {
  color: #f5f5f5;
  line-height: 1.8;
}

a {
  color: #22d3ee;
}

a:hover {
  color: #67e8f9;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 1rem 0 0.5rem 0;
}

.hero h1 {
  color: #ffffff;
  font-weight: 700;
}

.hero p {
  color: #e0e0e0;
}

/* Hero Image Section */
.hero-image-section {
  position: relative;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 2rem 0.75rem 2rem;
  text-align: center;
}

.hero-quote {
  color: #ffffff;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  margin-top: 0;
  max-width: 800px;
  line-height: 1.5;
}

.hero-attribution {
  color: #ffffff;
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Navigation */
.back-link {
  margin-bottom: 2rem;
}

/* Product Page Layout - Constrain content width on desktop */
.container {
  max-width: 100%;
}

.container > section,
.container > .back-link,
.container > hr,
.container > footer,
.container > div:not(.hero-image-section) {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure Rapport widget container is properly constrained */
.comments-section {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* Hero image same width as content */
.container > .hero-image-section {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Products Section */
.products {
  margin-top: 1.5rem;
  text-align: center;
}

.products h2 {
  color: #ffffff !important;
  opacity: 0.4;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
}

.product-card-link .product-card {
  width: 100%;
}

.product-card {
  padding: 1.5rem;
  border: none;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  color: #2d2d2d;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card-link:hover .product-card,
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

.product-card-link:active .product-card,
.product-card:active {
  transform: translateY(-6px);
  filter: brightness(1.15);
}

.product-card h3 {
  margin-bottom: 0.5rem;
  margin-top: 0;
  color: #1a1a1a;
  min-height: 3.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.product-card p {
  margin-bottom: 1rem;
  color: #4a4a4a;
  flex-grow: 1;
}

/* Default pastel card color - all cards use same default */
.product-card {
  background: linear-gradient(135deg, var(--color-pink) 0%, color-mix(in srgb, var(--color-pink) 70%, black) 100%); /* Default pink gradient - darker for more contrast */
  filter: brightness(0.95);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Hidden cards - hide until populated */
.product-card.hidden,
.product-card-link.hidden {
  display: none;
}

.product-card a {
  margin-top: auto;
  width: auto;
  padding: 0;
  background: none;
  border: none;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.product-card a::after {
  content: ' →';
  transition: transform 0.2s ease;
  display: inline-block;
}

.product-card a:hover {
  background: none;
  color: #000;
  transform: none;
}

.product-card a:hover::after {
  transform: translateX(4px);
}

/* Features Section */
.features {
  margin-top: var(--spacing-company);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Roadmap Section */
.roadmap {
  margin-top: var(--spacing-company);
}

.roadmap-item {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
}

.roadmap-item h4 {
  margin-bottom: 0.25rem;
}

.roadmap-item p {
  color: var(--muted-color);
  margin: 0;
}

/* Status Badge - Corner Stripe */
.status-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.35rem 2rem;
  font-size: 0.65rem;
  background-color: #60a5fa;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: rotate(45deg) translate(30%, -50%);
  transform-origin: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-badge.live {
  background-color: #10b981;
}

.status-badge.development {
  background-color: #f59e0b;
}

/* About Section */
section {
  text-align: center;
}

section p {
  color: #e0e0e0;
}

/* Footer */
footer {
  margin-top: var(--spacing-company);
  padding: 2rem 0;
  text-align: center;
  color: #f5f5f5;
}

footer p {
  color: rgba(245, 245, 245, 0.4);
  font-size: 1rem;
}

footer small {
  color: rgba(245, 245, 245, 0.4);
  font-size: 1rem;
}

/* Social Links */
.social-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  color: rgba(245, 245, 245, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: #22d3ee;
  transform: translateY(-2px);
}

/* IC Logo in footer */
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ic-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-left: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-quote {
    font-size: 1rem !important;
  }

  .hero-attribution {
    font-size: 0.85rem !important;
  }
}
