/* ============================================================
   Fujian Pools — public frontend (faithful recreation)
   Dark slate/black theme · Poppins · matching fujianlottery.com
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");

:root {
    --slate-900: #0f172a;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --green: #18ff3b;
    --red-700: #b91c1c;
}

* { box-sizing: border-box; }

html { line-height: 1.5; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background-image: linear-gradient(to left, #000, #334155, #000);
    color: #fff;
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: inherit; }
img { max-width: 100%; display: block; }
ul, ol, menu { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

.pagesComponents { position: relative; min-height: 100vh; }

.flexible { padding-left: 0.75rem; padding-right: 0.75rem; }

/* ===== Header ===== */
.site-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    background-image: linear-gradient(to left, #000, var(--slate-900), #000);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-header__col {
    display: flex;
    flex: 1 1 0%;
    width: 100%;
    align-items: center;
}

.site-brand { justify-content: flex-start; }
.site-brand img { width: auto; height: auto; max-width: 100%; cursor: pointer; }

.site-nav-wrap { justify-content: flex-end; align-items: flex-start; }

.site-nav { display: none; align-items: center; }
.site-nav li { cursor: pointer; font-size: 16px; font-weight: 700; text-transform: capitalize; color: var(--amber-300); padding: 0 0.5rem; transition: color 0.4s; }
.site-nav li:hover, .site-nav a:hover { color: var(--amber-400); }

.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 0.375rem;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.hamburger svg { width: 24px; height: 24px; color: #000; }

.mobile-nav { display: none; flex-direction: column; background: var(--slate-900); }
.mobile-nav.is-open { display: flex; }
.mobile-nav li { font-size: 16px; font-weight: 700; color: var(--amber-300); padding: 0.75rem 1rem; }

/* ===== Hero / countdown ===== */
.hero {
    background-image: url('../assets/latest-activites.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.hero__column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.hero__countdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.hero__title { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; margin: 0.75rem 0; }

.hero__label { display: flex; width: 100%; color: var(--green); }

.countdown { display: flex; width: 100%; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.countdown__list { display: flex; width: 100%; align-items: center; }

.boxtime {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    display: flex;
    height: 4rem;
    width: 4rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.125rem;
    background: #000;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    color: #d1d5db;
    box-shadow: 0 0 0 2px var(--slate-300);
}

.boxtime p { margin: 0; font-size: 0.875rem; line-height: 1.25rem; text-transform: capitalize; color: inherit; }

/* ===== Recent draw ===== */
.recent {
    background-image: linear-gradient(to left, #000, var(--slate-900), #000);
    margin-top: 1.75rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    border-radius: 50px;
}

.recent__title { text-align: center; color: var(--slate-400); font-weight: 700; font-size: 1.5rem; padding: 0.5rem 0; margin-top: -1.25rem; }

.prize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row; gap: 0.5rem; width: 100%; }

.prize-card {
    display: flex;
    flex-direction: column;
    height: 8rem;
    border-radius: 30px;
    justify-content: center;
    align-items: center;
    background: #000;
    box-shadow: 0 0 0 1px var(--amber-400);
}

.prize-card--main { grid-column: span 2 / span 2; }

.prize-card__meta { display: flex; justify-content: center; align-items: center; }
.prize-card__meta li { font-size: 16px; font-weight: 700; color: var(--slate-400); }
.prize-card__meta svg { width: 40px; height: 40px; padding: 0 0.5rem; }

.prize-card__row { display: flex; justify-content: center; align-items: center; width: 100%; font-weight: 700; color: var(--amber-400); }
.prize-card__row .prize-card__label { width: 50%; text-align: center; font-size: 42px; }
.prize-card__row .balls { width: 50%; justify-content: center; display: flex; padding-top: 0.75rem; padding-bottom: 0.75rem; }

.prize-card__label--sm { font-size: 28px; font-weight: 700; color: var(--amber-400); }
.prize-card .balls { display: flex; padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* ===== Balls ===== */
.balls { display: flex; justify-content: center; align-items: center; }

.ball {
    margin-left: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    border: 5px solid var(--green);
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    color: var(--green);
    background: transparent;
    line-height: 1;
}

/* ===== History ===== */
.history-head { display: flex; justify-content: center; align-items: center; padding-bottom: 0.75rem; }
.history-head a { display: flex; align-items: center; cursor: pointer; color: var(--slate-400); transition: color 0.15s; }
.history-head a:hover { color: var(--slate-500); }
.history-head h1 { font-size: 1.875rem; font-weight: 600; padding: 0 0.75rem; }
.history-head svg { width: 36px; height: 36px; }

.draw-table-wrap { overflow-x: auto; }
.draw-table { width: 100%; min-width: 560px; border-collapse: collapse; border-spacing: 0; }
.draw-table thead { background: var(--gray-500); }
.draw-table th, .draw-table td { border-bottom: 1px solid var(--gray-300); padding: 0.75rem 0.5rem; font-size: 0.875rem; text-align: center; }
.draw-table thead th { text-transform: capitalize; color: #000; }
.draw-table tbody { background: #000; }
.draw-table tbody td { color: var(--slate-300); }
.draw-table th:first-child, .draw-table td:first-child { width: 20%; }
.draw-table th:not(:first-child), .draw-table td:not(:first-child) { width: 16%; }
.draw-table__empty { padding: 2.5rem 1rem; text-align: center; color: var(--slate-400); }

/* ===== Footer ===== */
.site-footer { display: flex; width: 100%; justify-content: center; }
.site-footer__inner { display: flex; flex-direction: column; width: 100%; }
.site-footer__logos {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.site-footer__logos img { object-fit: contain; padding: 0 0.75rem; }
.site-footer__copy { font-size: 0.875rem; color: var(--slate-400); text-align: center; font-weight: 700; padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* ===== Shared page title (live draw / contact) ===== */
.page-title {
    grid-column: 1 / -1;
    text-align: center;
    text-transform: capitalize;
    color: var(--slate-400);
    font-weight: 700;
    font-size: 1.5rem;
    padding-bottom: 0.75rem;
}

/* ===== Live draw ===== */
.live-grid { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.live-status {
    grid-column: 1 / -1;
    text-align: center;
    text-transform: capitalize;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    background-image: linear-gradient(to right, #6366f1, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: text 5s ease infinite;
}

@keyframes text {
    0%, 100% { background-size: 200% 200%; background-position: left center; }
    50% { background-size: 200% 200%; background-position: right center; }
}

/* ===== History page ===== */
main.main--pull-up { margin-top: -1.75rem; }
.history-head__title { color: var(--slate-400); transition: color 0.15s; }
.history-head__title:hover { color: var(--slate-500); }

/* ===== Pagination (matches the live site's pager) ===== */
.pager-wrap { margin-top: -1.25rem; }

.pager {
    display: inline-flex;
    flex-wrap: wrap;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #000;
    background: var(--slate-300);
    border-left: 1px solid var(--slate-500);
    cursor: pointer;
    transition: background-color 0.15s;
}

a.pager__item:hover { background: var(--slate-400); }
.pager__item.is-active { background: var(--slate-500); cursor: default; }
.pager__item.is-dots, .pager__item.is-disabled { cursor: default; }
.pager__item--prev, .pager__item--next { padding: 0.5rem; }
.pager__item--prev { border-top-left-radius: 0.375rem; border-bottom-left-radius: 0.375rem; }
.pager__item--next { border-top-right-radius: 0.375rem; border-bottom-right-radius: 0.375rem; }
.pager__item svg { width: 1.25rem; height: 1.25rem; }

/* ===== Contact ===== */
.contact { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; }

.contact__label {
    display: block;
    color: var(--slate-300);
    font-size: 1.125rem;
    line-height: 1.75rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.26), 0 0 5px rgba(15, 3, 86, 0.22);
}

.contact__input {
    display: block;
    width: 100%;
    color: #000;
    font: inherit;
    margin: 0;
    padding: 0;
    border: 0;
}

.contact__input::placeholder { color: #9ca3af; opacity: 1; }
textarea.contact__input { resize: vertical; }

.contact__submit {
    margin-top: 0.5rem;
    display: inline-flex;
    justify-content: center;
    padding: 0.5rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border: 0;
    border-radius: 0.375rem;
    color: var(--slate-300);
    background: var(--gray-500);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.contact__submit:hover { background: #374151; }

.contact__status { color: var(--green); text-align: center; padding-bottom: 0.75rem; }
.contact__errors { color: #f87171; font-size: 0.875rem; padding-bottom: 0.75rem; }

/* ===== Utility helpers ===== */
.section { width: 100%; }
.mt-5 { margin-top: 1.25rem; }
.mt-7 { margin-top: 1.75rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
    .flexible { padding-left: 5%; padding-right: 5%; }
    .site-brand { padding-left: 0.75rem; padding-right: 0.75rem; }
}

@media (min-width: 888px) {
    .flexible { padding-left: 10%; padding-right: 10%; }
    .site-nav { display: flex; }
    .hamburger, .mobile-nav { display: none; }
    .hero__title { font-size: 3rem; line-height: 1; }
    .recent { border-radius: 150px; }
    .recent__title { font-size: 1.875rem; }
    .page-title { font-size: 1.875rem; }
    .live-status { font-size: 1.25rem; }
    .prize-card__row .prize-card__label { font-size: 50px; }
    .ball { height: 4rem; width: 4rem; font-size: 35px; }
}