/**
* Sambad result widget styles.
* Enqueued by the [sambad_result] shortcode (see functions.php).
*/
.sambad-result-widget {
   --ls-blue: #1a73e8;
   --ls-blue-dark: #1558b8;
   --ls-green: #4f7942;
   --ls-green-dark: #3d5f33;
   --ls-text: #1f2933;
   --ls-muted: #5f6b7a;
   --ls-border: #e3e8ef;
   --ls-bg-soft: #f5f7fb;
   max-width: 760px;
   margin: 0 auto;
   color: var(--ls-text);
}


.sambad-tabs {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 8px;
   margin: 18px 0 22px;
}
.sambad-tab {
   display: inline-flex;
   flex-direction: column;
   align-items: center;
   gap: 2px;
   padding: 10px 20px;
   border: 2px solid var(--ls-border);
   background: #fff;
   border-radius: 12px;
   cursor: pointer;
   font-weight: 700;
   color: var(--ls-text);
   transition: all 0.15s ease;
   min-width: 96px;
}
.sambad-tab small { font-size: 11px; font-weight: 600; color: var(--ls-muted); }
.sambad-tab:hover { border-color: var(--ls-blue); }
.sambad-tab.active { border-color: var(--ls-blue); background: rgba(26, 115, 232, 0.07); color: var(--ls-blue); }
.sambad-tab.active small { color: var(--ls-blue); }


.sambad-badge-1pm { background: #f59e0b; }
.sambad-badge-6pm { background: #1a73e8; }
.sambad-badge-8pm { background: #7c3aed; }


.sambad-tab-panel { display: none; }
.sambad-tab-panel.active { display: block; }


.sambad-panel-header {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
   margin-bottom: 14px;
}
.sambad-time-badge {
   display: inline-block;
   padding: 5px 12px;
   border-radius: 8px;
   color: #fff;
   font-weight: 800;
   font-size: 14px;
}
.sambad-draw-label { font-weight: 700; font-size: 16px; }
.sambad-status-pill {
   margin-left: auto;
   padding: 4px 12px;
   border-radius: 999px;
   font-size: 12px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.04em;
}
.sambad-status-today, .sambad-status-live { background: #dcfce7; color: #166534; }
.sambad-status-live { animation: sambadPulse 1.6s infinite; }
.sambad-status-yesterday { background: #f1f5f9; color: #64748b; }
@keyframes sambadPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }


.sambad-result-block {
   border: 1px solid var(--ls-border);
   border-radius: 16px;
   padding: 18px;
   background: #fff;
   box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.sambad-result-title-wrap { text-align: center; margin-bottom: 12px; }
.sambad-result-capsule {
   display: inline-block;
   padding: 6px 16px;
   border-radius: 999px;
   color: #fff;
   font-weight: 700;
   font-size: 14px;
}


.sambad-first-prize {
   position: relative;
   text-align: center;
   background: linear-gradient(135deg, #fff7ed, #fef2f2);
   border: 1px solid #fecaca;
   border-radius: 14px;
   padding: 16px 14px 10px;
}
.sambad-fp-updated-top { font-size: 12px; color: var(--ls-muted); margin-bottom: 8px; }
.sambad-fp-copy {
   position: absolute;
   top: 12px;
   right: 12px;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 6px 10px;
   font-size: 12px;
   font-weight: 600;
   color: var(--ls-text);
   background: #fff;
   border: 1px solid var(--ls-border);
   border-radius: 8px;
   cursor: pointer;
   transition: all 0.15s ease;
}
.sambad-fp-copy:hover { border-color: var(--ls-blue); color: var(--ls-blue); }
.sambad-fp-copy.copied { background: #dcfce7; border-color: #86efac; color: #166534; }
.sambad-fp-copy-tx { display: none; }
@media (min-width: 560px) { .sambad-fp-copy-tx { display: inline; } }


.sambad-fp-prize { font-size: 15px; font-weight: 700; color: #b91c1c; }
.sambad-fp-amount { color: #b91c1c; }
.sambad-fp-number {
   font-size: 40px;
   font-weight: 800;
   letter-spacing: 2px;
   color: #111827;
   margin: 4px 0 6px;
   font-variant-numeric: tabular-nums;
   word-break: break-word;
}


.sambad-fp-reveal {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.4s ease;
   text-align: left;
}
.sambad-first-prize.open .sambad-fp-reveal { max-height: 6000px; }
.sambad-fp-full { padding-top: 14px; }
.sambad-fp-row { margin-bottom: 14px; }
.sambad-fp-row-head {
   font-weight: 700;
   font-size: 14px;
   color: var(--ls-text);
   margin-bottom: 6px;
   border-left: 4px solid var(--ls-blue);
   padding-left: 8px;
}
.sambad-fp-nums {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
   gap: 6px;
}
.sambad-fp-cell {
   background: var(--ls-bg-soft);
   border: 1px solid var(--ls-border);
   border-radius: 6px;
   padding: 7px 4px;
   text-align: center;
   font-weight: 600;
   font-size: 14px;
   font-variant-numeric: tabular-nums;
   transition: background 0.15s ease;
}
.sambad-fp-cell.sambad-hit {
   background: #fde68a;
   border-color: #f59e0b;
   color: #92400e;
   box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.35);
}
.sambad-fp-nums-single {
   display: inline-block;
   background: var(--ls-bg-soft);
   border: 1px solid var(--ls-border);
   border-radius: 6px;
   padding: 7px 16px;
   font-weight: 700;
   font-variant-numeric: tabular-nums;
}


.sambad-fp-more {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   margin: 10px auto 2px;
   width: 42px;
   height: 42px;
   border-radius: 50%;
   border: 1px solid var(--ls-border);
   background: #fff;
   color: var(--ls-blue);
   cursor: pointer;
   transition: all 0.15s ease;
}
.sambad-fp-more:hover { background: var(--ls-bg-soft); }
.sambad-fp-more-ic { transition: transform 0.3s ease; }
.sambad-first-prize.open .sambad-fp-more-ic { transform: rotate(180deg); }


.sambad-btn-red, .sambad-refresh-big, .sambad-download-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   padding: 13px 22px;
   margin: 14px 6px 0;
   font-size: 16px;
   font-weight: 700;
   border-radius: 10px;
   border: 0;
   cursor: pointer;
   text-decoration: none;
   transition: transform 0.08s ease, filter 0.15s ease;
}
.sambad-btn-red:hover, .sambad-refresh-big:hover, .sambad-download-btn:hover { filter: brightness(0.94); transform: translateY(-1px); }
.sambad-btn-red { background: #dc2626; color: #fff; }
.sambad-refresh-big { background: var(--ls-green); color: #fff; }
.sambad-btns-wrap { text-align: center; }


.sambad-image-section { text-align: center; margin-top: 18px; }
.sambad-download-btn { background: #0ea5e9; color: #fff; font-size: 14px; padding: 10px 16px; }
.sambad-result-img {
   display: block;
   max-width: 420px;
   width: 100%;
   height: auto;
   margin: 12px auto 0;
   border-radius: 12px;
   border: 1px solid var(--ls-border);
   box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
   cursor: zoom-in;
}


.sambad-checker { margin-top: 20px; }
.sambad-checker-card {
   background: linear-gradient(135deg, #eef2ff, #ecfeff);
   border: 1px solid #c7d2fe;
   border-radius: 14px;
   padding: 18px;
   text-align: center;
}
.sambad-checker-head { font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.sambad-checker-sub { font-size: 13px; color: var(--ls-muted); margin-bottom: 12px; }
.sambad-checker-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sambad-checker-input {
   flex: 1 1 220px;
   max-width: 280px;
   padding: 12px 14px;
   font-size: 16px;
   border: 2px solid #c7d2fe;
   border-radius: 10px;
   outline: none;
   font-variant-numeric: tabular-nums;
   letter-spacing: 1px;
}
.sambad-checker-input:focus { border-color: var(--ls-blue); }
.sambad-checker-btn {
   padding: 12px 24px;
   font-size: 16px;
   font-weight: 700;
   color: #fff;
   background: var(--ls-blue);
   border: 0;
   border-radius: 10px;
   cursor: pointer;
}
.sambad-checker-btn:hover { background: var(--ls-blue-dark); }
.sambad-checker-result {
   margin-top: 14px;
   padding: 12px 16px;
   border-radius: 10px;
   font-weight: 700;
   font-size: 15px;
}
.sambad-checker-result.win { background: #dcfce7; color: #166534; }
.sambad-checker-result.lose { background: #fee2e2; color: #991b1b; }


.sambad-share-wrap {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 10px;
   justify-content: center;
   margin: 28px 0 6px;
}
.sambad-share-label { font-weight: 700; color: var(--ls-muted); }
.sambad-share-btn {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 10px 16px;
   border-radius: 999px;
   color: #fff;
   font-weight: 700;
   font-size: 14px;
   text-decoration: none;
   cursor: pointer;
   transition: transform 0.08s ease, filter 0.15s ease;
}
.sambad-share-btn:hover { filter: brightness(0.94); transform: translateY(-1px); }
.sambad-share-whatsapp { background: #25d366; }
.sambad-share-facebook { background: #1877f2; }
.sambad-share-telegram { background: #0088cc; }
.sambad-share-more { background: #475569; }


/* Lightbox (shared) */
#sambad-lightbox {
   display: none;
   position: fixed;
   inset: 0;
   z-index: 99999;
   background: rgba(0, 0, 0, 0.82);
   padding: 24px;
   box-sizing: border-box;
   align-items: center;
   justify-content: center;
}
#sambad-lightbox.is-open { display: flex; }
#sambad-lightbox img { max-width: 96vw; max-height: 92vh; border-radius: 8px; }
#sambad-lightbox .sambad-lb-close {
   position: absolute;
   top: 18px;
   right: 22px;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   border: 0;
   background: #fff;
   font-size: 24px;
   cursor: pointer;
}


@media (max-width: 480px) {
   .sambad-fp-number { font-size: 30px; }
   .sambad-fp-nums { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
   .sambad-fp-cell { font-size: 13px; }
}


/* Awaited / empty draw state (result not yet published). */
.sambad-awaited {
   text-align: center;
   padding: 34px 18px;
   background: var(--ls-bg-soft);
   border: 1px dashed var(--ls-border);
   border-radius: 12px;
}
.sambad-awaited-title {
   font-size: 18px;
   font-weight: 800;
   color: var(--ls-text);
   margin-bottom: 6px;
}
.sambad-awaited-sub {
   margin: 0 auto 18px;
   max-width: 420px;
   font-size: 14px;
   color: var(--ls-muted);
   line-height: 1.6;
}