/*
Theme Name: German Diary
Theme URI: https://germandiary.com
Author: German Diary
Author URI: https://germandiary.com
Description: A modern, clean newsletter landing page theme built for expat blogs and newsletters in Germany. Comes with customizer support, a built-in signup form, EU/GDPR-compliant legal pages, and a free eBook lead magnet section. Everything is fully editable via the WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: german-diary
Tags: newsletter, landing-page, blog, one-column, custom-colors, custom-logo, custom-menu, editor-style, featured-images, theme-options, threaded-comments, translation-ready
*/

/* =========================================================
   German Diary — Theme Stylesheet
   Colors inspired by the German flag (black, red, gold)
   ========================================================= */

:root {
  --gd-black: #1a1a1a;
  --gd-red: #dd0000;
  --gd-gold: #ffce00;
  --gd-cream: #fdfbf5;
  --gd-muted: #6b6b6b;
  --gd-border: #ececec;
  --gd-accent: #c9302c;
}

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

body {
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  background: var(--gd-cream);
  color: var(--gd-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gd-accent); }

/* -------- NAVIGATION -------- */
.gd-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.gd-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gd-black);
  text-decoration: none;
}
.gd-logo-stripes {
  display: inline-block;
  width: 28px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #000 33%, var(--gd-red) 33% 66%, var(--gd-gold) 66%);
}
.gd-nav-links a {
  color: var(--gd-black);
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  font-weight: 500;
}
.gd-nav-links a:hover { color: var(--gd-accent); }

/* -------- HERO -------- */
.gd-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.gd-eyebrow {
  display: inline-block;
  background: #fff3d6;
  color: #8a6d00;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.gd-h1 {
  font-size: 56px;
  line-height: 1.05;
  margin: 18px 0 20px;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.gd-h1 .underline {
  background: linear-gradient(180deg, transparent 65%, var(--gd-gold) 65%);
  padding: 0 4px;
}
.gd-sub {
  font-size: 19px;
  color: var(--gd-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

/* -------- SIGNUP FORM CARD -------- */
.gd-form-card {
  background: #fff;
  border: 1px solid var(--gd-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}
.gd-form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #000 33%, var(--gd-red) 33% 66%, var(--gd-gold) 66%);
}
.gd-gift-badge {
  display: inline-block;
  background: var(--gd-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.gd-form-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.gd-form-card p.lead {
  color: var(--gd-muted);
  font-size: 15px;
  margin: 0 0 22px;
}
.gd-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.gd-form input[type="text"],
.gd-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  border: 1.5px solid #e1e1e1;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fafafa;
  font-family: inherit;
  transition: border 0.15s ease;
}
.gd-form input:focus {
  outline: none;
  border-color: var(--gd-black);
  background: #fff;
}
.gd-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--gd-black);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s ease;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.gd-btn:hover { background: var(--gd-accent); transform: translateY(-1px); color: #fff; }
.gd-privacy {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-top: 12px;
}
.gd-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #777;
  margin: 6px 0 14px;
}
.gd-consent input { margin-top: 3px; }

/* -------- TRUST ROW -------- */
.gd-trust {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 40px 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  color: var(--gd-muted);
  font-size: 14px;
  text-align: center;
}
.gd-trust span { display: flex; align-items: center; gap: 6px; }
.gd-check { color: #2b8a3e; font-weight: 700; }

/* -------- SECTIONS -------- */
.gd-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}
.gd-section-title { text-align: center; margin-bottom: 50px; }
.gd-section-title h2 {
  font-size: 40px;
  letter-spacing: -1px;
  margin: 0 0 12px;
  font-weight: 800;
}
.gd-section-title p {
  color: var(--gd-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto;
}
.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.gd-card {
  background: #fff;
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}
.gd-card .gd-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  background: var(--gd-gold);
}
.gd-card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.gd-card p { margin: 0; color: var(--gd-muted); font-size: 15px; }

/* -------- EBOOK SECTION -------- */
.gd-ebook {
  background: var(--gd-black);
  color: #fff;
  padding: 80px 0;
}
.gd-ebook-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.gd-ebook-cover {
  background: linear-gradient(135deg, #dd0000 0%, #8a0000 100%);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(221,0,0,0.25);
  transform: rotate(-3deg);
  position: relative;
}
.gd-ebook-cover::after {
  content: "FREE";
  position: absolute;
  top: 15px; right: -15px;
  background: var(--gd-gold);
  color: var(--gd-black);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 13px;
  transform: rotate(8deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.gd-ebook-cover .tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.gd-ebook-cover h3 { font-size: 32px; margin: 0 0 10px; line-height: 1.1; letter-spacing: -0.5px; }
.gd-ebook-cover .sub-cover { font-size: 14px; opacity: 0.9; margin: 0 0 28px; }
.gd-ebook-cover .author {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 14px;
}
.gd-ebook-content h2 {
  font-size: 38px;
  margin: 0 0 16px;
  letter-spacing: -1px;
  font-weight: 800;
}
.gd-ebook-content p.intro { color: #ccc; font-size: 17px; margin: 0 0 26px; }
.gd-ebook-list { list-style: none; padding: 0; margin: 0 0 30px; }
.gd-ebook-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 15px;
  color: #e8e8e8;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.gd-ebook-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  color: var(--gd-gold);
  font-weight: 700;
}
.gd-btn-outline {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gd-gold);
  color: var(--gd-black);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.1s ease;
}
.gd-btn-outline:hover { transform: translateY(-2px); color: var(--gd-black); }

/* -------- TESTIMONIAL -------- */
.gd-quote {
  background: #fff;
  border-left: 4px solid var(--gd-red);
  padding: 40px 50px;
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.gd-quote p {
  font-size: 20px;
  font-style: italic;
  color: #333;
  line-height: 1.5;
  margin: 0 0 18px;
}
.gd-quote .person { display: flex; align-items: center; gap: 12px; }
.gd-quote .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gd-gold), var(--gd-red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.gd-quote .name { font-weight: 700; font-size: 15px; }
.gd-quote .meta { font-size: 13px; color: var(--gd-muted); }

/* -------- FINAL CTA -------- */
.gd-final-cta {
  background: var(--gd-gold);
  padding: 80px 40px;
  text-align: center;
}
.gd-final-cta h2 {
  font-size: 44px;
  margin: 0 0 14px;
  letter-spacing: -1px;
  font-weight: 800;
}
.gd-final-cta p { font-size: 18px; margin: 0 0 32px; color: #4a3e00; }
.gd-final-form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 10px;
}
.gd-final-form input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid var(--gd-black);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.gd-final-form button {
  padding: 14px 24px;
  background: var(--gd-black);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

/* -------- PAGE (generic content pages — legal, about, etc.) -------- */
.gd-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  background: #fff;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 60px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
}
.gd-page h1 {
  font-size: 40px;
  margin: 0 0 10px;
  letter-spacing: -1px;
  font-weight: 800;
}
.gd-page .updated {
  color: var(--gd-muted);
  font-size: 14px;
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gd-border);
}
.gd-page h2 {
  font-size: 24px;
  margin: 30px 0 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.gd-page h3 {
  font-size: 18px;
  margin: 22px 0 8px;
  font-weight: 700;
}
.gd-page p, .gd-page li { font-size: 16px; color: #333; }
.gd-page ul, .gd-page ol { padding-left: 22px; }

/* -------- FOOTER -------- */
.gd-footer {
  background: var(--gd-black);
  color: #aaa;
  padding: 40px;
  text-align: center;
  font-size: 14px;
}
.gd-footer .gd-logo { justify-content: center; color: #fff; margin-bottom: 12px; display: inline-flex; }
.gd-footer a { color: #fff; text-decoration: none; margin: 0 10px; }
.gd-footer a:hover { color: var(--gd-gold); }

/* -------- COOKIE BANNER -------- */
.gd-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--gd-border);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
}
.gd-cookie-banner.show { display: block; }
.gd-cookie-banner p { font-size: 14px; color: #333; margin: 0 0 14px; }
.gd-cookie-banner .gd-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-cookie-banner button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}
.gd-cookie-accept { background: var(--gd-black); color: #fff; }
.gd-cookie-decline { background: #f0f0f0; color: #333; }

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
  .gd-hero, .gd-ebook-inner { grid-template-columns: 1fr; gap: 40px; }
  .gd-grid { grid-template-columns: 1fr; }
  .gd-h1 { font-size: 40px; }
  .gd-section-title h2, .gd-final-cta h2 { font-size: 32px; }
  .gd-nav-links { display: none; }
  .gd-final-form { flex-direction: column; }
  .gd-page { padding: 40px 24px; margin: 20px; }
}

/* ===== FIX: WordPress menu support for header & footer ===== */

/* Header menu */
.gd-nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.gd-nav-links ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gd-nav-links ul li a {
  margin-left: 0;            /* reset old style */
  color: var(--gd-black);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.gd-nav-links ul li a:hover { color: var(--gd-accent); }

/* Footer menu */
.gd-footer ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}
.gd-footer ul li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.gd-footer ul li + li::before {
  content: "·";
  color: #666;
  margin-right: 18px;
  position: absolute;
  left: -14px;
  top: 0;
}
.gd-footer ul li a {
  color: #fff;
  text-decoration: none;
  margin: 0;
}
.gd-footer ul li a:hover { color: var(--gd-gold); }

/* Mobile: stack header menu */
@media (max-width: 900px) {
  .gd-nav-links { display: block; }
  .gd-nav-links ul {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 10px;
  }
}