/* =============================================
   Gaming Portal - Professional Stylesheet
   ============================================= */

/* Base */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6fb;
    color: #1f2937;
    overflow-x: hidden;
}

/* ---- HEADER ---- */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 8px rgba(15,23,42,0.08);
    z-index: 1000;
}

header img {
    max-height: 40px;
}

header .nav-link {
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s;
}

header .nav-link:hover,
header .nav-link.active {
    color: #4f46e5;
    background-color: rgba(79,70,229,0.08);
}

/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4f46e5 100%);
    color: #ffffff;
    padding: 4rem 0 3.5rem;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(124,58,237,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99,102,241,0.25) 0%, transparent 40%);
    pointer-events: none;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #f4f6fb);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 540px;
}

.hero-section .hero-logo {
    max-width: 200px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
}

.trust-badge i {
    color: #a5b4fc;
}

/* ---- STATS SECTION ---- */
.stats-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 2.5rem 0;
    margin-top: -1px;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* ---- SECTION TITLES ---- */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* ---- CARDS ---- */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
    background-color: #ffffff;
    color: #111827;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.1);
}

/* Icon cards with accent border */
.icon-card {
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}

.icon-card.accent-primary { border-left-color: #4f46e5; }
.icon-card.accent-warning { border-left-color: #f59e0b; }
.icon-card.accent-success { border-left-color: #16a34a; }
.icon-card.accent-danger  { border-left-color: #dc2626; }

.icon-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.icon-card .card-icon.bg-primary-soft { background: rgba(79,70,229,0.1); color: #4f46e5; }
.icon-card .card-icon.bg-warning-soft { background: rgba(245,158,11,0.1); color: #f59e0b; }
.icon-card .card-icon.bg-success-soft { background: rgba(22,163,74,0.1); color: #16a34a; }
.icon-card .card-icon.bg-danger-soft  { background: rgba(220,38,38,0.1); color: #dc2626; }

/* ---- NAVIGATION ---- */
.nav-pills .nav-link {
    color: #374151;
    font-weight: 500;
}

.nav-pills .nav-link.active {
    background-color: #4f46e5;
    color: white;
}

/* ---- RTP TABLE ---- */
.table {
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background-color: #1e293b;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    font-size: 0.95rem;
}

.table tbody tr {
    transition: background-color 0.15s;
}

.table tbody tr:hover {
    background-color: rgba(79,70,229,0.04);
}

.table-responsive {
    margin-top: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}

/* ---- BADGES ---- */
.badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.bg-success { background-color: #16a34a !important; }
.badge.bg-warning { background-color: #f59e0b !important; color: #1f2937 !important; }
.badge.bg-secondary { background-color: #64748b !important; }
.badge.bg-danger { background-color: #dc2626 !important; }

/* ---- PROVIDER CARDS ---- */
.provider-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.provider-link .card {
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.provider-link:hover .card {
    border-color: #4f46e5;
    box-shadow: 0 8px 24px rgba(79,70,229,0.15);
}

.provider-link .card::after {
    content: "Lihat RTP \2192";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.provider-link:hover .card::after {
    transform: translateY(0);
}

/* ---- CTA BANNER ---- */
.cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 50%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
    z-index: 2;
}

/* ---- BUTTONS ---- */
.btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.btn-outline-primary {
    color: #4f46e5;
    border-color: #4f46e5;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background-color: #4f46e5;
    color: white;
    transform: translateY(-1px);
}

.btn-light {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
}

.btn-outline-light {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
}

/* ---- INPUT ---- */
.input-group-text {
    background-color: #f4f6fb;
    border-color: #e2e8f0;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-select {
    border-color: #e2e8f0;
}

.form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.2rem rgba(79,70,229,0.12);
}

/* ---- FOOTER ---- */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
}

footer h5, footer h6 {
    color: #f1f5f9;
}

footer a.text-light:hover {
    color: #a5b4fc !important;
}

/* ---- AGE GATE ---- */
#age-gate > div {
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- LOADING ---- */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- ALERTS ---- */
.alert-success { background-color: #d4edda; border-color: #c3e6cb; color: #155724; }
.alert-danger  { background-color: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.alert-info    { background-color: #d1ecf1; border-color: #bee5eb; color: #0c5460; }
.alert-warning { background-color: #fff3cd; border-color: #ffeeba; color: #856404; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .trust-badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0 2rem;
        text-align: center;
    }
    .hero-section .lead {
        margin: 0 auto;
    }
    .hero-section .hero-logo {
        margin-top: 1.5rem;
        max-width: 140px;
    }
    .trust-badges {
        justify-content: center;
    }
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    header .d-none-mobile {
        display: none !important;
    }
}
