/* ============================================================
   WSTR-CONSENT.CSS · Where Stories Take Root
   ------------------------------------------------------------
   GDPR consent system in the wstr.ro brand language:
   starry-night banner, cream modal, Cormorant headings,
   honey accents, generous radii, soft breathing motion.

   Layers (low → high):
     cookie FAB     z 8500
     cookie banner  z 9500
     cookie modal   z 10000
   ============================================================ */

.wstrc-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ============ BANNER · starry night slide-up ============ */
.wstrc-banner{position:fixed;bottom:0;left:0;right:0;z-index:9500;background:linear-gradient(135deg,#1a2a4a 0%,#2d4a6d 50%,#1a2a4a 100%);border-top:3px solid #F8DFB3;box-shadow:0 -10px 50px rgba(26,42,74,.4);transform:translateY(110%);opacity:0;transition:transform .5s cubic-bezier(.4,0,.2,1),opacity .5s ease;overflow:hidden;padding:22px 24px;padding-bottom:max(22px,env(safe-area-inset-bottom,0px))}
.wstrc-banner.show{transform:translateY(0);opacity:1}
.wstrc-banner-stars{position:absolute;inset:0;pointer-events:none}
.wstrc-banner-star{position:absolute;width:2px;height:2px;background:#fff;border-radius:50%;opacity:.5;animation:wstrcTwinkle 2.6s ease-in-out infinite}
.wstrc-banner-star:nth-child(2){animation-delay:.6s}.wstrc-banner-star:nth-child(3){animation-delay:1.2s}.wstrc-banner-star:nth-child(4){animation-delay:1.8s}.wstrc-banner-star:nth-child(5){animation-delay:.3s}.wstrc-banner-star:nth-child(6){animation-delay:.9s}
@keyframes wstrcTwinkle{0%,100%{opacity:.25;transform:scale(1)}50%{opacity:.9;transform:scale(1.4)}}
.wstrc-banner-inner{position:relative;z-index:2;max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr auto;gap:34px;align-items:center}
.wstrc-banner-text h3{font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:1.25rem;color:#F8DFB3;margin:0 0 6px}
.wstrc-banner-text p{font-family:'Quicksand',sans-serif;font-size:.85rem;line-height:1.65;color:rgba(253,248,240,.85);margin:0 0 4px;font-weight:300}
.wstrc-banner-text p:last-of-type{font-size:.78rem;color:rgba(248,223,179,.7);margin:0}
.wstrc-banner-text a{color:#F8DFB3;text-decoration:underline}
.wstrc-banner-text a:hover{color:#fff}
.wstrc-banner-buttons{display:flex;flex-direction:column;gap:9px;min-width:225px}

.wstrc-btn{font-family:'Quicksand',sans-serif;font-size:.82rem;font-weight:600;letter-spacing:.4px;padding:13px 24px;border-radius:30px;cursor:pointer;border:1.5px solid transparent;transition:all .35s ease;text-align:center;line-height:1.2}
.wstrc-btn-primary{background:linear-gradient(135deg,#F8DFB3,#E8C97A);color:#3D3424;border-color:transparent;box-shadow:0 6px 25px rgba(248,223,179,.25)}
.wstrc-btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 35px rgba(248,223,179,.4)}
.wstrc-btn-secondary{background:transparent;color:#F8DFB3;border-color:rgba(248,223,179,.45)}
.wstrc-btn-secondary:hover{background:rgba(248,223,179,.12);border-color:#F8DFB3}
.wstrc-btn-tertiary{background:transparent;color:rgba(253,248,240,.75);border-color:transparent;text-decoration:underline;font-weight:500;padding:10px 16px}
.wstrc-btn-tertiary:hover{color:#fff}

/* ============ FAB · floating settings button ============ */
.wstrc-fab{position:fixed;left:20px;bottom:max(20px,env(safe-area-inset-bottom,0px));z-index:8500;width:52px;height:52px;border-radius:50%;border:2px solid rgba(248,223,179,.5);background:linear-gradient(135deg,#1a2a4a,#2d4a6d);color:#F8DFB3;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 30px rgba(26,42,74,.4);transition:transform .4s cubic-bezier(.4,0,.2,1),box-shadow .35s ease,opacity .3s ease;animation:wstrcFloat 5s ease-in-out infinite}
.wstrc-fab:hover{transform:scale(1.1);box-shadow:0 12px 40px rgba(26,42,74,.55),0 0 25px rgba(248,223,179,.25)}
.wstrc-fab:focus-visible{outline:3px solid #D4A853;outline-offset:3px}
.wstrc-fab.hidden{opacity:0;pointer-events:none;transform:translateY(12px)}
.wstrc-fab svg{display:block}
@keyframes wstrcFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.wstrc-fab{animation:none}.wstrc-banner-star{animation:none}}

/* ============ MODAL · cream storybook dialog ============ */
.wstrc-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:22px;transition:opacity .25s ease}
.wstrc-modal.hidden{opacity:0;pointer-events:none}
.wstrc-modal.hidden .wstrc-dialog{transform:translateY(16px)}
html.wstrc-modal-open,html.wstrc-modal-open body{overflow:hidden}
.wstrc-backdrop{position:absolute;inset:0;background:rgba(26,42,74,.6);backdrop-filter:blur(3px);cursor:pointer}
.wstrc-dialog{position:relative;width:100%;max-width:740px;max-height:calc(100vh - 44px);max-height:calc(100svh - 44px);display:flex;flex-direction:column;background:linear-gradient(180deg,#FDF8F0 0%,#F5EDE0 100%);border:1px solid rgba(212,168,83,.25);border-radius:25px;box-shadow:0 25px 80px rgba(26,42,74,.35),0 0 60px rgba(212,168,83,.1);overflow:hidden;transform:translateY(0);transition:transform .35s cubic-bezier(.4,0,.2,1)}

.wstrc-header{position:relative;display:flex;justify-content:space-between;align-items:center;padding:26px 32px 34px;background:linear-gradient(135deg,#1a2a4a 0%,#2d4a6d 55%,#1a2a4a 100%);flex-shrink:0;overflow:hidden}
.wstrc-header-stars{position:absolute;inset:0;pointer-events:none}
.wstrc-hstar{position:absolute;width:2px;height:2px;background:#fff;border-radius:50%;opacity:.5;animation:wstrcTwinkle 2.8s ease-in-out infinite}
.wstrc-hstar:nth-child(2){animation-delay:.5s}.wstrc-hstar:nth-child(3){animation-delay:1s}.wstrc-hstar:nth-child(4){animation-delay:1.5s}.wstrc-hstar:nth-child(5){animation-delay:.8s}.wstrc-hstar:nth-child(6){animation-delay:2s}
.wstrc-header-wave{height:30px;background:linear-gradient(135deg,#1a2a4a 0%,#2d4a6d 55%,#1a2a4a 100%);flex-shrink:0}
.wstrc-header-wave svg{display:block;width:100%;height:100%}
.wstrc-header h2{position:relative;z-index:2;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-weight:500;font-size:1.5rem;color:#F8DFB3;margin:0;text-shadow:0 2px 12px rgba(0,0,0,.3)}
.wstrc-close{position:relative;z-index:2;width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:rgba(248,223,179,.8);border:1px solid rgba(248,223,179,.3);background:transparent;cursor:pointer;transition:all .3s ease}
.wstrc-close:hover{color:#1a2a4a;border-color:#F8DFB3;background:#F8DFB3}
.wstrc-close:focus-visible{outline:3px solid #D4A853;outline-offset:2px}

.wstrc-tabs{display:flex;padding:4px 32px 0;border-bottom:1px solid rgba(212,168,83,.2);flex-shrink:0;background:#FDF8F0}
.wstrc-tab{padding:15px 0;margin-right:32px;background:transparent;border:none;font-family:'Quicksand',sans-serif;font-size:.78rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#A69076;cursor:pointer;position:relative;transition:color .3s ease}
.wstrc-tab:hover{color:#8B7355}
.wstrc-tab.active{color:#5C4A32}
.wstrc-tab.active::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:linear-gradient(90deg,#D4A853,#E8C97A);border-radius:2px}
.wstrc-tab:focus-visible{outline:3px solid #D4A853;outline-offset:4px;border-radius:4px}

.wstrc-body{padding:24px 32px;overflow-y:auto;flex:1;font-family:'Quicksand',sans-serif}
.wstrc-panel.hidden{display:none}
.wstrc-intro{font-size:.92rem;line-height:1.75;color:#5C4A32;font-weight:400;margin:0 0 24px}
.wstrc-intro strong{font-weight:600}
.wstrc-intro a,.wstrc-cat p a,.wstrc-placeholder a{color:#2d4a6d;font-weight:600;text-decoration:underline;text-decoration-color:rgba(212,168,83,.55);text-decoration-thickness:1.5px;text-underline-offset:3px;transition:color .25s ease,text-decoration-color .25s ease}
.wstrc-intro a:hover,.wstrc-cat p a:hover,.wstrc-placeholder a:hover{color:#b8923f;text-decoration-color:#D4A853}

/* categorii */
.wstrc-cat{padding:20px 0;border-top:1px solid rgba(212,168,83,.18)}
.wstrc-cat:first-of-type{border-top:none;padding-top:0}
.wstrc-cat-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px}
.wstrc-cat-head h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.1rem;font-weight:600;color:#5C4A32;margin:0}
.wstrc-cat-head h3 label{cursor:pointer}
.wstrc-cat p{font-size:.85rem;line-height:1.7;color:#8B7355;margin:0;font-weight:400}
.wstrc-pill{font-size:.62rem;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;padding:5px 13px;border-radius:14px;border:1px solid #D4A853;color:#b8923f;white-space:nowrap;flex-shrink:0;background:rgba(248,223,179,.25)}
.wstrc-pill--off{border-color:rgba(166,144,118,.4);color:#A69076;background:transparent}

/* toggle honey */
.wstrc-toggle{position:relative;display:inline-block;width:46px;height:24px;cursor:pointer;flex-shrink:0}
.wstrc-toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.wstrc-track{display:block;width:100%;height:100%;background:#EDE3D3;border:1px solid rgba(166,144,118,.4);border-radius:14px;position:relative;transition:all .3s ease}
.wstrc-track::before{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(92,74,50,.3);transition:transform .3s cubic-bezier(.4,0,.2,1),background .3s ease}
.wstrc-toggle input:checked~.wstrc-track{background:linear-gradient(135deg,#D4A853,#E8C97A);border-color:#D4A853}
.wstrc-toggle input:checked~.wstrc-track::before{transform:translateX(22px)}
.wstrc-toggle input:focus-visible~.wstrc-track{outline:3px solid rgba(212,168,83,.5);outline-offset:2px}

/* tabele detalii */
.wstrc-detail-count{font-size:.68rem;font-weight:600;color:#b8923f;padding:3px 10px;border:1px solid rgba(212,168,83,.4);border-radius:12px;margin-left:10px}
.wstrc-table-wrap{overflow-x:auto;border:1px solid rgba(212,168,83,.25);border-radius:14px;margin-top:12px}
.wstrc-table{width:100%;border-collapse:collapse;font-size:.8rem}
.wstrc-table thead th{text-align:left;font-size:.62rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#A69076;padding:11px 14px;background:rgba(248,223,179,.3);border-bottom:1px solid rgba(212,168,83,.25);white-space:nowrap}
.wstrc-table tbody td{padding:11px 14px;border-top:1px solid rgba(212,168,83,.12);color:#5C4A32;vertical-align:top;line-height:1.55}
.wstrc-table tbody tr:first-child td{border-top:none}
.wstrc-table code{font-family:'SF Mono',Menlo,Consolas,monospace;font-size:.74rem;color:#2d4a6d;background:rgba(248,223,179,.3);padding:2px 7px;border-radius:6px;word-break:break-all}
.wstrc-placeholder{font-size:.85rem;line-height:1.7;color:#8B7355;margin:12px 0 0;padding:14px 18px;background:rgba(248,223,179,.25);border-left:3px solid #D4A853;border-radius:0 12px 12px 0;font-style:italic;font-family:'Cormorant Garamond',Georgia,serif;font-size:.95rem}

/* despre */
.wstrc-about-block{padding:16px 0;border-top:1px solid rgba(212,168,83,.18)}
.wstrc-about-block:first-of-type{border-top:none;padding-top:0}
.wstrc-about-block h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.05rem;font-weight:600;color:#5C4A32;margin:0 0 10px}
.wstrc-about-block p,.wstrc-about-block li{font-size:.87rem;line-height:1.7;color:#8B7355;font-weight:400}
.wstrc-about-block p{margin:0 0 10px}
.wstrc-about-block p:last-child{margin-bottom:0}
.wstrc-about-block strong{color:#5C4A32;font-weight:600}
.wstrc-about-block a{color:#2d4a6d;text-decoration:underline}
.wstrc-about-block a:hover{color:#D4A853}
.wstrc-about-list{list-style:none;padding:0;margin:0 0 10px}
.wstrc-about-list li{padding-left:22px;position:relative;margin-bottom:7px}
.wstrc-about-list li::before{content:'✦';position:absolute;left:0;top:0;color:#D4A853;font-size:.7rem;line-height:1.9}

/* footer */
.wstrc-footer{padding:18px 32px 24px;border-top:1px solid rgba(212,168,83,.2);flex-shrink:0;background:rgba(253,248,240,.6)}
.wstrc-legalnote{font-size:.72rem;color:#A69076;margin:0 0 14px;line-height:1.55}
.wstrc-legalnote a{color:#8B7355;text-decoration:underline}
.wstrc-actions{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:10px}
.wstrc-actions .wstrc-btn{padding:12px 14px;font-size:.72rem}
.wstrc-actions .wstrc-btn-primary{background:linear-gradient(135deg,#5C4A32,#4a3a28);color:#FDF8F0;box-shadow:0 8px 25px rgba(92,74,50,.25)}
.wstrc-actions .wstrc-btn-primary:hover{box-shadow:0 12px 35px rgba(92,74,50,.35),0 0 25px rgba(212,168,83,.25)}
.wstrc-actions .wstrc-btn-secondary{color:#5C4A32;border-color:rgba(166,144,118,.5)}
.wstrc-actions .wstrc-btn-secondary:hover{background:rgba(248,223,179,.4);border-color:#D4A853;color:#5C4A32}

/* placeholder embed-uri cu consimtamant */
.consent-required{padding:34px 26px;border:1.5px dashed rgba(212,168,83,.5);border-radius:20px;background:rgba(248,223,179,.15);text-align:center;font-family:'Quicksand',sans-serif}
.consent-required p{font-size:.9rem;color:#8B7355;margin:0 0 16px;line-height:1.65}
.consent-required button{font-family:'Quicksand',sans-serif;font-size:.82rem;font-weight:600;padding:12px 28px;border-radius:30px;border:none;background:linear-gradient(135deg,#D4A853,#c9952a);color:#fff;cursor:pointer;box-shadow:0 6px 20px rgba(212,168,83,.3);transition:all .35s ease}
.consent-required button:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(212,168,83,.45)}

/* ============ EXTRAS pagini legale (tabele, callouts) ============ */
.legal-table-wrap{overflow-x:auto;border:1px solid rgba(212,168,83,.25);border-radius:14px;margin:18px 0}
.legal-table{width:100%;border-collapse:collapse;font-family:'Quicksand',sans-serif;font-size:.85rem}
.legal-table thead th{text-align:left;font-size:.64rem;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#A69076;padding:12px 15px;background:rgba(248,223,179,.3);border-bottom:1px solid rgba(212,168,83,.25);white-space:nowrap}
.legal-table tbody td{padding:12px 15px;border-top:1px solid rgba(212,168,83,.12);color:#5C4A32;vertical-align:top;line-height:1.6}
.legal-table code{font-family:'SF Mono',Menlo,Consolas,monospace;font-size:.76rem;color:#2d4a6d;background:rgba(248,223,179,.3);padding:2px 7px;border-radius:6px;word-break:break-all}
.legal-callout{margin:20px 0;padding:18px 22px;background:rgba(248,223,179,.25);border-left:3px solid #D4A853;border-radius:0 14px 14px 0}
.legal-callout strong{display:block;font-family:'Cormorant Garamond',Georgia,serif;font-style:italic;font-size:1.05rem;color:#5C4A32;margin-bottom:6px}
.legal-callout p{margin:0;font-size:.88rem;line-height:1.7;color:#8B7355}
.legal-contact-card{margin:16px 0;padding:18px 22px;border:1px solid rgba(212,168,83,.3);border-radius:16px;background:rgba(253,248,240,.7)}
.legal-contact-card h3{font-family:'Cormorant Garamond',Georgia,serif;font-size:1.1rem;color:#5C4A32;margin:0 0 8px}
.legal-contact-card p{margin:0 0 4px;font-size:.88rem;color:#8B7355;line-height:1.6}
.legal-meta-row{display:flex;flex-wrap:wrap;gap:22px;margin:14px 0 6px;font-family:'Quicksand',sans-serif;font-size:.78rem;color:#A69076}
.legal-meta-row strong{display:block;font-size:.62rem;letter-spacing:1.5px;text-transform:uppercase;color:#D4A853;margin-bottom:2px}
.legal-placeholder{background:rgba(245,213,192,.45);border-bottom:1.5px dashed #c9952a;padding:0 4px;border-radius:4px;font-weight:600}

/* ============ RESPONSIVE ============ */
@media (max-width:700px){
  .wstrc-banner{padding:18px 16px;padding-bottom:max(18px,env(safe-area-inset-bottom,0px))}
  .wstrc-banner-inner{grid-template-columns:1fr;gap:16px}
  .wstrc-banner-buttons{min-width:0}
  .wstrc-modal{padding:0}
  .wstrc-dialog{max-width:100%;max-height:100vh;max-height:100svh;border-radius:0;border:none}
  .wstrc-header{padding:20px 20px 14px}
  .wstrc-tabs{padding:0 20px;overflow-x:auto}
  .wstrc-tab{margin-right:22px;font-size:.7rem}
  .wstrc-body{padding:20px}
  .wstrc-footer{padding:16px 20px 22px}
  .wstrc-actions{grid-template-columns:1fr;gap:8px}
  .wstrc-table thead{display:none}
  .wstrc-table tbody tr{display:block;padding:12px;border-top:1px solid rgba(212,168,83,.12)}
  .wstrc-table tbody td{display:block;border:none;padding:3px 0}
  .wstrc-table tbody td:not(:first-child)::before{content:attr(data-label);display:inline-block;width:84px;font-size:.58rem;letter-spacing:1.5px;text-transform:uppercase;color:#A69076}
  .wstrc-fab{width:48px;height:48px;left:14px}
}


/* ============================================================
   PREMIUM POLISH · site-wide (fisierul e incarcat pe toate paginile)
   ============================================================ */

/* Scrollbar in tonuri de miere */
html{scrollbar-color:#D4A853 #F5EDE0;scrollbar-width:thin}
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:#F5EDE0}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#E8C97A,#D4A853);border-radius:8px;border:2px solid #F5EDE0}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#D4A853,#c9952a)}

/* Selectia de text — moment de brand */
::selection{background:rgba(248,223,179,.85);color:#3D3424}
::-moz-selection{background:rgba(248,223,179,.85);color:#3D3424}

/* Focus vizibil, consecvent, peste tot (tastatura) */
:focus-visible{outline:3px solid #D4A853;outline-offset:2px;border-radius:4px}

/* Derulare lina la ancore, respectand preferinta de miscare */
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
