/* Digital Cerebro Brand Design System */
/* Shared across parent site and PromptVault subsite */

:root {
  /* Umbrella brand accent (Digital Cerebro blue) */
  --brand-primary: #4A90E2;
  --brand-primary-dark: #007AFF;
  --brand-primary-light: #74B9FF;

  /* Unified neutrals */
  --brand-text: #111827;
  --brand-text-muted: #6B7280;
  --brand-border: #E5E7EB;
  --brand-light: #F9FAFB;
  --brand-light-alt: #F3F4F6;
  --brand-dark: #1F2937;
  --brand-dark-alt: #374151;

  /* Unified typography */
  --brand-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--brand-font);
  color: var(--brand-text);
  line-height: 1.6;
  background-color: var(--brand-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Shared Header/Nav */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  z-index: 1000;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--brand-primary);
  background: #fff;
  object-fit: cover;
}

.site-logo span {
  color: var(--brand-primary);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
}

.site-nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.site-nav-links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.site-nav-links a:hover {
  color: var(--brand-primary);
  text-shadow: 0 0 8px rgba(74, 144, 226, 0.8);
}

.site-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.site-nav-links a:hover::after,
.site-nav-links a.active::after {
  width: 100%;
}

/* Page Banner (for About/Contact pages) */
.page-banner {
  padding: 120px 50px 80px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 30%, #0e4b99 100%);
  color: white;
  text-align: center;
  margin-top: 78px;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 100;
  margin-bottom: 20px;
  background: linear-gradient(45deg, var(--brand-primary), var(--brand-primary-dark), var(--brand-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.page-banner p {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* Products Section */
.products {
  padding: 100px 50px;
  background: var(--brand-light);
}

.products h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 100;
  margin-bottom: 60px;
  color: var(--brand-primary);
  letter-spacing: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.product-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--brand-border);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-primary);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
}

.product-card h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--brand-dark);
}

.product-card p {
  color: var(--brand-text-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.product-card-cta {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.product-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
}

.products-coming-soon {
  text-align: center;
  color: var(--brand-text-muted);
  font-size: 1.1rem;
  font-style: italic;
}

/* Content Section (for About/Contact pages) */
.content-section {
  margin-bottom: 4rem;
  padding: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--brand-border);
}

.content-section h2 {
  font-size: 2rem;
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
}

.content-section h3 {
  font-size: 1.3rem;
  color: var(--brand-primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content-section p {
  color: var(--brand-text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-section a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.content-section a:hover {
  color: var(--brand-primary-dark);
  text-decoration: underline;
}

/* Shared Footer */
.site-footer {
  background: var(--brand-dark);
  color: white;
  padding: 60px 50px 20px;
  margin-top: 40px;
}

.site-footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.site-footer-section h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.site-footer-section ul {
  list-style: none;
}

.site-footer-section ul li {
  margin-bottom: 0.75rem;
}

.site-footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer-section a:hover {
  color: white;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Brand Link-Back (for PromptVault footer) */
.brand-link-back {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-link-back:hover {
  color: white;
}

.brand-link-back img {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: white;
  object-fit: cover;
}

.brand-link-back span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Decorative dot-grid background (optional) */
.dot-grid-bg {
  background-image: radial-gradient(circle, rgba(74, 144, 226, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    padding: 15px 20px;
  }

  .site-logo span {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .site-nav-links {
    gap: 15px;
    font-size: 0.9rem;
  }

  .page-banner {
    padding: 80px 20px 60px;
  }

  .page-banner h1 {
    font-size: 2rem;
  }

  .page-banner p {
    font-size: 1rem;
  }

  .products {
    padding: 50px 20px;
  }

  .products h2 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 25px;
  }

  .content-section {
    padding: 20px;
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer {
    padding: 40px 20px 15px;
  }

  .site-footer-content {
    gap: 25px;
  }
}
