/*
Theme Name: MyLaw.Zone Theme
Theme URI: https://mylaw.zone
Author: MyLaw.Zone
Author URI: https://mylaw.zone
Description: MyLaw.Zone — Legal Infrastructure for the Internet. A modern, blue-forward legaltech theme (ThemeForest-style) designed to pair with the MyLaw.Zone Platform plugin.
Version: 1.21
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mylawzone-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options
*/

:root{
  --mz-blue:#1e5ea8;
  --mz-blue-2:#2a76c7;
  --mz-accent:#b91c1c; /* subtle crimson accent for Community */
  --mz-accent-2:#ef4444;
  --mz-ink:#0f172a;
  --mz-muted:#64748b;
  --mz-bg:#f6f9fc;
  --mz-card:#ffffff;
  --mz-border:#e6edf5;
  --mz-shadow:0 10px 30px rgba(2, 12, 27, 0.08);
  --mz-radius:16px;
  --mz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: var(--mz-font);
  background: var(--mz-bg);
  color: var(--mz-ink);
}
a{ color:inherit; }
img{ max-width:100%; height:auto; }

.mz-container{ max-width:1180px; margin:0 auto; padding:0 20px; }

/* Header */
.mz-nav{
  position:sticky; top:0; z-index:60;
  background:#fff; border-bottom:1px solid var(--mz-border);
}
.mz-nav-inner{
  display:flex; align-items:center; justify-content:flex-start;
  gap:14px; padding:14px 0;
}
.mz-brand{ display:flex; align-items:center; gap:10px; text-decoration:none; font-weight:900; }
/* Brand/logo sizing: keep it proportional to the nav */
.mz-brand img,
.mz-brand .custom-logo,
.mz-brand .custom-logo-link img{
  width:auto;
  max-height:32px; /* ~70% smaller than the previous oversized logo */
  height:auto;
}
.mz-nav-right{ margin-left:auto; }
.mz-menu{ display:flex; align-items:center; gap:16px; }
.mz-menu a{ text-decoration:none; font-weight:700; font-size:13px; color:#334155; padding:6px 6px; }
.mz-menu a:hover{ color:var(--mz-blue); }

.mz-actions{ display:flex; gap:10px; align-items:center; }
.mz-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px; border-radius:12px;
  border:1px solid var(--mz-border); background:#fff;
  font-weight:800; font-size:14px; text-decoration:none; color:var(--mz-ink);
}
.mz-btn:hover{ filter:brightness(0.98); }
.mz-btn-primary{ background:var(--mz-blue); border-color:var(--mz-blue); color:#fff; }
.mz-btn-primary:hover{ background:var(--mz-blue-2); border-color:var(--mz-blue-2); }
.mz-btn-accent{ background:var(--mz-accent); border-color:var(--mz-accent); color:#fff; }
.mz-btn-accent:hover{ background:var(--mz-accent-2); border-color:var(--mz-accent-2); }

/* Hero */
.mz-hero{ padding:30px 0 10px; }
.mz-hero-card{
  display:grid; grid-template-columns:1.05fr 0.95fr;
  overflow:hidden; border-radius:24px; border:1px solid var(--mz-border);
  background:#fff; box-shadow:var(--mz-shadow);
}
@media(max-width:980px){ .mz-hero-card{ grid-template-columns:1fr; } }
.mz-hero-left{ padding:44px; }
.mz-hero-title{ margin:0; font-size:46px; line-height:1.05; letter-spacing:-0.02em; font-weight:900; }
.mz-hero-title span{ color:var(--mz-blue); }
.mz-hero-sub{ margin:14px 0 0; color:var(--mz-muted); font-size:16px; line-height:1.55; max-width:560px; }
.mz-hero-actions{ margin-top:22px; display:flex; flex-wrap:wrap; gap:12px; }
.mz-hero-right{
  min-height:360px;
  background:
    linear-gradient(90deg, rgba(15,23,42,0.0), rgba(15,23,42,0.22)),
    url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1400&q=60') center/cover no-repeat;
}

/* Feature tiles */
.mz-tiles{ padding:18px 0 28px; }
.mz-tile-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:14px; }
@media(max-width:1100px){ .mz-tile-grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:520px){ .mz-tile-grid{ grid-template-columns:1fr;} }
.mz-tile{
  background:#fff; border:1px solid var(--mz-border); border-radius:18px;
  padding:16px; text-align:center; box-shadow:0 6px 16px rgba(2,12,27,0.06);
}
.mz-tile b{ display:block; margin-top:10px; }
.mz-tile small{ display:block; margin-top:6px; color:var(--mz-muted); font-weight:700; }

/* Sections */
.mz-section{ padding:30px 0; }
.mz-grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media(max-width:980px){ .mz-grid3{ grid-template-columns:1fr;} }

/* Back-compat / semantic grid helpers */
.mz-grid--3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media(max-width:980px){ .mz-grid--3{ grid-template-columns:1fr;} }
.mz-card{
  background:#fff; border:1px solid var(--mz-border); border-radius:22px; padding:18px;
  box-shadow:0 6px 18px rgba(2,12,27,0.06);
}

/* Forms (Community / Cases) */
.mz-form{ display:flex; flex-direction:column; gap:10px; }
.mz-label{ font-weight:900; font-size:13px; color:#334155; margin-top:8px; }
.mz-input{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--mz-border);
  background:#fff;
  font-size:14px;
}
.mz-input:focus{
  outline:none;
  border-color:rgba(30,94,168,0.45);
  box-shadow:0 0 0 3px rgba(30,94,168,0.12);
}
textarea.mz-input{ resize:vertical; min-height:160px; }
.mz-card h3{ margin:0 0 10px; font-size:16px; }
.mz-card p{ margin:0; color:var(--mz-muted); line-height:1.55; font-size:14px; }

.mz-band{
  background: linear-gradient(180deg, rgba(30,94,168,0.08), rgba(255,255,255,0));
  border-top:1px solid var(--mz-border);
  border-bottom:1px solid var(--mz-border);
}

/* Page */
.mz-page{ padding:26px 0 40px; }
.mz-page h1{ font-size:34px; margin:8px 0 10px; font-weight:900; }
.mz-page p{ color:var(--mz-muted); line-height:1.6; }

/* Footer */
.mz-footer{ margin-top:36px; background:#fff; border-top:1px solid var(--mz-border); padding:28px 0; }
.mz-footer small{ color:var(--mz-muted); }

/* Plugin page wrappers */
.mz-shell{ padding:24px 0 40px; }
.mz-title{ font-size:28px; font-weight:900; margin:0 0 14px; }
.mz-row{ display:flex; gap:16px; flex-wrap:wrap; }
.mz-kpi{ flex:1; min-width:220px; }
.mz-kpi .value{ font-size:30px; font-weight:900; margin-top:8px; }
.mz-table{ width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--mz-border); border-radius:16px; overflow:hidden; background:#fff; }
.mz-table th, .mz-table td{ padding:12px 14px; border-bottom:1px solid var(--mz-border); font-size:14px; }
.mz-table th{ background:#f8fbff; font-weight:900; color:#334155; text-align:left; }
.mz-table tr:last-child td{ border-bottom:none; }
.mz-note{ color:var(--mz-muted); font-size:14px; line-height:1.55; }


/* Footer logo sizing */
.mz-footer .custom-logo { max-height: 48px; width: auto; }



/* --- Responsive header: keep logo visible on mobile --- */
.mz-brand .custom-logo-link { display: inline-flex; align-items: center; }
.mz-brand img, .mz-brand .custom-logo { display:block; max-height: 56px; width:auto; }

.mz-nav-toggle{ display:none; }
.mz-burger{ display:none; cursor:pointer; padding:10px; border-radius:12px; border:1px solid rgba(15,59,122,.18); }
.mz-burger span{ display:block; width:22px; height:2px; background: var(--mz-ink); margin:5px 0; }

.mz-nav-right{ display:flex; align-items:center; gap:18px; }

@media (max-width: 900px){
  .mz-burger{ display:inline-block; }
  .mz-nav-right{ display:none; width:100%; flex-direction:column; align-items:stretch; gap:12px; padding-top:10px; }
  .mz-menu{ flex-direction:column; align-items:flex-start; gap:10px; }
  .mz-actions{ display:flex; gap:10px; flex-wrap:wrap; }
  .mz-nav-inner{ align-items:center; }
  /* When toggled, show menu */
  #mz-nav-toggle:checked ~ .mz-nav-right{ display:flex; }
}



/* Keep auth buttons on one line (desktop) */
.mz-actions{ display:flex; gap:10px; align-items:center; flex-wrap:nowrap; }
.mz-actions .mz-btn{ white-space:nowrap; }

/* Ensure logo is always visible on mobile */
.mz-brand{ display:flex; align-items:center; flex:0 0 auto; }
.mz-brand .custom-logo-link{ display:inline-flex !important; align-items:center; }
.mz-brand .custom-logo{ display:block !important; max-height:56px; width:auto; }
@media (max-width: 900px){
  .mz-actions{ width:100%; justify-content:flex-start; }
}


.mz-feature-ico{font-size:20px;vertical-align:middle;margin-right:8px;color:var(--mz-blue);}


/* =========================
   Community / Social layer
   ========================= */
.mz-page-title{ margin:0; }
.mz-sub{ margin:8px 0 0; color:var(--mz-muted); line-height:1.6; }

.mz-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.mz-section-head h2{ margin:0; font-size:18px; font-weight:900; }
.mz-section-head--stack{ align-items:center; }
@media(max-width:780px){
  .mz-section-head{ flex-direction:column; align-items:flex-start; }
  .mz-section-head--stack{ align-items:flex-start; }
}

.mz-link{ color:var(--mz-blue); text-decoration:none; font-weight:900; }
.mz-link:hover{ text-decoration:underline; }

.mz-community-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px;
  border-radius:22px;
  background:
    linear-gradient(180deg, rgba(185,28,28,0.06), rgba(255,255,255,0));
}
.mz-community-actions{ display:flex; flex-wrap:wrap; gap:10px; }

.mz-circles-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.mz-circles-grid--full{ grid-template-columns:repeat(5,1fr); }
@media(max-width:1100px){ .mz-circles-grid--full{ grid-template-columns:repeat(3,1fr);} }
@media(max-width:980px){ .mz-circles-grid{ grid-template-columns:repeat(2,1fr);} }
@media(max-width:520px){ .mz-circles-grid, .mz-circles-grid--full{ grid-template-columns:1fr;} }

.mz-circle-card{
  display:flex;
  gap:12px;
  align-items:center;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--mz-border);
  background:#fff;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(2,12,27,0.05);
}
.mz-circle-card:hover{ transform:translateY(-1px); box-shadow:0 10px 22px rgba(2,12,27,0.08); }
.mz-circle-ico{
  width:44px; height:44px; border-radius:14px;
  background: rgba(185,28,28,0.10);
  position:relative;
}
.mz-circle-ico:after{
  content:"";
  position:absolute; inset:12px;
  border-radius:10px;
  border:2px solid rgba(185,28,28,0.35);
}
.mz-circle-title{ font-weight:900; font-size:14px; }
.mz-circle-meta{ color:var(--mz-muted); font-weight:800; font-size:12px; margin-top:4px; }

.mz-cases-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media(max-width:980px){ .mz-cases-grid{ grid-template-columns:1fr; } }

.mz-case-card, .mz-case-row{ background:#fff; border:1px solid var(--mz-border); border-radius:22px; }
.mz-case-card{ padding:16px; box-shadow:0 6px 18px rgba(2,12,27,0.06); }
.mz-case-row{ padding:18px; }

.mz-case-row-top, .mz-case-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mz-case-meta{ color:var(--mz-muted); font-weight:800; font-size:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mz-dot{ opacity:0.7; }

.mz-trust{
  width:14px; height:14px; border-radius:999px;
  background: var(--mz-accent);
  box-shadow:0 0 0 4px rgba(185,28,28,0.12);
  flex:0 0 auto;
}

.mz-case-title{ margin:12px 0 8px; font-size:16px; font-weight:900; }
.mz-case-title a{ text-decoration:none; }
.mz-case-title a:hover{ color:var(--mz-blue); }
.mz-case-excerpt{ color:var(--mz-muted); font-size:14px; line-height:1.55; }

.mz-case-tags{ margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }
.mz-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,0.10);
  background:rgba(255,255,255,0.9);
  font-weight:900;
  font-size:12px;
  color:#334155;
  text-decoration:none;
}
.mz-chip:hover{ border-color:rgba(185,28,28,0.35); }

.mz-pagination{ margin:18px 0 0; }
.page-numbers{
  display:inline-flex;
  margin:0 4px 4px 0;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--mz-border);
  background:#fff;
  text-decoration:none;
  font-weight:900;
  color:#334155;
}
.page-numbers.current{ background:rgba(185,28,28,0.10); border-color:rgba(185,28,28,0.22); }

.mz-case-single{ padding:22px; }
.mz-case-h1{ font-size:28px; margin-top:8px; }
.mz-case-content{ margin-top:14px; }
.mz-case-content p{ color:#334155; }
.mz-case-cta{ margin-top:18px; display:flex; gap:10px; flex-wrap:wrap; }

/* Comments */
.mz-comments{ margin-top:16px; }
.comment-respond, .comments-area{ background:#fff; border:1px solid var(--mz-border); border-radius:22px; padding:18px; }
.comment-list{ padding-left:0; list-style:none; }
.comment-metadata{ color:var(--mz-muted); font-size:12px; }
.comment-content{ color:#334155; }






/* Mockup-style feature tiles */
.mz-features{margin-top:26px}
.mz-feature{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:18px 16px;box-shadow:0 10px 22px rgba(2,6,23,.06);transition:transform .18s ease, box-shadow .18s ease}
.mz-feature:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(2,6,23,.10)}
.mz-feature-title{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;font-weight:800;color:var(--mz-ink)}
.mz-feature-icon{width:54px;height:54px;border-radius:14px;background:rgba(29,78,216,.08);display:flex;align-items:center;justify-content:center}
.mz-feature-svg{width:28px;height:28px;display:block}
.mz-feature-label{font-size:14px;letter-spacing:.1px}



/* Mockup-style icon badges for the dashboard sidebar (plugin shell) */
.mz-side .mz-app-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
}
.mz-side .mz-app-nav a::before{
  content:"";
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.12);
  flex:0 0 auto;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:22px 22px;
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:22px 22px;
  background-color:rgba(255,255,255,.12);
}
/* Use white icon via mask */
.mz-side .mz-app-nav a::after{display:none}
.mz-side .mz-app-nav a::before{background-color:rgba(255,255,255,.14);}
.mz-side .mz-app-nav a.active::before{background-color:rgba(255,255,255,.22);}
.mz-side .mz-app-nav a::before{background-color:rgba(255,255,255,.14);}
.mz-side .mz-app-nav a{color:#fff;text-decoration:none;font-weight:800}
.mz-side .mz-app-nav a.active{background:rgba(255,255,255,.12)}

/* Icon mappings (theme icons) */
.mz-side .mz-app-nav a[href*="/dashboard"]::before{
  -webkit-mask-image:url(assets/icons/dashboard.svg);
  mask-image:url(assets/icons/dashboard.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/legal-ai"]::before{
  -webkit-mask-image:url(assets/icons/legal_ai.svg);
  mask-image:url(assets/icons/legal_ai.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/complaints"]::before{
  -webkit-mask-image:url(assets/icons/complaints.svg);
  mask-image:url(assets/icons/complaints.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/documents"]::before{
  -webkit-mask-image:url(assets/icons/complaints.svg);
  mask-image:url(assets/icons/complaints.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/messages"]::before{
  -webkit-mask-image:url(assets/icons/dashboard.svg);
  mask-image:url(assets/icons/dashboard.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/nearby"]::before{
  -webkit-mask-image:url(assets/icons/nearby.svg);
  mask-image:url(assets/icons/nearby.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/billing"]::before{
  -webkit-mask-image:url(assets/icons/complaints.svg);
  mask-image:url(assets/icons/complaints.svg);
  background-color:#fff;
}

/* Community routes */
.mz-side .mz-app-nav a[href*="/community"]::before{
  -webkit-mask-image:url(assets/icons/community.svg);
  mask-image:url(assets/icons/community.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/circles"]::before{
  -webkit-mask-image:url(assets/icons/circles.svg);
  mask-image:url(assets/icons/circles.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/cases"]::before{
  -webkit-mask-image:url(assets/icons/cases.svg);
  mask-image:url(assets/icons/cases.svg);
  background-color:#fff;
}
.mz-side .mz-app-nav a[href*="/rooms"]::before{
  -webkit-mask-image:url(assets/icons/room.svg);
  mask-image:url(assets/icons/room.svg);
  background-color:#fff;
}


/* === v1.12 Header refinements: tighter menu, more right aligned === */
.mz-nav-inner{ justify-content:flex-start; }
.mz-brand{ flex:0 0 auto; }
.mz-nav-right{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  min-width:0;
}
.mz-menu{
  gap:14px;
  flex:0 1 auto;
  justify-content:flex-end;
}
.mz-menu a{
  font-size:13px;
  letter-spacing:0.1px;
  padding:6px 6px;
  border-radius:10px;
}
.mz-menu a:focus,
.mz-menu a:hover{
  background:rgba(15, 23, 42, 0.04);
}
.mz-actions{ gap:8px; flex:0 0 auto; }
.mz-actions .mz-btn{ padding:9px 12px; border-radius:12px; }
@media (max-width: 980px){
  .mz-menu a{ font-size:14px; padding:10px 12px; background:transparent; }
}



/* Cleaner desktop menu: primary links + dropdown */
.mz-menu{ gap:12px; }
.mz-menu .mz-menu-primary{ font-size:13px; padding:6px 8px; border-radius:999px; }
.mz-menu-dropdown{ position:relative; }
.mz-menu-dropdown > summary{
  list-style:none;
  cursor:pointer;
  font-size:13px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--mz-border, rgba(0,0,0,.12));
  background: var(--mz-bg, #fff);
}
.mz-menu-dropdown > summary::-webkit-details-marker{ display:none; }
.mz-menu-dropdown[open] > summary{ box-shadow:0 6px 18px rgba(0,0,0,.12); }
.mz-dropdown-panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:220px;
  padding:10px;
  border-radius:14px;
  border:1px solid var(--mz-border, rgba(0,0,0,.12));
  background:#fff;
  box-shadow:0 18px 40px rgba(0,0,0,.14);
  display:flex;
  flex-direction:column;
  gap:6px;
  z-index:99999;
}
.mz-dropdown-panel a{
  padding:10px 10px;
  border-radius:12px;
}
.mz-dropdown-panel a:hover{
  background: rgba(0,0,0,.045);
}
@media (max-width: 960px){
  /* keep existing mobile burger menu behavior */
  .mz-menu-dropdown{ display:none; }
}


.mz-pricing-fallback .mz-price{ font-size:34px; margin:10px 0 14px; }
.mz-pricing-fallback .mz-price span{ font-size:14px; opacity:.7; }
.mz-pricing-fallback .mz-note{ margin-top:18px; padding:14px; border-radius:14px; border:1px solid var(--mz-border, rgba(0,0,0,.12)); background: rgba(0,0,0,.02); }


/* v1.21 menu density tweaks */
.mz-menu { gap: 10px; }
.mz-menu a, .mz-menu summary { font-size: 13px; padding: 8px 10px; }
.mz-menu-dropdown summary { padding: 8px 10px; }
@media (max-width: 980px){
  .mz-menu a, .mz-menu summary { font-size: 14px; padding: 10px 12px; }
}


/* v1.21 AI chat */
.mz-ai-log{ max-height: 420px; overflow:auto; border: 1px solid var(--mz-border, #e5e7eb); border-radius: 14px; padding: 14px; background: #fff; }
.mz-ai-row{ display:flex; gap:12px; align-items:flex-end; margin-top: 12px; }
.mz-ai-textarea{ width: 100%; border: 1px solid var(--mz-border, #e5e7eb); border-radius: 14px; padding: 10px 12px; }
.mz-ai-msg{ padding: 10px 12px; border-radius: 14px; margin: 8px 0; white-space: pre-wrap; }
.mz-ai-user{ background: #fff; border:1px solid var(--mz-border, #e5e7eb); }
.mz-ai-assistant{ background: rgba(220,38,38,0.06); border:1px solid rgba(220,38,38,0.20); }
@media(max-width:720px){
  .mz-ai-row{ flex-direction: column; align-items: stretch; }
  #mz-ai-send{ width: 100%; }
}
