/* ============================================================
   CouponAlert.nl — Kortingscodes & Deals voor Nederland en Europa
   ============================================================ */

:root {
  --primary: #e63946;
  --primary-dark: #c1121f;
  --secondary: #457b9d;
  --accent: #ffb703;
  --accent-light: #ffe066;
  --dark: #1d3557;
  --gray-900: #1a1a2e;
  --gray-800: #2d2d44;
  --gray-700: #3d3d5c;
  --gray-600: #6b6b8a;
  --gray-500: #9b9bb8;
  --gray-400: #c0c0d6;
  --gray-300: #d6d6e8;
  --gray-200: #e8e8f0;
  --gray-100: #f4f4f8;
  --white: #ffffff;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-100);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============= HEADER ============= */
.header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-logo-main {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.header-logo-sub {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--primary);
  background: rgba(230, 57, 70, 0.06);
}

.header-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-700);
  padding: 4px;
}

/* ============= HERO ============= */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-800) 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}

.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 15px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  outline: none;
  transition: var(--transition);
}

.hero-search input::placeholder { color: rgba(255,255,255,0.4); }
.hero-search input:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }

.hero-search button {
  padding: 14px 24px;
  background: var(--accent);
  color: var(--dark);
  border: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.hero-search button:hover { background: var(--accent-light); }

/* ============= SECTION ============= */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto;
}

/* ============= DEAL CARDS ============= */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.deal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.deal-card-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.deal-card-badge.sale { background: var(--accent-light); color: var(--dark); }
.deal-card-badge.new { background: #d4edda; color: #155724; }
.deal-card-badge.popular { background: #fce4ec; color: #c62828; }
.deal-card-badge.exclusive { background: #e8eaf6; color: #283593; }

.deal-card-top {
  padding: 20px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deal-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.deal-card-body {
  padding: 0 20px 16px;
  flex: 1;
}

.deal-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.deal-card-body p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

.deal-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.deal-card-meta span {
  font-size: 12px;
  color: var(--gray-400);
}

.deal-card-meta .code-badge {
  background: var(--gray-100);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.deal-card-code {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
  font-family: monospace;
  cursor: pointer;
  transition: var(--transition);
}

.deal-card-code:hover { background: var(--gray-200); }

.deal-card-btn {
  display: block;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  margin-top: auto;
}

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

/* ============= CATEGORY PILLS ============= */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.category-pill {
  display: inline-block;
  padding: 8px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============= NEWSLETTER ============= */
.newsletter {
  background: linear-gradient(135deg, var(--secondary) 0%, #2c5f7a 100%);
  padding: 48px 20px;
  text-align: center;
}

.newsletter-inner {
  max-width: 520px;
  margin: 0 auto;
}

.newsletter h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 8px;
}

.newsletter p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.newsletter-form button {
  padding: 12px 22px;
  background: var(--accent);
  color: var(--dark);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover { background: var(--accent-light); }

/* ============= FOOTER ============= */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 48px 20px 24px;
  margin-top: auto;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============= CONTENT PAGE ============= */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px;
}

.content-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}

.content-page .meta {
  color: var(--gray-500);
  font-size: 13px;
  margin-bottom: 28px;
}

.content-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 12px;
}

.content-page h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin: 24px 0 10px;
}

.content-page p {
  margin-bottom: 16px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
}

.content-page ul, .content-page ol {
  margin: 0 0 16px 20px;
  color: var(--gray-700);
  font-size: 15px;
  line-height: 1.8;
}

.content-page li { margin-bottom: 6px; }

.content-page .cta-box {
  background: linear-gradient(135deg, var(--dark), var(--gray-800));
  color: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  text-align: center;
}

.content-page .cta-box h3 {
  color: var(--white);
  margin-top: 0;
  margin-bottom: 8px;
}

.content-page .cta-box p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 18px;
}

.content-page .cta-box .btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.content-page .cta-box .btn:hover { background: var(--accent-light); }

.content-page .faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.content-page .faq-q {
  padding: 14px 18px;
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.content-page .faq-q::after {
  content: '+';
  font-size: 18px;
  color: var(--gray-400);
  transition: var(--transition);
}

.content-page .faq-q.open::after { content: '−'; }

.content-page .faq-a {
  padding: 0 18px 14px;
  font-size: 14px;
  color: var(--gray-600);
  display: none;
  line-height: 1.7;
}

.content-page .faq-a.open { display: block; }

/* ============= FORM ============= */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.btn-submit {
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ============= PRICING ============= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0;
}

.pricing-card .price span {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 400;
}

.pricing-card ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

.pricing-card ul li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.pricing-card ul li:last-child { border-bottom: none; }

.pricing-card .btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: 12px;
  transition: var(--transition);
}

.pricing-card .btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.pricing-card .btn-outline:hover { background: var(--primary); color: var(--white); }

.pricing-card.featured .btn {
  background: var(--accent);
  color: var(--dark);
}

.pricing-card.featured .btn:hover { background: var(--accent-light); }

/* ============= BREADCRUMBS ============= */
.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px 0;
  font-size: 12px;
  color: var(--gray-400);
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }

.breadcrumbs span { color: var(--gray-500); }

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--gray-200);
  }

  .header-nav.open { display: flex; }

  .header-nav a { padding: 10px 14px; width: 100%; }

  .header-nav-toggle { display: block; }

  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }

  .deals-grid { grid-template-columns: 1fr; }

  .content-page h1 { font-size: 24px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ============= UTILITY ============= */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-12 { gap: 12px; }

/* ============= TAG ============= */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tag-nl { background: #e8f5e9; color: #2e7d32; }
.tag-ship { background: #e3f2fd; color: #1565c0; }
.tag-new { background: #fff3e0; color: #e65100; }

/* ============= DEAL TABLE (submit page) ============= */
.deal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.deal-table th, .deal-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.deal-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
