/*
Theme Name: PornGabar Premium
Theme URI: https://porngabar.com/
Author: PornGabar
Description: Minimal premium video theme with Liquid Glass play buttons, views, duration, day/night mode, video metadata and header/footer code settings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: porngabar
*/

:root{
  --pg-bg:#fff;
  --pg-card:#fff;
  --pg-text:#111;
  --pg-muted:#666;
  --pg-border:rgba(0,0,0,.08);
  --pg-yellow:#ffd400;
  --pg-yellow-2:#ffbf00;
  --pg-glass:rgba(255,255,255,.58);
  --pg-shadow:0 10px 35px rgba(0,0,0,.08);
}
html[data-theme="dark"]{
  --pg-bg:#000;
  --pg-card:#0b0b0b;
  --pg-text:#fff;
  --pg-muted:#aaa;
  --pg-border:rgba(255,255,255,.10);
  --pg-glass:rgba(20,20,20,.58);
  --pg-shadow:0 10px 35px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--pg-bg);color:var(--pg-text);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition:background .25s,color .25s;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.pg-wrap{width:min(1240px,calc(100% - 30px));margin:auto}
.pg-header{
  position:sticky;top:0;z-index:50;
  backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  background:color-mix(in srgb,var(--pg-bg) 82%,transparent);
  border-bottom:1px solid var(--pg-border);
}
.pg-nav{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.pg-logo{font-size:23px;font-weight:850;letter-spacing:-.7px}
.pg-logo span{color:var(--pg-yellow-2)}
.pg-menu{display:flex;align-items:center;gap:18px;font-size:14px}
.pg-menu a{opacity:.82}.pg-menu a:hover{opacity:1}
.pg-toggle{
  border:1px solid var(--pg-border);background:var(--pg-card);color:var(--pg-text);
  width:42px;height:42px;border-radius:50%;cursor:pointer;display:grid;place-items:center;
}
.pg-main{padding:30px 0 60px}
.pg-section-title{display:flex;justify-content:space-between;align-items:end;gap:15px;margin:15px 0 20px}
.pg-section-title h1,.pg-section-title h2{margin:0;font-size:27px;letter-spacing:-.8px}
.pg-muted{color:var(--pg-muted);font-size:14px}
.pg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.pg-card{min-width:0}
.pg-thumb{
  position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:16px;
  background:#161616;box-shadow:var(--pg-shadow);
}
.pg-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s}
.pg-card:hover .pg-thumb img{transform:scale(1.035)}
.pg-duration{
  position:absolute;right:10px;bottom:10px;padding:5px 8px;border-radius:8px;
  background:rgba(0,0,0,.72);color:#fff;font-size:12px;font-weight:700;
}
.pg-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:var(--pg-glass);border:1px solid rgba(255,255,255,.55);
  box-shadow:0 8px 30px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  color:#111;transition:.2s;
}
.pg-play:after{content:"";margin-left:3px;border-left:17px solid var(--pg-yellow-2);border-top:11px solid transparent;border-bottom:11px solid transparent}
.pg-card:hover .pg-play{transform:translate(-50%,-50%) scale(1.08)}
.pg-meta{display:flex;gap:10px;align-items:center;margin-top:10px;color:var(--pg-muted);font-size:12px}
.pg-title{font-size:15px;font-weight:750;line-height:1.35;margin-top:7px}
.pg-pager{display:flex;gap:8px;justify-content:center;margin:35px 0}
.pg-pager a,.pg-pager span{
  min-width:40px;height:40px;padding:0 12px;border-radius:10px;display:grid;place-items:center;
  border:1px solid var(--pg-border)
}
.pg-pager .current{background:var(--pg-yellow);color:#111;border-color:var(--pg-yellow);font-weight:800}
.pg-footer{border-top:1px solid var(--pg-border);padding:28px 0;color:var(--pg-muted);font-size:13px}
.pg-single{max-width:980px;margin:auto}
.pg-single h1{font-size:31px;line-height:1.2;margin:0 0 10px}
.pg-video-shell{margin-top:20px;border-radius:18px;overflow:hidden;background:#000;box-shadow:var(--pg-shadow)}
.pg-video-shell video{display:block;width:100%;max-height:72vh;background:#000}
.pg-description{
  margin:20px 0;padding:18px;border:1px solid var(--pg-border);border-radius:16px;
  background:var(--pg-card);line-height:1.7;color:var(--pg-muted)
}
.pg-action{
  display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:12px;
  background:var(--pg-yellow);color:#111;font-weight:800;border:0;cursor:pointer
}
.pg-search{display:flex;gap:10px;margin-bottom:25px}
.pg-search input{
  flex:1;padding:13px 15px;border-radius:12px;border:1px solid var(--pg-border);
  background:var(--pg-card);color:var(--pg-text);outline:none
}
.pg-search button{border:0;border-radius:12px;background:var(--pg-yellow);padding:0 20px;font-weight:800;cursor:pointer}
.pg-empty{padding:60px 20px;text-align:center;border:1px dashed var(--pg-border);border-radius:16px;color:var(--pg-muted)}
.pg-modal{
  position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;
  padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)
}
.pg-modal.is-open{display:flex}
.pg-modal-box{
  width:min(560px,100%);padding:24px;border-radius:20px;background:var(--pg-card);
  border:1px solid var(--pg-border);box-shadow:0 20px 70px rgba(0,0,0,.35)
}
.pg-modal-box h2{margin:0 0 10px;font-size:22px}
.pg-modal-box p{color:var(--pg-muted);line-height:1.65}
.pg-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
.pg-close{background:transparent;border:1px solid var(--pg-border);color:var(--pg-text);padding:11px 16px;border-radius:11px;cursor:pointer}
@media(max-width:1000px){.pg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){
  .pg-wrap{width:min(100% - 20px,600px)}
  .pg-menu a{display:none}
  .pg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .pg-thumb{border-radius:12px}
  .pg-play{width:50px;height:50px}
  .pg-play:after{border-left-width:15px;border-top-width:10px;border-bottom-width:10px}
  .pg-title{font-size:14px}.pg-single h1{font-size:24px}
}
@media(max-width:420px){.pg-grid{grid-template-columns:1fr 1fr}.pg-meta{font-size:11px}}
