
:root{
  --text:#111;
  --muted:#667085;
  --line:rgba(17,17,17,.08);
  --accent:#7a0f2b;
  --bgTop:#ffffff;
  --bgBottom:#e5e5e5;
  --sidebarGlass: rgba(255,255,255,.72);
  --sidebarStroke: rgba(17,17,17,.08);
  --sidebarShadow: 0 20px 60px rgba(0,0,0,.08);
  --itemHover: rgba(122,15,43,.06);
  --itemActive: rgba(122,15,43,.12);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter', sans-serif;
  color:var(--text);
  background:linear-gradient(to top, var(--bgBottom) 0%, var(--bgTop) 100%);
  min-height:100vh;
}
img{max-width:100%;display:block;height:auto}
a{text-decoration:none;color:var(--text)}
a:hover{color:var(--accent)}
.app-shell{min-height:100vh}
.app{
  min-height:100vh;
  display:flex;
  gap:18px;
  padding:18px;
}

.sidebar{
  width:300px;
  border:1px solid var(--sidebarStroke);
  background:var(--sidebarGlass);
  border-radius:18px;
  box-shadow:var(--sidebarShadow);
  padding:16px;
  position:sticky;
  top:18px;
  align-self:flex-start;
  height:calc(100vh - 36px);
  overflow:auto;
  backdrop-filter: blur(10px);
}
.side-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 10px 14px;
  border-bottom:1px solid var(--line);
  margin-bottom:12px;
}
.side-mark{
  width:44px;
  height:44px;
  border-radius:14px;
  background:none;
  box-shadow:none;
  display:grid;
  place-items:center;
}
.side-brand{line-height:1.1}
.side-brand .name{
  font-weight:900;
  letter-spacing:.4px;
  font-size:14px;
}
.side-brand .tag{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  margin-top:4px;
}
.side-search{
  margin:12px 6px 14px;
  position:relative;
}
.side-search i{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:14px;
}
.side-search input{
  width:100%;
  border:1px solid var(--line);
  background:rgba(255,255,255,.65);
  padding:11px 12px 11px 36px;
  border-radius:12px;
  outline:none;
  font-weight:600;
}
.side-search input:focus{
  border-color:rgba(122,15,43,.35);
  box-shadow:0 0 0 4px rgba(122,15,43,.10);
}

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:0;
  padding:0 6px 10px;
}
.nav a{
  text-decoration:none;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:12px;
  font-weight:700;
  font-size:14px;
  border:1px solid transparent;
  transition:all .18s ease;
}
.nav a i{
  width:18px;
  text-align:center;
  color:var(--muted);
}
.nav a:hover{
  background:var(--itemHover);
  border-color:rgba(122,15,43,.12);
  transform:translateY(-1px);
}
.nav a.active{
  background:var(--itemActive);
  border-color:rgba(122,15,43,.18);
}
.nav a.active i{color:var(--accent)}

.nav-section{
  margin:4px 0;
  border-top:1px dashed var(--line);
  padding-top:4px;
}
.nav-section-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:700;
  font-size:14px;
  color:var(--text);
  cursor:pointer;
  transition:all .18s ease;
  user-select:none;
}
.nav-section-head:hover{
  background:var(--itemHover);
  border-color:rgba(122,15,43,.12);
  transform:translateY(-1px);
}
.nav-section-head.active{
  background:var(--itemActive);
  border-color:rgba(122,15,43,.18);
}
.nav-section-head > i:first-child{
  width:18px;
  text-align:center;
  color:var(--muted);
}
.nav-section-head.active > i:first-child{
  color:var(--accent);
}
.nav-section-head > span{
  flex:1;
}
.nav-chevron-icon{
  font-size:12px;
  color:var(--muted);
  transition:transform .25s ease;
}
.nav-section.is-open .nav-chevron-icon{
  transform:rotate(180deg);
}
.subnav{
  list-style:none;
  margin:0;
  padding:0 0 0 8px;
  display:flex;
  flex-direction:column;
  gap:2px;
  overflow:hidden;
  max-height:0;
  transition:max-height .3s ease, opacity .25s ease;
  opacity:0;
}
.nav-section.is-open .subnav{
  max-height:600px;
  opacity:1;
}
.subnav a{
  font-weight:700;
  font-size:13px;
  padding:9px 12px;
}

.side-user{
  margin:8px 6px 0;
  padding:10px 12px;
  border-radius:12px;
  background:var(--itemHover);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.side-user-info{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  min-width:0;
  overflow:hidden;
}
.side-user-info span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.side-user-info i{
  color:var(--accent);
  font-size:18px;
  flex-shrink:0;
}
.side-logout{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  white-space:nowrap;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  transition:all .15s;
  flex-shrink:0;
}
.side-logout:hover{
  color:var(--accent);
  border-color:rgba(122,15,43,.25);
}

.side-foot{
  margin-top:10px;
  padding:12px 10px 6px;
  border-top:1px solid var(--line);
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.pill{
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.55);
  color:var(--muted);
  font-weight:700;
}

.main{
  flex:1;
  border:1px solid rgba(17,17,17,.06);
  border-radius:18px;
  background:rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 36px);
}
.top{
  padding:54px 20px 34px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.logo{
  width:110px;
  margin:0 auto 18px;
  display:block;
}
.header-title h1{
  margin:0;
  font-family:'Playfair Display', serif;
  font-size:54px;
  font-weight:800;
  letter-spacing:1px;
}
.header-title p{
  margin:12px 0 0;
  font-size:32px;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--muted);
}
.hero{
  padding:54px 24px;
  display:flex;
  justify-content:center;
  text-align:center;
}
.welcome{
  max-width:640px;
}
.welcome h2{
  margin:0 0 16px;
  color:var(--accent);
  font-size:32px;
  font-weight:900;
}
.welcome p{
  margin:0 0 12px;
  line-height:1.65;
}
.welcome .muted{color:var(--muted)}
.welcome-extra{
  margin-top:24px;
  text-align:left;
  background:rgba(255,255,255,.7);
  border:1px solid var(--line);
  padding:18px;
  border-radius:16px;
}
.footer-hero{
  margin-top:auto;
  border-top:1px solid var(--line);
  padding:22px 24px 26px;
  text-align:center;
}
.footer-hero .place{
  font-size:20px;
  font-weight:900;
  color:var(--accent);
  margin:0 0 6px;
}
.footer-hero .academy{
  margin:0;
  font-weight:600;
  color:#2b2b2b;
}

.inner-main{min-height:calc(100vh - 36px)}
.inner-top{
  padding:34px 28px 18px;
  border-bottom:1px solid var(--line);
}
.inner-top h1{
  margin:0;
  font-family:"MV Boli","Kaushan Script",cursive;
  font-size:40px;
  font-weight:700;
  color:var(--accent);
}
.inner-content{
  padding:28px;
}
.inner-content h2,
.inner-content h3{
  font-family:'Playfair Display', serif;
}
.inner-content h1,
.inner-content h2{
  color:var(--accent);
}
.archive-item{
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.archive-item.is-locked{
  opacity:.45;
  pointer-events:none;
  user-select:none;
  filter:grayscale(.4);
}
.archive-lock-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:11px;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-bottom:6px;
}

/* Locked single/page sadržaj */
.wwhr-locked-wrap{
  position:relative;
  border-radius:12px;
  min-height:600px;
  overflow:hidden;
}
.wwhr-locked-preview{
  filter:blur(5px);
  pointer-events:none;
  user-select:none;
  opacity:.45;
  max-height:600px;
  overflow:hidden;
}
.wwhr-locked-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:linear-gradient(to bottom, rgba(255,255,255,.1) 0%, rgba(255,255,255,.85) 40%);
}
.wwhr-locked-box{
  text-align:center;
  background:rgba(255,255,255,.95);
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px 36px;
  box-shadow:0 8px 32px rgba(0,0,0,.10);
}
.wwhr-locked-logo{
  width:320px;
  max-width:80%;
  height:auto;
  display:block;
  margin:0 auto 16px;
}
.wwhr-locked-box > i{
  font-size:30px;
  color:var(--accent);
  display:block;
  margin-bottom:12px;
}
.wwhr-locked-box p{
  margin:0 0 16px;
  font-weight:600;
  color:var(--muted);
}
.wwhr-locked-box .btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:12px 24px !important;
  background:var(--accent) !important;
  color:#fff !important;
  border-radius:999px !important;
  font-weight:800 !important;
  font-size:14px !important;
  text-decoration:none !important;
  border:none !important;
  gap:8px !important;
}
.post-image{margin-bottom:18px}

/* Post list shortcode */
.wwhr-post-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.wwhr-post-card{
  display:flex;
  flex-direction:row;
  background:rgba(255,255,255,.7);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  transition:box-shadow .18s ease;
  min-height:140px;
}
.wwhr-post-card:hover:not(.is-locked){
  box-shadow:0 4px 24px rgba(0,0,0,.08);
}
.wwhr-post-card.is-locked{
  opacity:.45;
  pointer-events:none;
  user-select:none;
  filter:grayscale(.4);
}

/* Slika — pozicija apsolutna da uvijek popuni kontejner */
.wwhr-post-thumb{
  position:relative;
  flex:0 0 160px;
}
.wwhr-post-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.wwhr-thumb-lock{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(3px);
  font-size:24px;
  color:#fff;
}

/* Sadržaj desno */
.wwhr-post-body{
  flex:1;
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}
.wwhr-post-title{
  margin:0;
  font-family:'Playfair Display',serif;
  font-size:18px;
  font-weight:700;
  line-height:1.3;
}
.wwhr-post-title a{
  color:var(--text);
}
.wwhr-post-title a:hover{
  color:var(--accent);
}
.wwhr-post-excerpt{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  flex:1;
}
.wwhr-post-excerpt p{margin:0}
.wwhr-readmore{
  display:inline-flex;
  align-items:center;
  gap:7px;
  align-self:flex-start;
  padding:8px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:13px;
  font-weight:700;
  transition:background .15s;
}
.wwhr-readmore:hover{
  background:#65081f;
  color:#fff;
}
.wwhr-no-posts{
  color:var(--muted);
  font-style:italic;
}

/* Mobitel — vertikalni layout */
@media(max-width:640px){
  .wwhr-post-card{
    flex-direction:column;
    min-height:auto;
  }
  .wwhr-post-thumb{
    flex:0 0 auto;
    height:180px;
  }
  .wwhr-post-body{
    padding:16px;
  }
}
.member-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.member-panel,
.restricted-box{
  background:rgba(255,255,255,.7);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}
.member-extra-content{margin-top:24px}
.notice{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:16px;
}
.notice--info{background:#eef4ff;color:#163d7a}
.notice--success{background:#ecf9ef;color:#17652d}

.btn,
input[type="submit"],
button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  padding:12px 20px;
  font-weight:800;
  cursor:pointer;
}
.btn:hover,
input[type="submit"]:hover,
button:hover{
  background:#65081f;
  color:#fff;
}

.wwhr-form{
  max-width:480px;
  margin:0 auto;
}
.wwhr-form-field{
  margin-bottom:14px;
}
.wwhr-form-field label{
  display:block;
  font-weight:700;
  font-size:13px;
  margin-bottom:5px;
}
.wwhr-form-field input{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  font:inherit;
  font-size:14px;
  background:#fff;
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.wwhr-form-field input:focus{
  border-color:rgba(122,15,43,.35);
  box-shadow:0 0 0 4px rgba(122,15,43,.08);
}
.wwhr-form-check{
  margin-bottom:16px;
  font-size:13px;
  font-weight:600;
}

.login-form-wrap .login-username,
.login-form-wrap .login-password,
.login-form-wrap .login-remember{
  margin-bottom:12px;
}
.login-form-wrap label{
  display:block;
  font-weight:700;
  margin-bottom:6px;
}
.login-form-wrap input[type="text"],
.login-form-wrap input[type="password"],
.login-form-wrap input[type="email"],
.login-form-wrap textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  font:inherit;
  background:#fff;
}

body.login{
  background:linear-gradient(to top, var(--bgBottom) 0%, var(--bgTop) 100%);
}
body.login #login{width:min(92vw,420px)}
body.login h1 a{
  background-image:none !important;
  text-indent:0;
  width:auto;
  height:auto;
  font-size:34px;
  line-height:1.1;
  font-family:'Playfair Display', serif;
  color:#111;
}
body.login form{
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:var(--sidebarShadow);
  background:rgba(255,255,255,.75);
}
body.login .button-primary{
  background:var(--accent);
  border-color:var(--accent);
  text-shadow:none;
  box-shadow:none;
}

@media (max-width:980px){
  .app{padding:12px;gap:12px}
  .sidebar{width:280px}
}
@media (max-width:760px){
  .app{flex-direction:column}
  .sidebar{
    width:auto;
    position:relative;
    top:auto;
    height:auto;
    border-radius:16px;
  }
  .main{min-height:auto}
  .header-title h1{font-size:38px}
  .logo{width:90px}
  .member-grid{grid-template-columns:1fr}
}


/* === FINAL FIXES === */
.side-mark{
  width:44px !important;
  height:44px !important;
  border-radius:14px !important;
  background:none !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  flex:0 0 44px !important;
}
.side-mark img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
}

.header-title h1{
  font-family:"MV Boli","Kaushan Script",cursive !important;
  font-weight:700 !important;
  font-size:130px !important;
  letter-spacing:.5px !important;
}
.header-title p{
  font-family:"Comic Sans MS","Comic Sans",cursive !important;
}

.mobile-topbar{
  display:none;
  position:sticky;
  top:0;
  z-index:1000;
  padding:12px 14px;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(17,17,17,.08);
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.mobile-brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  font-weight:800;
  font-size:14px;
}
.mobile-brand img{
  width:30px;
  height:30px;
  object-fit:contain;
  flex:0 0 30px;
}
.mobile-brand span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mobile-menu-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:none;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  padding:10px 14px;
  font-weight:800;
  cursor:pointer;
  flex:0 0 auto;
}

/* default desktop */
@media (min-width: 861px){
  .mobile-topbar{display:none !important;}
  .sidebar{
    position:sticky !important;
    transform:none !important;
    left:auto !important;
    top:18px !important;
    width:300px !important;
    height:calc(100vh - 36px) !important;
  }
}

/* overlay za mobilni meni */
.sidebar-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  z-index:1099;
  cursor:pointer;
}
.sidebar-overlay.is-active{display:block;}

/* tablet + mobile */
@media (max-width: 860px){
  .mobile-topbar{display:flex !important;}
  .app{
    display:block !important;
    padding:12px !important;
  }
  .sidebar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    bottom:0 !important;
    width:min(300px, calc(100vw - 48px)) !important;
    height:100dvh !important;
    max-height:100dvh !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    z-index:1100 !important;
    transform:translateX(-100%) !important;
    transition:transform .28s cubic-bezier(.4,0,.2,1) !important;
    border-radius:0 16px 16px 0 !important;
  }
  .sidebar.is-open{
    transform:translateX(0) !important;
    box-shadow:none !important;
  }
  .main{
    min-height:calc(100vh - 90px) !important;
    border-radius:16px !important;
    position:relative !important;
    z-index:1 !important;
  }
  .top{
    padding:34px 18px 24px !important;
  }
  .hero{
    padding:36px 18px !important;
  }
  .footer-hero{
    padding:18px 18px 22px !important;
  }
  .logo{
    width:92px !important;
    margin-bottom:14px !important;
  }
  .header-title h1{
    font-size:96px !important;
    line-height:1.05 !important;
  }
  .header-title p{
    font-size:22px !important;
    letter-spacing:1px !important;
  }
  .inner-top{
    padding:24px 20px 14px !important;
  }
  .inner-top h1{
    font-family:"MV Boli","Kaushan Script",cursive !important;
    font-size:32px !important;
  }
  .inner-content{
    padding:20px !important;
  }
}

@media (max-width: 640px){
  .member-grid{
    grid-template-columns:1fr !important;
  }
  .side-foot{
    flex-direction:column !important;
    align-items:flex-start !important;
  }
  .welcome h2{
    font-size:28px !important;
  }
  .welcome p{
    font-size:15px !important;
  }
  .header-title h1{
    font-size:72px !important;
  }
}
