/* ========================================
   PAGES - Page-specific styles
   ======================================== */

/* ========================================
   PAGE HERO - Common page header
   ======================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d2d 100%);
  padding: 5rem 2rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  position: relative;
  font-weight: 700;
}

.page-hero p {
  opacity: 0.7;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-light);
  min-height: 50vh;
}

/* ========================================
   RECEPTEN PAGE
   ======================================== */
.recepten-page {
  min-height: 100vh;
  background: var(--bg-light);
}

.recepten-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2d2d2d 100%);
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.recepten-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-sm);
  position: relative;
}

.recepten-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin: 0 0 var(--space-xl);
  position: relative;
}

.recepten-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.recepten-search input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.98);
}

.recepten-search input:focus {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 0 2px var(--accent);
}

.recepten-search button {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 1.5rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.recepten-search button:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.recepten-filters {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.recepten-filter {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.recepten-filter:hover,
.recepten-filter.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.recepten-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.recepten-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.recepten-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.recepten-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.recepten-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

.recepten-card-img {
  height: 180px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  position: relative;
}

.recepten-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recepten-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.recepten-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.recepten-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.recepten-card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: var(--space-md);
}

.no-results {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .recepten-hero {
    padding: 4rem 1rem 2rem;
  }
  .recepten-hero h1 {
    font-size: 1.75rem;
  }
  .recepten-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   KENNISBANK - Category Grid
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.category-card p {
  margin: 0;
  color: var(--text-light);
}

/* ========================================
   KENNISBANK - Items Grid
   ======================================== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.item-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.item-card h4 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.item-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ========================================
   KENNISBANK - Item Detail Page
   ======================================== */
.item-detail {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.item-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.item-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.item-images img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.item-detail .description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-offset);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.item-detail .section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.item-detail .section h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.item-detail .section h3 i {
  color: var(--accent);
  font-size: 1.1rem;
}

.item-detail .section ul,
.item-detail .section ol {
  margin: 0;
  padding-left: 1.25rem;
}

.item-detail .section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text);
}

.item-detail .section ol li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Section variants by type */
.geschiedenis {
  background: linear-gradient(135deg, var(--bg-light) 0%, #f5f0e8 100%);
  border-left: 4px solid #8b7355;
}

.geschiedenis p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.geschiedenis p:last-child {
  margin-bottom: 0;
}

.ingredienten {
  background: linear-gradient(135deg, #f8faf0 0%, var(--bg-light) 100%);
  border-left: 4px solid #7cb342;
}

.ingredienten ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
}

.ingredienten li::marker {
  color: #7cb342;
}

.bereiding {
  background: linear-gradient(135deg, #fff8f0 0%, var(--bg-light) 100%);
  border-left: 4px solid #ff9800;
}

.variaties {
  background: linear-gradient(135deg, #f0f8ff 0%, var(--bg-light) 100%);
  border-left: 4px solid #2196f3;
}

.tips {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid var(--accent);
}

.tips li::marker {
  color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  background: rgba(201, 162, 39, 0.1);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.back-link:hover {
  background: var(--accent);
  color: white;
  text-decoration: none;
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .item-detail {
    padding: 1.5rem;
  }
  .item-detail .section {
    padding: 1.25rem;
  }
  .ingredienten ul {
    grid-template-columns: 1fr;
  }
  .item-detail .description {
    font-size: 1.05rem;
  }
}

/* ========================================
   AUTH PAGE
   ======================================== */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #faf9f7 0%, #f0ede8 100%);
}

.auth-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 2px solid #eee;
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #999;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  margin-bottom: -2px;
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  font-family: var(--font-serif);
  margin: 0 0 1.5rem;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

#auth-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
}

#auth-message.success {
  background: #dcfce7;
  color: #166534;
}

#auth-message.error {
  background: #fee2e2;
  color: #991b1b;
}

/* ========================================
   FEATURE GRID (Proeftuin)
   ======================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ========================================
   AUTH PROMPT (Community)
   ======================================== */
.auth-prompt {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.auth-prompt p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ========================================
   ABOUT / CONTACT PAGES
   ======================================== */
.about-content,
.contact-content {
  display: grid;
  gap: 3rem;
}

.contact-content {
  grid-template-columns: 1fr 2fr;
}

.contact-info {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.contact-info h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 1rem;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 0 0 1.5rem;
}

#contact-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #dcfce7;
  color: #166534;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   LEGAL PAGES (Cookie, Privacy, Terms)
   ======================================== */
.legal-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.legal-content h2,
.legal-content h3 {
  font-family: var(--font-serif);
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* ========================================
   PROFILE PAGE
   ======================================== */
.profile-placeholder {
  background: white;
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.profile-placeholder p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.btn-logout {
  padding: 0.75rem 1.5rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-logout:hover {
  background: #b91c1c;
}
