Widget:Larifk

De Wiki Gla
Revisão de 21h12min de 16 de março de 2026 por Larifk (discussão | contribs)
Ir para navegação Ir para pesquisar

<style> /* === LARIFK — CSS-ONLY TABS === */

root {
   --lk-bg: #ffffff;
   --lk-surface: #f3f4f6;
   --lk-accent: #2563eb;
   --lk-text-1: #111827;
   --lk-text-2: #6b7280;
   --lk-text-3: #9ca3af;
   --lk-border: rgba(0,0,0,0.06);
   --lk-card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
   --lk-tab-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
   --lk-qty-bg: #1f2937;
   --lk-qty-text: #fff;
   --lk-media-bg: #000;
   --lk-slide-btn-bg: rgba(255,255,255,0.85);
   --lk-slide-btn-color: #111;
   --lk-counter-bg: rgba(0,0,0,0.5);

} @media (prefers-color-scheme: dark) {

   :root {
       --lk-bg: #1a1a2e;
       --lk-surface: #16213e;
       --lk-accent: #4f8cff;
       --lk-text-1: #e2e8f0;
       --lk-text-2: #94a3b8;
       --lk-text-3: #64748b;
       --lk-border: rgba(255,255,255,0.08);
       --lk-card-shadow: 0 1px 4px rgba(0,0,0,0.3);
       --lk-tab-shadow: 0 1px 4px rgba(0,0,0,0.4);
       --lk-qty-bg: #0f172a;
       --lk-qty-text: #e2e8f0;
       --lk-media-bg: #0f0f1a;
       --lk-slide-btn-bg: rgba(30,30,50,0.85);
       --lk-slide-btn-color: #e2e8f0;
       --lk-counter-bg: rgba(0,0,0,0.6);
   }

}

/* Ocultar radios */ .lk-radio { display: none !important; }

/* Container */ .lk-wrap {

   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   background: var(--lk-bg);
   border: 1px solid var(--lk-border);
   border-radius: 16px;
   padding: 24px;
   margin: 1rem 0;
   box-shadow: var(--lk-card-shadow);
   color: var(--lk-text-1);

} .lk-titulo {

   font-size: 1.4rem;
   font-weight: 700;
   color: var(--lk-text-1);
   margin: 0 0 1rem;

}

/* Tabs principais */ .lk-tabs {

   display: flex;
   gap: 6px;
   background: var(--lk-surface);
   padding: 5px;
   border-radius: 12px;
   margin-bottom: 24px;
   overflow-x: auto;
   flex-wrap: wrap;
   scrollbar-width: none;

} .lk-tabs::-webkit-scrollbar { display: none; }

.lk-tab {

   display: flex;
   align-items: center;
   gap: 7px;
   padding: 8px 16px;
   font-size: 13px;
   font-weight: 600;
   color: var(--lk-text-2);
   cursor: pointer;
   border-radius: 8px;
   transition: all 0.2s ease;
   white-space: nowrap;
   user-select: none;

} .lk-tab:hover {

   background: rgba(128,128,128,0.08);
   color: var(--lk-text-1);

} .lk-tab img {

   width: 20px;
   height: 20px;
   object-fit: contain;
   border-radius: 4px;

}

/* Painéis — ocultos por padrão */ .lk-panel {

   display: none;
   flex-direction: column;
   gap: 14px;
   padding: .25rem 0;
   animation: lk-fadeIn 0.25s ease;

} @keyframes lk-fadeIn {

   from { opacity: 0; transform: translateY(3px); }
   to   { opacity: 1; transform: translateY(0); }

}

/* === CSS-ONLY TAB SWITCHING (até 6 baús) === */ /* Quando radio N está checked, mostra painel N e destaca tab N */ .lk-radio:nth-of-type(1):checked ~ .lk-tabs .lk-tab:nth-child(1), .lk-radio:nth-of-type(2):checked ~ .lk-tabs .lk-tab:nth-child(2), .lk-radio:nth-of-type(3):checked ~ .lk-tabs .lk-tab:nth-child(3), .lk-radio:nth-of-type(4):checked ~ .lk-tabs .lk-tab:nth-child(4), .lk-radio:nth-of-type(5):checked ~ .lk-tabs .lk-tab:nth-child(5), .lk-radio:nth-of-type(6):checked ~ .lk-tabs .lk-tab:nth-child(6) {

   background: var(--lk-bg);
   color: var(--lk-accent);
   box-shadow: var(--lk-tab-shadow);

}

.lk-radio:nth-of-type(1):checked ~ .lk-panel:nth-of-type(1), .lk-radio:nth-of-type(2):checked ~ .lk-panel:nth-of-type(2), .lk-radio:nth-of-type(3):checked ~ .lk-panel:nth-of-type(3), .lk-radio:nth-of-type(4):checked ~ .lk-panel:nth-of-type(4), .lk-radio:nth-of-type(5):checked ~ .lk-panel:nth-of-type(5), .lk-radio:nth-of-type(6):checked ~ .lk-panel:nth-of-type(6) {

   display: flex;

}

/* Labels */ .lk-slabel {

   font-size: 10px;
   font-weight: 700;
   color: var(--lk-text-3);
   text-transform: uppercase;
   letter-spacing: 0.07em;
   margin-bottom: 5px;

}

/* Recompensas */ .lk-rewards { display: flex; flex-wrap: wrap; gap: 8px; } .lk-reward { display: flex; flex-direction: column; align-items: center; gap: 3px; } .lk-rsprite {

   width: 38px; height: 38px;
   background: var(--lk-surface);
   border: 1px solid var(--lk-border);
   border-radius: 8px;
   display: flex; align-items: center; justify-content: center;
   overflow: hidden;
   transition: transform 0.2s ease, border-color 0.2s ease;

} .lk-reward:hover .lk-rsprite { transform: translateY(-2px); border-color: var(--lk-accent); } .lk-rsprite img { max-width: 100%; max-height: 100%; object-fit: contain; } .lk-rqty { display: flex; align-items: baseline; gap: 1px; background: var(--lk-qty-bg); border-radius: 999px; padding: 1px 6px; } .lk-rqty-num { font-size: 12px; font-weight: 700; color: var(--lk-qty-text); } .lk-rqty-x { font-size: 10px; font-weight: 600; color: var(--lk-text-3); }

/* Divisor */ .lk-divider { height: 1px; background: var(--lk-border); }

/* === SUB-TABS "Como chegar" — CENTRALIZADO === */ .lk-media-section {

   display: flex;
   flex-direction: column;
   align-items: center;
   width: 100%;

} .lk-media-section > .lk-slabel {

   align-self: flex-start;

}

.lk-ctabs {

   display: inline-flex;
   background: var(--lk-surface);
   padding: 4px;
   border-radius: 8px;
   margin-bottom: 14px;

} .lk-ctab {

   padding: 5px 16px;
   font-size: 12px;
   font-weight: 600;
   color: var(--lk-text-2);
   cursor: pointer;
   border-radius: 6px;
   transition: all 0.2s ease;
   user-select: none;

} .lk-ctab:hover { color: var(--lk-text-1); }

/* Sub-painéis ocultos */ .lk-cpanel { display: none; flex-direction: column; align-items: center; }

/* CSS-only sub-tab switching */ .lk-radio[id$="-v"]:checked ~ .lk-ctabs .lk-ctab:nth-child(1), .lk-radio[id$="-r"]:checked ~ .lk-ctabs .lk-ctab:nth-child(2) {

   background: var(--lk-bg);
   color: var(--lk-text-1);
   box-shadow: 0 1px 2px rgba(0,0,0,0.06);

}

.lk-radio[id$="-v"]:checked ~ .lk-cpanel:nth-of-type(1) {

   display: flex;

} .lk-radio[id$="-r"]:checked ~ .lk-cpanel:nth-of-type(2) {

   display: flex;

} /* Caso só tenha imagem (sem vídeo) */ .lk-radio[id$="-r"]:checked ~ .lk-cpanel:nth-of-type(1) {

   display: flex;

}

/* Mídia */ .lk-media-wrap {

   border-radius: 12px;
   overflow: hidden;
   background: var(--lk-media-bg);
   border: 1px solid var(--lk-border);
   width: 100%;
   max-width: 560px;
   aspect-ratio: 16 / 9;
   position: relative;

} .lk-media-wrap iframe {

   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   border: none;

} .lk-media-wrap img {

   position: absolute; inset: 0;
   width: 100%; height: 100%;
   object-fit: cover; border: none; display: block;

}

/* Slider */ .lk-slider {

   position: relative;
   width: 100%;
   max-width: 560px;
   border-radius: 12px;
   overflow: hidden;
   background: var(--lk-media-bg);
   border: 1px solid var(--lk-border);

} .lk-slider-track { display: flex; } .lk-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; } .lk-slide img { width: 100%; height: auto; display: block; } .lk-slide a { display: block; line-height: 0; }

.lk-slide-counter {

   position: absolute; bottom: 8px; right: 10px;
   font-size: 11px; font-weight: 600; color: #fff;
   background: var(--lk-counter-bg); border-radius: 999px; padding: 1px 8px;

}

/* Responsivo */ @media (min-width: 768px) {

   .lk-media-wrap { width: 60%; }
   .lk-slider { width: 60%; }

} @media (max-width: 520px) {

   .lk-wrap { padding: 16px; border-radius: 12px; }
   .lk-tabs { gap: 4px; }
   .lk-tab { padding: 7px 12px; font-size: 12px; }

} </style>