/* =====================================================================
   assets/css/components.css
   Komponen: navbar, hero, button, coupon card, pagination, live section,
   program section, prizes, contact, footer.
   ===================================================================== */

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--live {
    background: var(--color-red);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(217, 30, 42, 0.28);
}

.btn--live:hover {
    background: var(--color-red-dark);
}

.btn__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-white);
    display: inline-block;
    animation: pulse-dot 1.6s ease-in-out infinite;
}

.btn--primary {
    background: var(--color-green);
    color: var(--color-white);
    box-shadow: 0 6px 16px rgba(20, 107, 58, 0.24);
}

.btn--primary:hover {
    background: var(--color-green-dark);
}

.btn--outline {
    background: transparent;
    color: var(--color-green);
    border: 1.5px solid var(--color-green);
    padding: 9px 20px;
}

.btn--outline:hover {
    background: var(--color-green-light);
}

.btn--sm {
    font-size: 0.82rem;
    padding: 9px 18px;
}

.btn--lg {
    padding: 16px 30px;
    font-size: 1.02rem;
}

.btn--search {
    border-radius: var(--radius-sm);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar__brand {
    flex-shrink: 0;
}

.navbar__logo {
    height: 34px;
    width: auto;
}

.navbar__menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar__list {
    display: flex;
    gap: 30px;
}

.navbar__link {
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--color-charcoal);
    padding: 8px 0;
    position: relative;
}

.navbar__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color-green);
    transition: width 0.2s ease;
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    padding: 0;
}

.navbar__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    width: 100%;
    line-height: 0;
    background: var(--color-charcoal);
    overflow: hidden;
}

.hero__image {
    display: block;
    width: 100%;
    height: auto; /* Mengikuti tinggi asli gambar secara proporsional */
    object-fit: contain; /* Menjamin seluruh area gambar terlihat tanpa terpotong */
}

/* ---------- Live section ---------- */
.live-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.live-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 36px 24px;
    text-align: center;
}

.live-section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 650px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-red);
    color: var(--color-white);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

.live-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-white);
    animation: pulse-dot 1.4s ease-in-out infinite;
}

.live-section__text h2 {
    margin-bottom: 0.25em;
    font-size: 1.5rem;
}

.live-section__text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Container Embed Video YouTube Responsive */
.live-section__player {
    width: 100%;
    max-width: 800px;
    margin: 8px 0;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: #000;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.live-section__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.live-section__hint {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}



/* ---------- Floating Live Button ---------- */
.floating-live {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    background: var(--color-red);
    color: var(--color-white);
    border-radius: 999px;
    width: 76px;
    height: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(217, 30, 42, 0.35);
    text-align: center;
    line-height: 1.1;
}

.floating-live__text {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.floating-live .live-badge__dot {
    width: 9px;
    height: 9px;
}

/* ---------- Coupon Section ---------- */
.coupon-section {
    background: var(--color-offwhite);
    padding: 64px 0;
}

.ticket-icon {
    display: inline-block;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.coupon-form {
    display: flex;
    gap: 12px;
    max-width: 620px;
    margin: 0 auto 36px;
    flex-wrap: wrap;
}

.coupon-form__field {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
}

.coupon-form__field:focus-within {
    border-color: var(--color-green);
}

.coupon-form__icon {
    margin-right: 10px;
    opacity: 0.6;
}

.coupon-form__field input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 0.98rem;
    font-family: inherit;
    background: transparent;
    color: var(--color-text);
}

.coupon-result {
    max-width: 900px;
    margin: 0 auto;
    transition: opacity 0.15s ease;
}

.coupon-result.is-loading {
    opacity: 0.5;
}

.coupon-result__empty {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.coupon-result__empty--warning {
    color: var(--color-red-dark);
    font-weight: 600;
}

.coupon-result__summary {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.coupon-result__greeting {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.coupon-result__check {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-green-light);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.coupon-result__hello {
    margin: 0;
    font-weight: 700;
    color: var(--color-charcoal);
}

.coupon-result__found-text {
    margin: 0;
    color: var(--color-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.coupon-result__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    border-top: 1px dashed var(--color-border);
    padding-top: 18px;
}

.coupon-result__stat-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.coupon-result__stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-charcoal);
}

.coupon-result__stat-value--accent {
    color: var(--color-red);
}

.coupon-result__range {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.coupon-card {
    background: var(--color-white);
    border: 1.5px solid var(--color-gold-light);
    border-left: 5px solid var(--color-gold);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.coupon-card__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    text-transform: uppercase;
}

.coupon-card__code {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--color-charcoal);
}

.coupon-card__account {
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination__nav {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-charcoal);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-white);
}

.pagination__nav:hover {
    border-color: var(--color-green);
}

.pagination__nav.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.pagination__pages {
    display: flex;
    gap: 6px;
}

.pagination__page {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    font-weight: 600;
    font-size: 0.88rem;
}

.pagination__page.is-active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

.pagination__page:hover:not(.is-active) {
    border-color: var(--color-green);
}

/* ---------- Program Section ---------- */
.program-section {
    background: var(--color-gold-light);
    padding: 56px 0;
}

.program-section__inner {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.program-section__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.program-section__content h2 {
    margin-bottom: 0.3em;
}

.program-section__content .btn {
    margin-bottom: 24px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.highlight-card {
    background: var(--color-green-light);
    border-radius: var(--radius-md);
    padding: 20px;
}

.highlight-card__icon {
    font-size: 1.4rem;
    display: inline-block;
    margin-bottom: 8px;
}

.highlight-card h3 {
    margin-bottom: 6px;
    color: var(--color-green-dark);
}

.highlight-card p {
    margin: 0;
    font-size: 0.88rem;
}

/* ---------- Prizes Section ---------- */
.prizes-section {
    padding: 64px 0;
    background: var(--color-white);
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.prize-card {
    text-align: center;
}

.prize-card__image-wrap {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-offwhite);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.prize-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-card__placeholder {
    font-size: 2.2rem;
    color: var(--color-gold);
    opacity: 0.6;
}

.prize-card__name {
    margin: 0;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-charcoal);
}

/* ---------- Contact Section ---------- */
.contact-section {
    background: var(--color-offwhite);
    padding: 56px 0 72px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-card__icon {
    font-size: 1.4rem;
}

.contact-card__name {
    font-weight: 700;
    color: var(--color-charcoal);
}

.contact-card__number {
    font-size: 0.88rem;
    color: var(--color-green);
    font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-charcoal);
    color: #C7C9CE;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 56px 24px 40px;
}

.footer__logo {
    height: 30px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(0) invert(1);
}

.footer__col h3 {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer__col p {
    color: #A9ACB3;
    font-size: 0.88rem;
    margin-bottom: 8px;
}

.footer__desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer__col ul li {
    margin-bottom: 10px;
}

.footer__col ul a {
    color: #C7C9CE;
    font-size: 0.88rem;
}

.footer__col ul a:hover {
    color: var(--color-white);
}

.footer__legal {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #A9ACB3;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer__social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-charcoal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-white);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 24px;
    font-size: 0.82rem;
    color: #8B8E96;
}

.footer__bottom-links {
    display: flex;
    gap: 10px;
}

.footer__bottom-links a {
    color: #8B8E96;
}

.footer__bottom-links a:hover {
    color: var(--color-white);
}

/* ---------- Standalone "Tentang" page ---------- */
.page-hero {
    background: var(--color-green);
    color: var(--color-white);
    padding: 56px 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: 0.3em;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    margin: 0 auto;
}

.page-content {
    padding: 56px 0 80px;
}

.page-content__inner {
    max-width: 720px;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: 1.25rem;
}

.prose .btn {
    margin-top: 12px;
}
