/* css/features.css */
/* GAYA KHUSUS PER FITUR */

/* --- FITUR 1: LEADERBOARD / RANK --- */
.leaderboard-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
}
.rank-number {
    font-size: 1.5em;
    font-weight: 900;
    width: 40px;
    text-align: center;
    color: var(--gold);
    text-shadow: 0 0 5px var(--gold);
}
.user-info h4 { margin: 0; color: white; font-size: 0.9em; }
.user-info p { margin: 0; color: #888; font-size: 0.7em; }
.amount-badge {
    margin-left: auto;
    background: #222;
    color: var(--neon-blue);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7em;
    border: 1px solid var(--neon-blue);
}

/* --- FITUR 2: CHAT SYSTEM PRO --- */
.chat-box {
    height: 350px;
    overflow-y: auto;
    background: rgba(0,0,0,0.5);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Pesan */
.chat-msg {
    position: relative;
    padding-bottom: 30px !important; /* Ruang extra di bawah untuk tombol */
}

/* Konteks Balasan (Box Biru Tipis) */
.msg-reply-context {
    background: rgba(0, 255, 255, 0.05);
    border-left: 2px solid cyan;
    padding: 4px 8px;
    margin-bottom: 5px;
    font-size: 0.75em;
    color: #888;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* Container Tombol di Bawah Pesan */
.msg-actions {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 0.8em;
}

/* Tombol Balas */
.btn-reply {
    transition: 0.2s;
}
.btn-reply:hover {
    text-decoration: underline;
    color: white !important;
}

/* Baris Reaksi (Yang sudah diklik) */
.reaction-bar {
    display: flex;
    gap: 5px;
}
.reaction-btn {
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8em;
    cursor: pointer;
    color: #ccc;
    transition: 0.2s;
}
.reaction-btn:hover {
    background: #444;
    border-color: cyan;
    color: white;
}

/* Picker Emoji (Pilih Reaksi Baru) */
.emoji-picker {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #111;
    border: 1px solid #444;
    padding: 4px;
    border-radius: 20px;
    display: flex;
    gap: 8px;
    /* Agar terlihat tapi tidak mengganggu */
    opacity: 0.6; 
    transition: opacity 0.2s;
}

/* Saat mouse di atas pesan, emoji jadi terang */
.chat-msg:hover .emoji-picker {
    opacity: 1;
    border-color: cyan;
}

.emoji-option {
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.2s;
}
.emoji-option:hover {
    transform: scale(1.3);
}

/* Banner Reply (Muncul saat tekan Balas) */
.reply-banner {
    background: #1a1a1a;
    border-left: 3px solid cyan;
    border-top: 1px solid #333;
    padding: 8px 10px;
    margin-bottom: 5px;
    display: none; /* Default sembunyi */
    align-items: center;
    justify-content: space-between;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* --- FITUR 3: VIP LOCKED SCREEN --- */
.locked-overlay {
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--danger);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}
.lock-icon {
    font-size: 3em;
    color: var(--danger);
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

/* --- FITUR 4: COMMUNITY HUB (SULTAN EDITION) --- */

/* 1. CONTAINER TAB (Dashboard Style) */
.community-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2); /* Border Emas Tipis */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* 2. TOMBOL TAB (Premium Toggle) */
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    padding: 10px 0;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif; /* Font Robotik */
}

/* Saat Tab Aktif (Efek Neon) */
.tab-btn.active {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Badge Online Count (Merah Menyala) */
.badge-count {
    background: #ff003c;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    box-shadow: 0 0 8px #ff003c;
    vertical-align: middle;
}

/* 3. KONTEN TAB & LIST */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active { display: block; }

.scroll-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar Mewah (Tipis) */
.scroll-list::-webkit-scrollbar { width: 4px; }
.scroll-list::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* 4. KARTU USER (Glassmorphism) */
.user-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border-left: 3px solid #333; /* Default Border */
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 0 8px 8px 0;
    transition: 0.3s;
}
.user-card-row:hover {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--neon-blue);
    transform: translateX(5px);
}

/* 5. ICON RANKING (GRADASI LOGAM MULIA) */
/* Ini trik CSS biar warnanya kayak emas batangan asli */
.rank-icon { 
    font-size: 1.4em; 
    width: 35px; 
    text-align: center;
    font-weight: 900;
    font-style: italic;
}

/* JUARA 1: EMAS (GOLD) */
.rank-1 { 
    background: linear-gradient(to bottom, #FFD700, #FDB931, #C49204);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
    font-size: 1.6em;
}

/* JUARA 2: PERAK (SILVER) */
.rank-2 { 
    background: linear-gradient(to bottom, #EEE, #CCC, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 3px rgba(192, 192, 192, 0.5));
}

/* JUARA 3: PERUNGGU (BRONZE) */
.rank-3 { 
    background: linear-gradient(to bottom, #ffbf80, #cd7f32, #8b4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(205, 127, 50, 0.5));
}

/* 6. INDIKATOR ONLINE (PULSE ANIMATION) */
/* Bulatan hijau yang berdenyut seperti jantung */
.online-dot {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    position: relative;
    display: inline-block;
}

.online-dot::after {
    content: '';
    position: absolute;
    top: -5px; left: -5px;
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid #00ff00;
    opacity: 0;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* --- ICON TAB MEWAH (GRADIENT STYLE) --- */

.tab-icon {
    margin-right: 6px;
    font-size: 1.2em;
    vertical-align: middle;
    /* Efek Bayangan Cahaya (Glow) */
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
    transition: transform 0.3s;
}

/* Saat tombol di-hover, icon goyang sedikit */
.tab-btn:hover .tab-icon {
    transform: scale(1.2) rotate(-10deg);
}

/* 1. ICON SULTAN (EMAS BATANGAN) */
.icon-gold {
    background: -webkit-linear-gradient(#FFD700, #FDB931, #C49204);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

/* 2. ICON RAJIN (CYAN FUTURE TECH) */
.icon-cyan {
    background: -webkit-linear-gradient(#00ffff, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.6));
}

/* 3. ICON ONLINE (HIJAU LASER) */
.icon-lime {
    background: -webkit-linear-gradient(#5eff00, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 255, 0, 0.6));
}

/* Perbaikan Badge Count agar serasi */
.badge-count {
    background: linear-gradient(135deg, #ff003c, #c00020);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(255, 0, 60, 0.5);
    font-family: 'Consolas', monospace;
    font-weight: bold;
}