/*
Theme Name: CoPresenter AI
Theme URI: https://copresenter.ai/
Author: CoPresenter AI
Author URI: https://copresenter.ai/
Description: A dark, violet-gradient "coming soon" / marketing theme matching the CoPresenter AI brand. Glassmorphism cards, gradient accents, an email signup hero, and a four-up feature grid. Homepage, pages, blog, and 404 all share the style. Content is editable in Appearance -> Customize.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: copresenter
Tags: dark, one-column, custom-colors, custom-menu, featured-images, full-width-template, landing-page, coming-soon
*/

/* ===== Design tokens (brand colors are also injected from the Customizer) ===== */
:root {
  --bg-deep: #0e0b17;
  --bg-card: rgba(255,255,255,0.06);
  --text: #eef;
  --muted: #bfc6ff;
  --brand-1: #9b5cf6;
  --brand-2: #7c3aed;
  --ok: #34d399;
  --error: #f87171;
  --ring: rgba(153, 102, 255, 0.35);
  --shadow: 0 10px 35px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(124,58,237,0.35), transparent 60%),
    radial-gradient(1000px 500px at 80% 0%, rgba(155,92,246,0.30), transparent 60%),
    linear-gradient(180deg, #141026 0%, #0e0b17 60%);
  background-attachment: fixed;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}

a { color: var(--brand-1); }

img { max-width: 100%; height: auto; }

/* ===== Layout shells ===== */
.site-header,
.site-footer {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
}

/* ===== Header / brand ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
a.brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.3px;
}
a.brand svg,
.brand svg {
  width: 36px; height: 36px;
  filter: drop-shadow(0 4px 12px rgba(124,58,237,.45));
}
.brand img.brand-logo {
  width: 36px; height: 36px; border-radius: 8px;
  filter: drop-shadow(0 4px 12px rgba(124,58,237,.45));
}

/* ===== Primary nav ===== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px var(--ring);
}

/* ===== Main ===== */
main.site-main {
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ===== Card ===== */
.card {
  width: 100%;
  max-width: 860px;
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.card.wide { max-width: 1000px; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
.hero p.lead {
  color: var(--muted);
  font-size: clamp(16px, 2.1vw, 18px);
  margin: 0 0 22px;
}

/* ===== Pill ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #e9e7ff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
}

/* ===== Signup form ===== */
form.notify {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 6px;
}
form.notify input[type="email"] {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 14px;
  color: var(--text);
  outline: none;
  font-size: 16px;
}
form.notify input[type="email"]::placeholder { color: #cfd3ff; opacity: .7; }
form.notify input[type="email"]:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 6px var(--ring);
}

button.cta,
.cta {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(124,58,237,0.5);
}
button.cta:hover, .cta:hover { filter: brightness(1.07); }

.notify-message { margin-top: 10px; font-size: 14px; }
.notify-message.success { color: var(--ok); }
.notify-message.error { color: var(--error); }
.is-hidden { display: none; }

/* ===== Features grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  margin-top: 28px;
}
.feature {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
}
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.right {
  border-left: 1px dashed rgba(255,255,255,0.12);
  padding-left: 24px;
}

.mini {
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

.socials {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.socials a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}
.socials a:hover { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }

/* ===== Footer ===== */
.site-footer {
  opacity: 0.85;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .legal a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

/* ===== Content typography (pages / posts) ===== */
.content-card h1, .content-card h2, .content-card h3 { line-height: 1.15; }
.content-card h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 16px; }
.content-card h2 { font-size: 26px; margin: 28px 0 12px; }
.content-card h3 { font-size: 20px; margin: 22px 0 10px; }
.content-card p, .content-card li { color: var(--text); line-height: 1.7; font-size: 17px; }
.content-card a { color: var(--brand-1); }
.content-card img { border-radius: 14px; }
.content-card blockquote {
  margin: 20px 0; padding: 12px 18px;
  border-left: 3px solid var(--brand-1);
  background: rgba(255,255,255,0.04);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}
.content-card pre {
  background: rgba(0,0,0,0.35);
  padding: 16px; border-radius: 12px; overflow:auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.content-card code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 6px; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.entry-title a { color: var(--text); text-decoration: none; }
.entry-title a:hover { color: var(--brand-1); }

/* Post list */
.post-list { display: grid; gap: 18px; width: 100%; max-width: 860px; }
.post-list .feature h3 { font-size: 22px; }

/* Pagination */
.pagination { margin-top: 24px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.pagination .page-numbers {
  color: var(--text); text-decoration:none;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 13px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
}
.pagination .page-numbers.current { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }

/* 404 */
.error-404 { text-align: center; }
.error-404 .big { font-size: clamp(60px, 12vw, 120px); margin: 0; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color: transparent; }

/* Accessibility helper */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-2); color:#fff; padding: 10px 14px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* WordPress core alignment/caption support */
.aligncenter { display:block; margin-left:auto; margin-right:auto; }
.alignright { float:right; margin: 0 0 1em 1.5em; }
.alignleft { float:left; margin: 0 1.5em 1em 0; }
.wp-caption-text { color: var(--muted); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 820px){
  .hero { grid-template-columns: 1fr; }
  .right { border-left: 0; padding-left: 0; border-top: 1px dashed rgba(255,255,255,0.12); padding-top: 22px; }
  form.notify { grid-template-columns: 1fr; }
}
