/* ========== SHERLOCK x MORI (Victorian club + case file) ========== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --paper:#f6f0e3;
  --paper2:#fff8ea;
  --ink:#18211c;
  --muted: rgba(24,33,28,.72);

  --emerald:#2f4a3c;
  --emerald2:#243a30;

  --gold:#c8a34b;
  --gold2:#a7863a;

  --wine:#7a2e2e;
  --line: rgba(24,33,28,.14);
}

body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 550px at 15% 10%, var(--paper2), var(--paper)),
    repeating-linear-gradient(135deg, rgba(0,0,0,.02) 0 2px, transparent 2px 10px);
}

/* Center layout helper */
.mori-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
}

/* Main card */
.mori-card{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: #fff;
}

/* Left panel: Sherlock vibe */
.mori-side{
  background:
    linear-gradient(180deg, rgba(47,74,60,.06), rgba(47,74,60,.02)),
    radial-gradient(700px 420px at 30% 20%, rgba(200,163,75,.16), transparent 60%),
    linear-gradient(180deg, #fbf6ea, #f1e6d2);
  border-right: 1px solid var(--line);
}

/* Logo seal */
.mori-seal{
  width:88px;
  height:88px;
  border-radius:50%;
  overflow:hidden;              /* THIS clips the image */
  display:flex;
  align-items:center;
  justify-content:center;
  background: radial-gradient(circle at 30% 30%, #ffe7a8, #c8a34b);
  border: 3px solid rgba(24,33,28,.25);
  box-shadow: 0 12px 25px rgba(0,0,0,.18);
}
.mori-seal-img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 12%;  /* move focus UP to the face */
  border-radius:50%;
}



/* Headings */

.mori-brand {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: .08em;
  line-height: 1.1;
}

.mori-subtitle {
  display: block;                 /* puts it under MORI */
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(24,33,28,.7);
  margin-top: 4px;
}

.mori-tag{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform: uppercase;
  color: var(--emerald);
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px dashed rgba(47,74,60,.35);
  background: rgba(47,74,60,.06);
}

.mori-sub{
  color: var(--muted);
  margin: .75rem 0 0;
}

/* Fancy divider like “case file” */
.mori-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24,33,28,.22), transparent);
  margin: 1.25rem 0;
  position: relative;
}
.mori-divider::after{
  content:"✦";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  background: #fff;
  padding: 0 .55rem;
  color: var(--gold2);
  font-size: .9rem;
}

/* Right panel form */
.mori-title{
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.form-label{
  font-weight: 600;
  color: rgba(24,33,28,.85);
}

.form-control{
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: .78rem .95rem;
  background: rgba(246,240,227,.35);
}
.form-control:focus{
  background: #fff;
  border-color: rgba(47,74,60,.55);
  box-shadow: 0 0 0 .2rem rgba(47,74,60,.18);
}

/* Primary button: “sealed” */
.mori-btn{
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, var(--emerald), var(--emerald2));
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.mori-btn:hover{
  filter: brightness(1.03);
}

/* Secondary: gold outline */
.mori-btn-outline{
  border-radius: 12px;
  padding: .85rem 1rem;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(200,163,75,.55);
  color: var(--emerald2);
}
.mori-btn-outline:hover{
  background: rgba(200,163,75,.12);
}

/* Links */
.mori-link{
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
}
.mori-link:hover{ text-decoration: underline; }

/* Small text */
.mori-mini{
  color: rgba(24,33,28,.68);
  font-size: .88rem;
}

/* Tiny “status” bullets */
.mori-bullets{
  margin: .9rem 0 0;
  padding-left: 1.1rem;
  color: rgba(24,33,28,.72);
}
.mori-bullets li{ margin: .35rem 0; }
.kogoro-img {
  width: 160px;
  border-radius: 14px;
  border: 3px solid rgba(200,163,75,.6);
  box-shadow: 0 12px 25px rgba(0,0,0,.2);
}

.kogoro-caption {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(24,33,28,.7);
}
body{
  background:#0f0f0f;
  color:#eaeaea;
}
.card{
  background:#151515;
  border:1px solid #2a2a2a;
}
.breadcrumb a{ color:#caa34b; }
.breadcrumb .active{ color:#a9a9a9; }

input, textarea{
  background:#1b1b1b !important;
  color:#fff !important;
  border:1px solid #333 !important;
}
.feed-card .author-name,
.feed-card .author-name a{
  color: #f1f1f1 !important;
}
.feed-card .author-date{
  color: rgba(255,255,255,.6) !important;
}

/* ===== MORI BLOG DARK THEME ===== */
.mori-dark{
  background:#0b0d10;
  color:#e8e8e8;
}

/* Topbar */
.mori-topbar{
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}
.mori-brand{
  letter-spacing: .25em;
  font-weight: 800;
  color: #fff !important;
}
.mori-nav .nav-link{
  color: rgba(255,255,255,.75) !important;
}
.mori-nav .nav-link:hover,
.mori-nav .nav-link.active{
  color:#fff !important;
}
.mori-user{
  color: rgba(255,255,255,.85);
  font-size: .9rem;
}
.mori-logout{
  border-color: rgba(255,255,255,.25) !important;
}

/* Page head */
.mori-breadcrumb{
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}
.mori-breadcrumb a{ color: rgba(255,255,255,.7); }
.mori-title{
  font-weight: 900;
  margin: 6px 0 2px;
}
.mori-subtitle{
  color: rgba(255,255,255,.6);
}

/* Feed */
.mori-feed{
  max-width: 740px;
  margin: 0 auto;
}
.mori-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Card header */
.mori-cardhead{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
}
.mori-avatar{
  width:44px;height:44px;border-radius:50%;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.18);
  background:#111;
  flex:0 0 auto;
}
.mori-avatar img{
  width:100%;height:100%;
  object-fit: cover;
}
.mori-meta{ flex:1; }
.mori-author{
  color:#fff;
  font-weight:800;
  line-height:1.1;
}
.mori-date{
  color: rgba(255,255,255,.55);
  font-size:.85rem;
}
.mori-dots{
  color: rgba(255,255,255,.6);
  letter-spacing: 2px;
}

/* Media: show FULL image (no crop) */
.mori-media img{
  width:100%;
  height:auto;
  display:block;
  object-fit: contain;
  background:#0b0d10;
}

/* Body */
.mori-cardbody{
  padding: 14px 16px 16px;
}
.mori-posttitle{
  color:#fff;
  font-weight:900;
  margin: 0 0 6px 0;
}
.mori-posttext{
  color: rgba(255,255,255,.8);
  margin: 0 0 10px 0;
}

/* Actions */
.mori-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.mori-likebtn{
  background: rgba(255,80,80,.10);
  border: 1px solid rgba(255,80,80,.35);
  color: #ff6b6b;
}
.mori-likebtn:hover{
  background: rgba(255,80,80,.18);
  color:#ff8a8a;
}
.mori-likehint{
  color: rgba(255,255,255,.55);
  font-size:.9rem;
}

/* Comments */
.mori-nocomments{
  color: rgba(255,255,255,.55);
  font-size:.9rem;
}
.mori-comment{
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mori-cuser{
  color:#fff;
  font-weight:700;
  margin-right:6px;
}
.mori-ctext{
  color: rgba(255,255,255,.78);
}
.mori-input{
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  color:#fff !important;
}
.mori-input::placeholder{
  color: rgba(255,255,255,.45);
}
.mori-postbtn{
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  color:#fff;
}
.mori-postbtn:hover{
  background: rgba(255,255,255,0.16);
}
/* ---------- BLOG (Dark Case Vibes) ---------- */
.mori-dark{
  background:#0b0f14;
  color:#e9eef5;
}

.mori-page-title{
  color:#f2f5f9;
  font-weight:700;
}

.mori-page-sub{
  color:rgba(233,238,245,.65);
}

.mori-post{
  background:#0f1620;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
}

.mori-post-top{
  background:rgba(255,255,255,.02);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.mori-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(200,163,75,.55);
}

.mori-name{
  color:#f2f5f9;
  font-weight:700;
}

.mori-date{
  font-size:.85rem;
  color:rgba(233,238,245,.55);
}

.mori-dot{
  color:rgba(233,238,245,.55);
  user-select:none;
}

.mori-post-img{
  width:100%;
  height:auto;        /* IMPORTANT: no cropping */
  display:block;
  background:#0b0f14;
}

.mori-post-title{
  font-weight:800;
  color:#f2f5f9;
  margin-bottom:.25rem;
}

.mori-post-text{
  color:rgba(233,238,245,.78);
}

.mori-hr{
  border-color:rgba(255,255,255,.10);
}

.mori-like-btn{
  background:transparent;
  border:1px solid rgba(255,255,255,.16);
  color:#e9eef5;
  border-radius:999px;
  padding:.25rem .6rem;
}

.mori-like-btn.is-liked{
  border-color:rgba(255,105,135,.65);
  color:#ff6b8f;
}

.mori-hint{
  color:rgba(233,238,245,.55);
  font-size:.9rem;
}

.mori-comment-empty{
  color:rgba(233,238,245,.55);
  font-size:.9rem;
}

.mori-comment{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  padding:.45rem .6rem;
  border-radius:10px;
  margin-bottom:.35rem;
  color:#e9eef5;
}

.mori-comment-input{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.12);
  color:#e9eef5;
}

.mori-comment-input::placeholder{
  color:rgba(233,238,245,.45);
}

.mori-post-btn{
  border-radius:10px;
}
/* ===== Dark theme form controls (fix black text) ===== */
body{
  background:#0b0f14; /* dark */
  color:#e8edf3;
}

/* inputs, selects, textarea */
.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select {
  background:#121922 !important;
  color:#e8edf3 !important;
  border:1px solid rgba(255,255,255,.12) !important;
}

.form-control::placeholder,
textarea::placeholder{
  color:rgba(232,237,243,.55) !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus{
  background:#121922 !important;
  color:#e8edf3 !important;
  border-color: rgba(200,163,75,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(200,163,75,.18) !important;
}

/* dropdown options */
option{ background:#121922; color:#e8edf3; }
/* ===== Tables on dark background ===== */
table{
  color:#e8edf3;
}
.table, .table *{
  color:#e8edf3 !important;
}
.table thead th{
  background:#111822 !important;
  border-color: rgba(255,255,255,.12) !important;
}
.table tbody td{
  background:#0f1620 !important;
  border-color: rgba(255,255,255,.08) !important;
}
/* ===== Breadcrumbs on dark ===== */
.mori-breadcrumb{
  background:transparent;
  margin:0;
}
.mori-breadcrumb .breadcrumb-item a{
  color: rgba(200,163,75,.95);
  text-decoration:none;
}
.mori-breadcrumb .breadcrumb-item.active{
  color: rgba(232,237,243,.70);
}
.mori-breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  color: rgba(232,237,243,.35);
}
/* Fix hidden headings inside dark pages/cards */
h1, h2, h3, h4, h5, h6,
.mori-title, .page-title, .section-title {
  color: #e8edf3 !important;
}

/* If your form is inside a card/box, force text color inside it */
.mori-card, .mori-panel, .mori-box, .card {
  color: #e8edf3;
}
.mori-breadcrumb .breadcrumb-item,
.mori-breadcrumb .breadcrumb-item a{
  font-weight: 500;
}
.mori-music-btn{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  backdrop-filter: blur(10px);
}

.mori-music-btn:hover{
  background: rgba(255,255,255,0.15);
}
/* ===============================
   LOGIN PAGE VISIBILITY FIX
   =============================== */

/* Input text */
.mori-card input,
.mori-card textarea {
  color: #ffffff !important;
  background-color: #eef4ff;
}

/* Placeholder text */
.mori-card input::placeholder,
.mori-card textarea::placeholder {
  color: #6c757d;
}

/* Labels */
.mori-card label {
  color: #eaeaea;
}

/* Remember me text */
.mori-card .form-check-label {
  color: #eaeaea;
}

/* Forgot password link */
.mori-card .mori-link {
  color: #9fd3a1;
}

.mori-card .mori-link:hover {
  text-decoration: underline;
}

/* Small helper text */
.mori-card .mori-mini {
  color: #bfc7c2;
}
/* =====================================
   LOGIN PAGE – FORCE VISIBILITY FIX
   ===================================== */

/* Email + password input text */
.mori-card input.form-control {
  color: #000000 !important;
  background-color: #eef4ff !important;
}

/* Placeholder text */
.mori-card input.form-control::placeholder {
  color: #6c757d !important;
  opacity: 1;
}

/* Labels (Email / Password) */
.mori-card .form-label {
  color: #ffffff !important;
}

/* Remember me text */
.mori-card .form-check-label {
  color: #ffffff !important;
}

/* Forgot password link */
.mori-card a.mori-link {
  color: #9fd3a1 !important;
}

/* Mini helper text under form */
.mori-card .mori-mini {
  color: #cfd6d1 !important;
}

