/* ============================================
   announce.css — Halaman pengumuman "Pendaftaran kini di HIPMI GO"
   ============================================
   Dimuat SESUDAH style.css dan hanya dipakai oleh index.php.
   Tujuannya menahan seluruh halaman dalam satu layar tanpa scroll, dan
   menambah gaya tombol store. Semua warna/ukuran memakai token yang sudah
   ada di style.css :root — tidak ada nilai baru yang dihardcode.
   style.css sengaja tidak disentuh karena juga dipakai panel admin dan arsip/.
   ============================================ */

/* --------------------------------------------
   Tata letak satu layar
   -------------------------------------------- */
.announce-body {
    min-height: 100vh;
    min-height: 100svh;   /* hindari lompatan akibat bilah URL browser mobile */
    display: flex;
    flex-direction: column;
    /* Gradien dipindah ke body agar hero dan footer terbaca sebagai satu bidang */
    background: var(--gradient-hero);
}

.announce-hero {
    /* grow: isi ruang sisa. shrink 0: pada layar pendek halaman ikut memanjang
       dan bisa di-scroll, bukan terpotong oleh `overflow: hidden` milik .hero */
    flex: 1 0 auto;
    min-height: 0;
    background: transparent;
    padding-top: 32px;
    padding-bottom: 32px;
}

.announce-hero .hero-content {
    padding: 32px 24px;
}

/* Jarak vertikal ditaruh di sini (bukan inline) supaya bisa dirapatkan
   lewat media query di layar kecil. */
.announce-hero .hero-org-badge {
    margin-bottom: 32px;
}

.announce-hero .hero-org-badge img {
    object-fit: contain;
}

/* Tombol store adalah elemen terakhir — jarak bawah bawaan .hero-cta tidak diperlukan */
.store-cta {
    margin-bottom: 0;
}

/* --------------------------------------------
   Tombol store
   -------------------------------------------- */
.store-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
    min-height: 56px;          /* tap target nyaman di mobile */
    padding: 12px 28px;
}

.store-btn__icon {
    flex: 0 0 auto;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-btn__text small {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    opacity: 0.75;
}

.store-btn__text strong {
    font-size: 1rem;
    font-weight: 700;
}

/* Ditampilkan bila kedua URL di config masih kosong */
.store-pending {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* --------------------------------------------
   Footer ramping
   -------------------------------------------- */
.announce-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.announce-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    text-align: center;
}

.announce-footer p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.announce-footer a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast);
}

.announce-footer a:hover,
.announce-footer a:focus-visible {
    color: var(--text-on-primary);
    text-decoration: underline;
}

.announce-footer__ig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.announce-footer__copy {
    color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------
   Responsif
   -------------------------------------------- */
@media (max-width: 768px) {
    .announce-hero {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .announce-hero .hero-content {
        padding: 24px 20px;
    }

    /* .hero-cta jadi kolom di breakpoint ini (style.css), sehingga tombol
       melebar penuh — jaga isinya tetap di tengah */
    .store-cta {
        align-items: stretch;
    }

    .announce-footer__inner {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Rapatkan ritme vertikal agar tetap muat satu layar di ponsel kecil
       (mis. 320x640) tanpa mengorbankan keterbacaan. */
    .announce-hero .hero-content {
        padding: 16px;
    }

    .announce-hero .hero-org-badge {
        margin-bottom: 20px;
        padding: 8px 18px;
    }

    .announce-hero h1 {
        margin-bottom: 16px;
    }

    .announce-hero .hero-subtitle {
        margin-bottom: 28px;
    }

    .store-btn {
        padding: 12px 20px;
    }
}
