/*
Theme Name: QR Morph
Theme URI: https://qrmorph.com
Author: Damien Lee
Description: A modern, AdSense-ready QR Code Generator WordPress theme.
Version: 1.3
License: GPL v2 or later
*/

:root {
  --primary: #4f46e5;
  --secondary: #06b6d4;
  --accent: #ecfeff;
  --text: #0f172a;
  --muted: #64748b;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

/* HEADER */
header {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  background: linear-gradient(90deg, var(--accent), #ffffff);
}

.logo {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
}

.logo span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  text-align: center;
  margin-top: 12px;
}

nav a {
  margin: 0 16px;
  font-weight: 500;
  color: var(--muted);
}

/* LAYOUT */
.qrmorph-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
  border: 1px solid #eef2ff;
}

/* FORM */
input, select {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #c7d2fe;
}

label {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(79,70,229,.35);
}

/* COLOR PICKERS */
.color-row {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.color-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-box input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #c7d2fe;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}

.color-box input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

.color-box input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

/* DOWNLOADS */
.downloads {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.downloads button {
  flex: 1;
  background: #ffffff;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

/* QR */
#qrcode {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#qrcode canvas {
  width: 380px;
  height: 380px;
}

/* ADS */
.ad {
  margin: 30px 0;
  padding: 22px;
  border: 2px dashed #c7d2fe;
  text-align: center;
  color: var(--muted);
  border-radius: 14px;
  background: #f8fafc;
}

/* FOOTER */
footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 70px;
  padding: 35px 0;
  text-align: center;
  color: var(--muted);
}

/* MOBILE */
@media (max-width: 900px) {
  .qrmorph-layout {
    grid-template-columns: 1fr;
  }
}
/* CONTENT PAGES (NO GENERATOR) */
.content-page {
  background: #ffffff;
  padding: 60px 20px;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.content-header h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #111827;
}

.content-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #374151;
}

.content-body p {
  margin-bottom: 18px;
}

.content-body h2,
.content-body h3 {
  margin-top: 35px;
  margin-bottom: 12px;
  color: #1f2937;
}

.content-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.content-body a {
  color: #4f46e5;
  text-decoration: underline;
}
