/*
Theme Name: Owned Reader
Description: A reading-focused blog theme with a clear “Next post” button. Ships with the owned_wp_pack.
Author: (local pack)
Version: 1.0.1
Text Domain: owned-reader
*/

:root {
  --bg: #070a12;
  --surface: rgba(255, 255, 255, 0.04);
  --text: #e9ecff;
  --muted: #b6bfdf;
  --border: rgba(255, 255, 255, 0.12);
  --accent1: #7c5cff;
  --accent2: #2be4c7;
  --max: 62rem;
  --pad: clamp(1rem, 2.4vw, 1.5rem);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(800px 450px at 100% 10%, rgba(43, 228, 199, 0.18), transparent 55%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  line-height: 1.8;
}

a { color: var(--accent2); text-underline-offset: 0.2em; }
a:hover { color: #7df7ea; }

.or-wrap { max-width: var(--max); margin: 0 auto; padding: var(--pad); }

.or-top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(10px);
}
.or-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.or-brand b { font-size: 1.05rem; }
.or-sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.or-top a { color: var(--muted); text-decoration: none; }
.or-top a:hover { color: var(--text); }

.or-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; justify-content: flex-end; }
.or-nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.or-nav a:hover { color: var(--text); }
.or-footer-nav { margin: 0 0 0.5rem 0; font-size: 0.9rem; }
.or-footer-nav a { color: var(--muted); text-decoration: none; }
.or-footer-nav a:hover { color: var(--text); }

.or-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.05rem, 2.2vw, 1.55rem);
  margin: 1.1rem 0;
}

.or-title { font-size: clamp(1.5rem, 1.0rem + 1.2vw, 2.2rem); line-height: 1.2; margin: 0.4rem 0; }
.or-meta { color: var(--muted); font-size: 0.95rem; }

.or-article h1, .or-article h2, .or-article h3 { line-height: 1.3; }
.or-article h1 { font-size: clamp(1.45rem, 1.0rem + 0.8vw, 1.8rem); margin-top: 0; }
.or-article h2 { font-size: 1.2rem; margin-top: 1.45rem; }
.or-article h3 { font-size: 1.05rem; margin-top: 1.0rem; color: #d8dfff; }
.or-article p, .or-article li { color: #d9deff; }
.or-article ul { padding-left: 1.1rem; }

.or-list a {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.03);
}
.or-list a:hover { border-color: rgba(43, 228, 199, 0.45); }

.or-footer { color: var(--muted); font-size: 0.92rem; margin-top: 1.2rem; padding: 1.1rem 0 2.2rem; border-top: 1px solid var(--border); }

/* Floating next (also rendered in footer) */
#or-next {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
}
#or-next a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  color: #0a0f1f;
  font-weight: 800;
  background: linear-gradient(135deg, #2be4c7, #8df7ed);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
#or-next small { display: block; font-size: 0.78rem; color: rgba(10, 15, 31, 0.78); margin-top: 2px; }
@media (max-width: 640px) { #or-next { left: 12px; right: 12px; } #or-next a { width: 100%; } }
