/*
Theme Name: PicKaroNa
Theme URI: https://pickarona.in
Author: PicKaroNa
Description: Travel, gadgets and everyday picks for Indian explorers. Gold-on-black editorial theme with a For Him / For Her palette switch.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pickarona
*/

/* ---------- tokens ----------
   Three palettes:
     :root / .aud-neutral  = white + gold  (first visit, no choice made)
     body.aud-him          = gold + green
     body.aud-her          = gold + pink
   Every colour below is a variable, so switching the body class repaints
   the whole site. --on-gold is the text colour that sits on top of a gold
   fill (kept dark in every palette so filled buttons stay readable).       */
:root{
  --ink:        #FBFAF6;   /* page background */
  --panel:      #FFFFFF;
  --panel-2:    #F3EEE2;
  --line:       rgba(176,133,31,.30);
  --gold:       #B0851F;
  --gold-soft:  #8C6A15;
  --text:       #1E1B14;
  --muted:      #6B6355;
  --cream:      #F5F1E8;
  --on-gold:    #201808;
  --header-bg:  rgba(251,250,246,.86);
  --overlay:    251,250,246;      /* hero fade, as an r,g,b triplet */
  --hairline:   rgba(20,18,12,.10);
  --hairline-2: rgba(20,18,12,.16);

  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gap: 24px;
  --radius: 2px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Neutral — explicit class, same as :root (first visit / no edit chosen) */
body.aud-neutral{
  --ink:#FBFAF6; --panel:#FFFFFF; --panel-2:#F3EEE2;
  --gold:#B0851F; --gold-soft:#8C6A15;
  --line:rgba(176,133,31,.30);
  --text:#1E1B14; --muted:#6B6355;
  --on-gold:#201808;
  --header-bg:rgba(251,250,246,.86);
  --overlay:251,250,246;
  --hairline:rgba(20,18,12,.10); --hairline-2:rgba(20,18,12,.16);
}

/* For Him — gold on midnight navy (premium, masculine) */
body.aud-him{
  --ink:#0A0F1A; --panel:#0F1626; --panel-2:#151E33;
  --gold:#D9B24C; --gold-soft:#EBCB78;
  --line:rgba(217,178,76,.30);
  --text:#E6E9F2; --muted:#8A94AC;
  --on-gold:#0A0F1A;
  --header-bg:rgba(10,15,26,.82);
  --overlay:10,15,26;
  --hairline:rgba(255,255,255,.06); --hairline-2:rgba(255,255,255,.12);
}

/* For Her — gold on deep pink / wine */
body.aud-her{
  --ink:#160A10; --panel:#1E0F16; --panel-2:#26141C;
  --gold:#E0B15A; --gold-soft:#F2D492;
  --line:rgba(233,153,181,.34);
  --text:#F6E7EC; --muted:#BE94A2;
  --on-gold:#160A10;
  --header-bg:rgba(22,10,16,.82);
  --overlay:22,10,16;
  --hairline:rgba(255,255,255,.06); --hairline-2:rgba(255,255,255,.12);
}

/* For the Baby — soft ivory + rose-gold, made for someone special */
body.aud-baby{
  --ink:#FFF7F4; --panel:#FFFFFF; --panel-2:#FBEDEC;
  --gold:#B98A6A; --gold-soft:#8F6B50;
  --line:rgba(185,138,106,.32);
  --text:#3A2A2E; --muted:#8A7178;
  --on-gold:#FFF7F4;
  --header-bg:rgba(255,247,244,.88);
  --overlay:255,247,244;
  --hairline:rgba(58,42,46,.10); --hairline-2:rgba(58,42,46,.16);
}
body.aud-baby{
  background-image:
    radial-gradient(1200px 500px at 50% -120px, rgba(185,138,106,.10), transparent 70%);
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0; background:var(--ink); color:var(--text);
  font-family:var(--sans); font-size:16px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
  transition:background .5s var(--ease), color .5s var(--ease);
}
img{max-width:100%; height:auto; display:block}
a{color:var(--gold); text-decoration:none}
a:hover{color:var(--gold-soft)}
:focus-visible{outline:2px solid var(--gold); outline-offset:3px}
.wrap{max-width:var(--wrap); margin:0 auto; padding:0 24px}
.screen-reader-text{position:absolute;left:-9999px}

h1,h2,h3,h4{font-family:var(--serif); font-weight:400; letter-spacing:.02em; margin:0 0 .5em}
h1{font-size:clamp(32px,5vw,58px)}
h2{font-size:clamp(24px,3.2vw,38px)}
.eyebrow{
  font-size:11px; letter-spacing:.42em; text-transform:uppercase;
  color:var(--gold); font-family:var(--serif); margin-bottom:14px;
}
.rule{height:1px; background:var(--line); border:0; margin:0}

/* diamond divider — the logo motif, reused as the section marker */
.diamond{display:flex; align-items:center; gap:14px; margin:56px 0}
.diamond:before,.diamond:after{content:""; flex:1; height:1px; background:var(--line)}
.diamond span{
  width:9px;height:9px;background:var(--gold);
  transform:rotate(45deg); flex:none;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-block; padding:13px 30px; border:1px solid var(--gold);
  color:var(--gold); background:transparent; cursor:pointer;
  font-family:var(--serif); font-size:12px; letter-spacing:.28em;
  text-transform:uppercase; border-radius:var(--radius);
  transition:background .3s var(--ease), color .3s var(--ease);
}
.btn:hover{background:var(--gold); color:var(--on-gold)}
.btn-solid{background:var(--gold); color:var(--on-gold)}
.btn-solid:hover{background:var(--gold-soft); color:var(--on-gold)}

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--header-bg); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; height:74px; gap:20px}
.brand{display:flex; align-items:center; gap:12px}
.brand img{width:42px;height:42px;border-radius:50%}
.brand-name{
  font-family:var(--serif); font-size:17px; letter-spacing:.34em;
  color:var(--text); text-transform:uppercase;
}
.nav ul{display:flex; gap:30px; list-style:none; margin:0; padding:0}
.nav a{
  font-size:11px; letter-spacing:.2em; text-transform:uppercase;
  color:var(--muted); padding:6px 0; position:relative;
}
.nav a:hover,.nav .current-menu-item>a{color:var(--gold)}
.nav a:after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background:var(--gold); transition:right .35s var(--ease);
}
.nav a:hover:after{right:0}
.header-actions{display:flex; align-items:center; gap:16px}

/* audience switch */
.aud-switch{display:flex; border:1px solid var(--line); border-radius:999px; overflow:hidden}
.aud-switch button{
  background:none;border:0;cursor:pointer;padding:7px 16px;
  font-family:var(--serif); font-size:10px; letter-spacing:.2em;
  text-transform:uppercase; color:var(--muted);
  transition:all .3s var(--ease);
}
.aud-switch button[aria-pressed="true"]{background:var(--gold); color:var(--on-gold)}

.burger{display:none;background:none;border:0;color:var(--gold);font-size:22px;cursor:pointer}

/* ---------- hero ---------- */
.hero{position:relative; min-height:88vh; display:grid; place-items:center; overflow:hidden}
.hero video,.hero .hero-fallback{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; z-index:0;
}
.hero:after{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(var(--overlay),.55) 0%, rgba(var(--overlay),.78) 55%, var(--ink) 100%);
}
.hero-inner{position:relative; z-index:2; text-align:center; max-width:760px; padding:80px 24px}
.hero h1{letter-spacing:.16em; text-transform:uppercase; margin-bottom:18px}
.hero-tagline{
  font-family:var(--serif); font-size:11px; letter-spacing:.5em;
  text-transform:uppercase; color:var(--gold); margin-bottom:34px;
}
.hero-desc{color:var(--text); opacity:.86; font-size:17px; max-width:600px; margin:0 auto 34px}
.hero-cta{display:flex; gap:14px; justify-content:center; flex-wrap:wrap}

/* frame corners around hero, echoing the profile banner */
.hero-frame{position:absolute; inset:28px; z-index:2; pointer-events:none}
.hero-frame i{position:absolute;width:26px;height:26px;border:1px solid var(--line)}
.hero-frame i:nth-child(1){top:0;left:0;border-right:0;border-bottom:0}
.hero-frame i:nth-child(2){top:0;right:0;border-left:0;border-bottom:0}
.hero-frame i:nth-child(3){bottom:0;left:0;border-right:0;border-top:0}
.hero-frame i:nth-child(4){bottom:0;right:0;border-left:0;border-top:0}

/* ---------- category rail (travel / trekking / gadgets / audio / trending) ---------- */
.rail{display:flex; justify-content:center; align-items:center; gap:0; flex-wrap:wrap; padding:10px 0 0}
.rail a{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0 26px;color:var(--muted)}
.rail .dot{
  width:58px;height:58px;border:1px solid var(--line); border-radius:50%;
  display:grid;place-items:center; color:var(--gold); font-size:19px;
  transition:border-color .3s var(--ease), transform .3s var(--ease);
}
.rail a:hover .dot{border-color:var(--gold); transform:translateY(-3px)}
.rail span{font-size:9px; letter-spacing:.24em; text-transform:uppercase}

/* ---------- sections ---------- */
.section{padding:78px 0}
.section-head{text-align:center; margin-bottom:44px}
.section-head p{color:var(--muted); max-width:620px; margin:0 auto}

.about-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center}
.about-card{border:1px solid var(--line); padding:34px; background:var(--panel)}
.about-card dl{margin:0}
.about-card dt{font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);margin-top:20px}
.about-card dt:first-child{margin-top:0}
.about-card dd{margin:4px 0 0; font-family:var(--serif); font-size:19px}

/* ---------- cards ---------- */
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:var(--gap)}
.card{
  background:var(--panel); border:1px solid var(--hairline);
  border-radius:var(--radius); overflow:hidden;
  transition:border-color .35s var(--ease), transform .35s var(--ease);
}
.card:hover{border-color:var(--line); transform:translateY(-4px)}
.card-media{aspect-ratio:3/4; background:var(--panel-2); overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover; transition:transform .6s var(--ease)}
.card:hover .card-media img{transform:scale(1.05)}
.card-body{padding:18px 20px 22px}
.card-kicker{font-size:9px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}
.card h3{font-size:19px; margin:8px 0 6px}
.card h3 a{color:var(--text)}
.card h3 a:hover{color:var(--gold)}
.card p{color:var(--muted); font-size:14px; margin:0}
.price{font-family:var(--serif); color:var(--gold); font-size:16px; margin-top:10px}

/* ---------- forms / auth ---------- */
.panel{
  max-width:460px; margin:0 auto; background:var(--panel);
  border:1px solid var(--line); padding:40px; border-radius:var(--radius);
}
.panel h1{font-size:28px; text-align:center; letter-spacing:.14em; text-transform:uppercase}
.field{margin-bottom:18px}
.field label{display:block; font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); margin-bottom:7px}
.field input,.field textarea,.field select{
  width:100%; padding:12px 14px; background:var(--ink);
  border:1px solid var(--hairline-2); color:var(--text);
  border-radius:var(--radius); font-family:var(--sans); font-size:15px;
}
.field input:focus,.field textarea:focus{border-color:var(--gold); outline:none}
.tabs{display:flex; gap:0; margin-bottom:28px; border-bottom:1px solid var(--line)}
.tabs button{
  flex:1; background:none;border:0;cursor:pointer; padding:12px;
  font-family:var(--serif); font-size:11px; letter-spacing:.24em;
  text-transform:uppercase; color:var(--muted); border-bottom:2px solid transparent;
}
.tabs button[aria-selected="true"]{color:var(--gold); border-bottom-color:var(--gold)}
.notice{border-left:2px solid var(--gold); background:var(--panel-2); padding:12px 16px; margin-bottom:20px; font-size:14px}
.notice.error{border-left-color:#C0554B; color:#E5A79F}

/* ---------- community wall ---------- */
.wall{columns:3 280px; column-gap:var(--gap)}
.wall .post{
  break-inside:avoid; margin-bottom:var(--gap); background:var(--panel);
  border:1px solid var(--hairline); border-radius:var(--radius); overflow:hidden;
}
.wall .post-body{padding:16px 18px}
.wall .who{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.wall .who img{width:28px;height:28px;border-radius:50%}
.wall .who b{font-weight:400; font-family:var(--serif); font-size:14px}
.wall .who time{font-size:11px; color:var(--muted); margin-left:auto}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line); background:var(--panel); padding:64px 0 28px; margin-top:60px}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:44px}
.footer-grid h4{font-size:10px; letter-spacing:.26em; text-transform:uppercase; color:var(--gold)}
.footer-grid ul{list-style:none;margin:0;padding:0}
.footer-grid li{margin-bottom:9px}
.footer-grid a{color:var(--muted); font-size:14px}
.footer-grid a:hover{color:var(--gold)}
.socials{display:flex; gap:12px; margin-top:16px}
.socials a{
  width:38px;height:38px;border:1px solid var(--line); border-radius:50%;
  display:grid;place-items:center; color:var(--gold);
  transition:background .3s var(--ease), color .3s var(--ease);
}
.socials a:hover{background:var(--gold); color:var(--ink)}
.socials svg{width:16px;height:16px;fill:currentColor}
.legal{
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border-top:1px solid var(--hairline); margin-top:44px; padding-top:22px;
  font-size:12px; color:var(--muted);
}

/* ---------- responsive ---------- */
@media(max-width:960px){
  .about-grid{grid-template-columns:1fr; gap:32px}
  .footer-grid{grid-template-columns:1fr 1fr; gap:32px}
}
@media(max-width:820px){
  .burger{display:block}
  .nav{
    position:fixed; inset:74px 0 auto 0; background:var(--ink);
    border-bottom:1px solid var(--line); padding:20px 24px 30px;
    display:none;
  }
  .nav.open{display:block}
  .nav ul{flex-direction:column; gap:0}
  .nav li{border-bottom:1px solid var(--hairline)}
  .nav a{display:block; padding:15px 0; font-size:13px}
  .brand-name{letter-spacing:.2em; font-size:14px}
  .wall{columns:1}
  .rail a{padding:0 14px 18px}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important}
  html{scroll-behavior:auto}
}

/* ---------- favourites (heart) ---------- */
.card{position:relative}
.pkn-fav{
  --fav-size:38px;
  position:absolute; z-index:3; cursor:pointer;
  width:var(--fav-size); height:var(--fav-size);
  display:grid; place-items:center;
  background:var(--header-bg); backdrop-filter:blur(6px);
  border:1px solid var(--line); border-radius:50%;
  color:var(--gold); padding:0; line-height:0;
  transition:background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.card .pkn-fav{top:12px; right:12px}
.pkn-fav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.pkn-fav:hover{transform:scale(1.08)}
.pkn-fav.is-fav{background:var(--gold); color:var(--on-gold); border-color:var(--gold)}
.pkn-fav.is-fav svg{fill:currentColor; stroke:currentColor}
.pkn-fav[disabled]{opacity:.5; cursor:progress}
/* inline heart on single posts, sits next to the buy button */
.pkn-fav-inline{
  display:inline-flex; align-items:center; gap:9px; width:auto; height:auto;
  position:static; border-radius:999px; padding:11px 20px;
  font-family:var(--serif); font-size:12px; letter-spacing:.22em; text-transform:uppercase;
}
.pkn-fav-inline svg{width:16px;height:16px}

/* ---------- account: saved picks ---------- */
.fav-list{list-style:none; margin:14px 0 0; padding:0}
.fav-list li{
  display:flex; align-items:center; gap:14px;
  padding:12px 0; border-bottom:1px solid var(--hairline);
}
.fav-list li:last-child{border-bottom:0}
.fav-list .fav-thumb{width:54px;height:54px;flex:none;border-radius:var(--radius);overflow:hidden;background:var(--panel-2)}
.fav-list .fav-thumb img{width:100%;height:100%;object-fit:cover}
.fav-list .fav-main{flex:1;min-width:0}
.fav-list .fav-main a{color:var(--text)}
.fav-list .fav-main a:hover{color:var(--gold)}
.fav-list .fav-main small{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.fav-list .fav-actions{display:flex;gap:8px;flex:none}
.fav-list .fav-actions .btn{padding:8px 14px;font-size:10px}

/* ---------- long-press: "open in new tab" bubble ---------- */
.pkn-press-menu{
  position:fixed; z-index:9999; min-width:180px;
  background:var(--panel); border:1px solid var(--line);
  border-radius:8px; box-shadow:0 12px 34px rgba(0,0,0,.28);
  padding:6px; opacity:0; transform:scale(.96); transform-origin:top left;
  transition:opacity .12s var(--ease), transform .12s var(--ease);
  -webkit-user-select:none; user-select:none;
}
.pkn-press-menu.show{opacity:1; transform:scale(1)}
.pkn-press-menu button{
  display:flex; align-items:center; gap:10px; width:100%;
  background:none; border:0; cursor:pointer; text-align:left;
  padding:11px 12px; border-radius:5px; color:var(--text);
  font-family:var(--sans); font-size:14px;
}
.pkn-press-menu button:hover{background:var(--panel-2); color:var(--gold)}
.pkn-press-menu button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.pkn-press-target{outline:2px solid var(--gold); outline-offset:2px; border-radius:2px}

/* ---------- header: edit tabs + auth link (v1.2) ---------- */
.header-inner{flex-wrap:wrap; row-gap:12px}
.header-actions{flex-wrap:wrap; gap:12px}
.aud-switch{max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none}
.aud-switch::-webkit-scrollbar{display:none}
.aud-switch button{white-space:nowrap; padding:7px 14px}
.aud-baby-tab .baby-heart{color:#E58AA6; margin-left:4px; font-size:9px}
.aud-switch button[aria-pressed="true"] .baby-heart{color:var(--on-gold)}

.auth-link{
  display:inline-flex; align-items:center; white-space:nowrap;
  border:1px solid var(--gold); color:var(--gold);
  padding:8px 16px; border-radius:999px;
  font-family:var(--serif); font-size:10px; letter-spacing:.2em; text-transform:uppercase;
  transition:background .3s var(--ease), color .3s var(--ease);
}
.auth-link:hover{background:var(--gold); color:var(--on-gold)}

/* Let our own long-press menu own links (hide the OS callout & selection) */
a, .btn, .aud-switch button, .auth-link, .nav a, .brand{
  -webkit-touch-callout:none;
}
.aud-switch, .aud-switch button, .auth-link, .burger, .brand-name{
  -webkit-user-select:none; user-select:none;
}

@media(max-width:820px){
  .header-inner{justify-content:space-between}
  .aud-switch button{padding:7px 12px; font-size:9px}
  .auth-link{padding:7px 12px; font-size:9px}
}
