/* style.css */

/* --- 1. MÀU SẮC CHỦ ĐẠO PI NETWORK --- */
.bg-pi-purple {
    background-color: #674198 !important;
}

.bg-pi-gradient {
    background: linear-gradient(90deg, #674198 0%, #8b5cf6 100%) !important;
}

.text-pi-purple {
    color: #674198;
}

.active-btn {
    background-color: #674198 !important;
    color: white !important;
    border-color: #674198 !important;
    box-shadow: 0 4px 10px rgba(103, 65, 152, 0.2);
}

/* --- 2. HỆ THỐNG MODAL & THÔNG BÁO (SWEETALERT2) --- */
.swal2-container {
    z-index: 3000 !important;
}

.swal2-popup {
    border-radius: 2.5rem !important;
    font-family: inherit;
}

.swal2-styled.swal2-confirm {
    background-color: #674198 !important;
    box-shadow: 0 4px 12px rgba(103, 65, 152, 0.3) !important;
}

/* --- 3. BẢN ĐỒ LEAFLET & TOÀN MÀN HÌNH --- */
.leaflet-container {
    z-index: 1 !important;
    font-family: inherit;
}

.leaflet-popup-content-wrapper {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
}

.leaflet-popup-tip-container {
    display: none; /* Ẩn cái đuôi nhọn để nhìn hiện đại hơn */
}

/* Trạng thái toàn màn hình giả */
.map-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
}

.map-fullscreen-active + #custom-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

/* Badge khoảng cách trong popup */
.distance-badge {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #2563eb;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    border: 1px solid #dbeafe;
}

/* --- 4. HIỆU ỨNG THẺ & TRANG TRÍ --- */
.review-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(103, 65, 152, 0.1);
}

/* Hiệu ứng Crown cho Shop số 1 */
#top-shops-container .bg-white:first-child {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.15);
    position: relative;
}

#top-shops-container .bg-white:first-child::after {
    content: '👑';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 16px;
}

/* --- 5. TIỆN ÍCH (SCROLLBAR) --- */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

/* Hiệu ứng hào quang cho tia sét */
.tip-bolt {
 transition: all 0.3s ease;
 display: inline-block;
 filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.4));
}

.tip-bolt:hover {
 filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.8));
 transform: scale(1.3) rotate(10deg);
}

/* Tooltip đơn giản */
.tip-bolt {
 position: relative;
}

.tip-bolt::after {
 content: "Tặng 0.5 Pi";
 position: absolute;
 bottom: 120%;
 left: 50%;
 transform: translateX(-50%);
 background: rgba(0, 0, 0, 0.8);
 color: white;
 padding: 4px 8px;
 border-radius: 6px;
 font-size: 8px;
 white-space: nowrap;
 opacity: 0;
 pointer-events: none;
 transition: opacity 0.2s;
}

.tip-bolt:hover::after {
 opacity: 1;
}

/* Màu Gradient cho thanh tiến trình */
.bg-pi-gradient {
 background: linear-gradient(90deg, #674198 0%, #9061d2 100%);
}

/* Hiệu ứng khi Rank thay đổi */
.rank-ambassador { background-color: #ef4444 !important; } /* Màu đỏ vương giả */
.rank-contributor { background-color: #8b5cf6 !important; } /* Màu tím đậm */
.rank-verified { background-color: #3b82f6 !important; } /* Màu xanh xác minh */

/* Ẩn scrollbar cho modal */
.scrollbar-hide::-webkit-scrollbar {
 display: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}
.animate__bounce {
    animation: bounce 1s;
}
