/* ==========================================================================
   MOBILE-FIRST INDEX COMPONENTS (440px Centered Mobile Canvas)
   Emerald + Obsidian Black + Warm Radiant Gold
   ========================================================================== */

/* ==========================================================================
   1. HERO BANNER SECTION (High-Impact Mobile Casino Banner)
   ========================================================================== */
.hero {
    padding: 12px 14px 6px;
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-hero);
    border: 1px solid var(--line-gold);
    overflow: hidden;
    padding: 22px 16px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: var(--transition-theme);
}

[data-theme="light"] .hero-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.hero-badge i {
    color: var(--gold);
    font-size: 11px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

.hero p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.hero-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
}

.btn-hero-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--gold-btn-gradient);
    color: #08140f;
    font-size: 11.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.35);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 160, 23, 0.55);
}

.btn-hero-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    border: 1.5px solid var(--line-gold);
    color: var(--gold-light);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(212, 160, 23, 0.2);
    border-color: var(--gold);
    color: var(--text-white);
}

/* Hero Trust Stats Strip */
.hero-trust-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 12px;
    border-top: 1px solid var(--line-subtle);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-light);
}

.trust-lbl {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   2. RUNNING ANNOUNCEMENT TICKER (Marquee)
   ========================================================================== */
.announcement-ticker {
    margin: 8px 14px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    transition: var(--transition-theme);
}

.announcement-icon {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 14px;
    flex-shrink: 0;
}

.announcement-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-text marquee {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   3. HORIZONTAL CATEGORY PILLS (Smooth Swipe Navigation)
   ========================================================================== */
.category-pills-wrap {
    padding: 4px 14px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-pills-wrap::-webkit-scrollbar {
    display: none;
}

.category-pills-list {
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.category-pill i {
    font-size: 13px;
    color: var(--gold-light);
}

.category-pill:hover,
.category-pill.active {
    background: var(--gold-gradient);
    border-color: var(--gold);
    color: #08140f;
    box-shadow: 0 2px 10px rgba(212, 160, 23, 0.35);
}

.category-pill.active i {
    color: #08140f;
}

/* ==========================================================================
   4. PERMAINAN KAMI - GAME CARDS GRID (3-Column Mobile Layout)
   ========================================================================== */
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.game-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-surface-2);
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-card-img {
    transform: scale(1.08);
}

/* Badges on card */
.game-badge-hot {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.game-badge-rtp {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(8, 20, 15, 0.85);
    border: 1px solid var(--green-accent);
    color: var(--green-accent);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 4px;
}

.game-card-content {
    padding: 7px 6px 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--bg-surface);
}

.game-card-content h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-content p {
    font-size: 9.5px;
    color: var(--text-muted);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   5. PERMAINAN PALING POPULER (Small Games Grid)
   ========================================================================== */
.top-games-section {
    padding-top: 6px;
}

.small-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.small-game {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-gold);
    aspect-ratio: 1 / 1;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.small-game:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.small-game img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   6. PEMENANG JACKPOT HARI INI (Live Winners Showcase)
   ========================================================================== */
.winners-section {
    padding-top: 8px;
}

.winners-ticker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: var(--transition);
}

.winner-item:hover {
    background: var(--bg-surface-2);
    border-color: var(--gold);
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.winner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #08140f;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.winner-details {
    display: flex;
    flex-direction: column;
}

.winner-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
}

.winner-game {
    font-size: 9.5px;
    color: var(--text-muted);
}

.winner-amount {
    font-size: 12px;
    font-weight: 800;
    color: var(--gold-light);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* ==========================================================================
   7. MENGAPA MEMILIH KAMI - FEATURES GRID (2-Col Mobile Cards)
   ========================================================================== */
.features-section {
    padding-top: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--gold-soft);
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.feature-icon svg {
    width: 16px;
    height: 16px;
}

.feature-card h3 {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.3;
}

.feature-card p {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   8. METODE PEMBAYARAN LOKAL
   ========================================================================== */
.payment-section {
    padding-top: 10px;
}

.payment-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 12px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-method-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: rgba(0, 208, 132, 0.12);
    border: 1px solid rgba(0, 208, 132, 0.3);
    color: var(--green-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon svg {
    width: 15px;
    height: 15px;
}

.payment-details h3 {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
}

.payment-details p {
    font-size: 9.5px;
    color: var(--gold-light);
}

/* ==========================================================================
   9. TESTIMONI MEMBER VIP
   ========================================================================== */
.testimonials-section {
    padding-top: 10px;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-md);
    padding: 14px 12px;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.testimonial-stars svg {
    width: 13px;
    height: 13px;
    fill: var(--gold-light);
}

.testimonial-text {
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    border-top: 1px solid var(--line-subtle);
    padding-top: 8px;
}

.testimonial-author strong {
    color: var(--text-white);
}

.testimonial-author span {
    color: var(--green-accent);
    font-weight: 700;
}

/* ==========================================================================
   10. GAMBAR TERBARU (News / Gallery Grid)
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

[data-theme="light"] .news-card {
    background: #ffffff;
    border-color: rgba(179, 130, 10, 0.24);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 10px 24px var(--gold-glow);
}

[data-theme="light"] .news-card:hover {
    box-shadow: 0 10px 24px rgba(179, 130, 10, 0.22);
}

.news-card a,
.news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-surface-2);
}

.news-card-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.news-card:hover .news-card-img {
    transform: scale(1.08);
}

.news-card-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.news-card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    padding: 2px 7px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #ffffff;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    z-index: 2;
    text-transform: uppercase;
}

.news-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.65);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold-btn-gradient);
    color: #08140f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 2;
    pointer-events: none;
}

.news-card:hover .news-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.news-card-body {
    padding: 10px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    background: var(--bg-surface);
}

[data-theme="light"] .news-card-body {
    background: #ffffff;
}

.news-card h4,
.news-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.35;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    transition: color 0.2s ease;
}

.news-card:hover h4,
.news-card:hover .news-card-title {
    color: var(--gold-light);
}

.news-card p,
.news-card-desc {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
    word-break: break-word;
}

/* Fallback for direct children without .news-card-body */
.news-card > a > h4 {
    padding: 8px 10px 4px;
}

.news-card > a > p {
    padding: 0 10px 12px;
}

.news-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 7px;
    border-top: 1px solid var(--line-subtle);
    font-size: 10.5px;
    font-weight: 700;
    color: var(--gold-light);
    transition: var(--transition);
}

[data-theme="light"] .news-card-action {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--gold);
}

.news-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 10px;
    transition: var(--transition);
}

.news-card:hover .news-action-icon {
    background: var(--gold-gradient);
    color: #08140f;
    transform: translateX(2px);
}

/* ==========================================================================
   11. MARKETING & PROMO BANNERS GRID
   ========================================================================== */
.marketing-container {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-col {
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    box-shadow: var(--shadow-sm);
}

.promo-img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.promo-rules .rule-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.promo-rules ol {
    padding-left: 16px;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Jili Bonus Section */
.jili-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jili-gift-section,
.jili-deposit-section {
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-lg);
    padding: 16px 14px;
}

.jili-title {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.jili-subtitle {
    font-size: 12px;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 6px;
}

.cyan-text {
    color: var(--text-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.jili-list {
    list-style: none;
    margin-top: 6px;
}

.jili-list li {
    margin-bottom: 4px;
}

.payment-methods {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.payment-methods div {
    font-size: 10px !important;
    padding: 4px 8px !important;
}

/* ==========================================================================
   12. CALL TO ACTION SECTION (High Impact Gold Pill)
   ========================================================================== */
.cta-section {
    padding: 10px 14px 16px;
}

.cta-content {
    background: var(--bg-cta);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-gold);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 8px;
    font-weight: 800;
}

.cta-title span {
    color: var(--gold-light);
    display: block;
}

.cta-text {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
}

.cta-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-cta {
    flex: 1;
    height: 40px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-cta.primary {
    background: var(--gold-btn-gradient);
    color: #08140f;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.4);
}

.btn-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 160, 23, 0.6);
}

.btn-cta.secondary {
    background: var(--gold-soft);
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
}

.btn-cta.secondary:hover {
    background: rgba(212, 160, 23, 0.2);
    color: var(--text-white);
}

.cta-note {
    font-size: 9.5px;
    color: var(--gold-light);
    font-weight: 600;
}
