/*
Theme Name: Shahganj Trending Invitations
Theme URI: https://shahganj.com/
Author: Shahganj.com
Description: Pinterest-style, category-specific digital invitation marketplace with a built-in card editor, Hindi/English switch, font selector and full-card PNG export.
Version: 9.0
License: GPL-2.0-or-later
Text Domain: shahganj-trending
*/
:root{--gold:#d6a52c;--gold2:#f2c65b;--ink:#080808;--panel:#111;--line:#2d2d2d;--muted:#aaa;--white:#fff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#050505;color:#fff;font-family:Arial,sans-serif}.sj-wrap{max-width:1400px;margin:auto;padding:0 18px}
a{color:inherit;text-decoration:none}.sj-top{position:sticky;top:0;z-index:50;background:#080808eF;backdrop-filter:blur(12px);border-bottom:1px solid #222}
.sj-nav{height:74px;display:flex;align-items:center;gap:22px}.sj-brand{display:flex;align-items:center;gap:10px;min-width:240px}.sj-logo{width:44px;height:44px;border:1px solid var(--gold);border-radius:50%;display:grid;place-items:center;color:var(--gold);font:700 23px Georgia}.sj-brand b{font:700 18px Georgia;color:var(--gold2);letter-spacing:.5px}.sj-brand small{display:block;color:#aaa;font-size:8px;letter-spacing:2px;margin-top:2px}
.sj-search{flex:1;display:flex;height:44px;background:#fff;border-radius:24px;overflow:hidden}.sj-search input{flex:1;border:0;padding:0 18px;font-size:14px;outline:0}.sj-search select{border:0;border-left:1px solid #ddd;padding:0 12px;background:#fff}.sj-search button{border:0;background:var(--gold);padding:0 24px;font-weight:700}.sj-navlinks{display:flex;gap:18px;font-size:13px}.sj-navlinks a:hover{color:var(--gold2)}
.sj-hero{margin:18px 0 28px;min-height:320px;border:1px solid #292929;border-radius:20px;overflow:hidden;position:relative;background:linear-gradient(90deg,#090909 20%,transparent),url('../images/reference-1.jpg') center/cover}.sj-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.92),rgba(0,0,0,.3) 55%,rgba(0,0,0,.15))}.sj-hero-content{position:relative;z-index:1;padding:58px 48px;max-width:720px}.sj-hero h1{font:700 clamp(34px,5vw,62px) Georgia;margin:0 0 12px;color:#fff}.sj-hero h1 span{color:var(--gold2)}.sj-hero p{color:#ddd;line-height:1.7}.sj-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.sj-pill{border:1px solid #5a4617;padding:9px 13px;border-radius:999px;font-size:12px;background:#0b0b0bB8;color:#eee}
.sj-cats{display:flex;gap:8px;overflow:auto;padding:4px 0 18px;scrollbar-width:none}.sj-cats::-webkit-scrollbar{display:none}.sj-cat{white-space:nowrap;border:1px solid #292929;padding:10px 15px;border-radius:999px;font-size:13px;background:#101010}.sj-cat:hover,.sj-cat.active{border-color:var(--gold);color:var(--gold2)}
.sj-section{margin:34px 0}.sj-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:14px}.sj-section h2{font:700 27px Georgia;margin:0}.sj-section p{color:#999;margin:5px 0 0;font-size:12px}.sj-view{font-size:12px;color:var(--gold2)}
.sj-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.sj-card{background:#0d0d0d;border:1px solid #252525;border-radius:12px;overflow:hidden;transition:.2s;min-width:0}.sj-card:hover{transform:translateY(-3px);border-color:#735617}.sj-thumb{aspect-ratio:3/4;position:relative;background:#222 center/cover no-repeat;overflow:hidden}.sj-thumb:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.35))}.sj-badge{position:absolute;z-index:2;top:8px;left:8px;background:#000B;border:1px solid #80621c;color:#f6d274;padding:4px 7px;border-radius:5px;font-size:9px}.sj-info{padding:10px}.sj-info b{font-size:12px}.sj-info small{display:block;color:#999;margin:4px 0 9px;font-size:10px}.sj-actions{display:flex;gap:6px}.sj-btn{flex:1;border:1px solid #5e4818;background:#0b0b0b;color:#f4cf69;border-radius:6px;padding:7px;font-size:10px;text-align:center}.sj-btn.primary{background:var(--gold);color:#090909;border-color:var(--gold);font-weight:700}
.sj-footer{border-top:1px solid #222;margin-top:60px;padding:35px 0;color:#888;text-align:center;font-size:12px}
.sj-category-hero{padding:38px 0 20px}.sj-category-hero h1{font:700 42px Georgia;margin:0 0 7px}.sj-category-hero p{color:#999}.sj-filters{display:flex;gap:7px;margin:18px 0;flex-wrap:wrap}.sj-filter{border:1px solid #333;padding:8px 12px;border-radius:7px;font-size:11px}.sj-filter.active{border-color:var(--gold);color:var(--gold2)}
/* editor */
.sj-editor-shell{display:grid;grid-template-columns:320px 1fr;min-height:calc(100vh - 74px);background:#080808}.sj-tools{border-right:1px solid #262626;padding:18px;overflow:auto}.sj-tools h2{font:700 22px Georgia;margin:0 0 14px;color:var(--gold2)}.sj-field{margin-bottom:14px}.sj-field label{display:block;font-size:11px;color:#aaa;margin-bottom:6px}.sj-field input,.sj-field select,.sj-field textarea{width:100%;border:1px solid #333;background:#111;color:#fff;border-radius:8px;padding:10px;outline:none}.sj-field textarea{min-height:90px;resize:vertical}.sj-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sj-toggle{display:flex;gap:6px}.sj-toggle button{flex:1;border:1px solid #333;background:#111;color:#aaa;padding:9px;border-radius:7px}.sj-toggle button.active{border-color:var(--gold);color:#111;background:var(--gold)}.sj-export{width:100%;border:0;border-radius:9px;background:var(--gold);padding:13px;font-weight:800;margin-top:5px}.sj-stage{display:grid;place-items:center;padding:25px;background:radial-gradient(circle at center,#191919,#050505)}.sj-canvas-wrap{width:min(560px,92vw);box-shadow:0 25px 70px #000}.sj-canvas-wrap canvas{width:100%;height:auto;display:block;border-radius:4px}
@media(max-width:1100px){.sj-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.sj-navlinks{display:none}.sj-brand{min-width:190px}}
@media(max-width:760px){.sj-nav{height:auto;min-height:62px;padding:9px 0;flex-wrap:wrap;gap:8px}.sj-brand{min-width:0;flex:1}.sj-brand b{font-size:15px}.sj-search{order:3;flex-basis:100%}.sj-hero{min-height:390px}.sj-hero-content{padding:42px 24px}.sj-hero h1{font-size:36px}.sj-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sj-section h2{font-size:22px}.sj-editor-shell{grid-template-columns:1fr}.sj-tools{order:2;border-right:0;border-top:1px solid #262626}.sj-stage{order:1;padding:14px}.sj-canvas-wrap{width:min(420px,92vw)}}
@media(min-width:761px) and (max-width:900px){.sj-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sj-empty{grid-column:1/-1;padding:60px 20px;text-align:center;border:1px solid #2b2b2b;border-radius:18px;background:#111;color:#ddd}.sj-empty h2{color:#f0c35b}
.sj-card .sj-thumb{background-size:cover;background-position:center;min-height:310px}
@media(max-width:700px){.sj-wrap{padding:12px}.sj-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sj-card .sj-thumb{min-height:230px}.sj-info{padding:8px}.sj-actions{gap:5px}.sj-btn{font-size:11px;padding:7px 6px}.sj-section-head{gap:8px}.sj-section-head h2{font-size:20px}.sj-editor-shell{display:flex;flex-direction:column}.sj-tools{width:100%;position:static;max-height:none}.sj-stage{width:100%;min-width:0}.sj-canvas-wrap{width:100%;overflow:auto}.sj-canvas-wrap canvas{max-width:100%;height:auto}}
