/* Base styles */
body {
    min-height: 100vh;
    font-family: sans-serif;
    color: white;
    background: linear-gradient(to bottom, #111827, #000000);
}

/* Navigation */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
}

::-webkit-scrollbar {
    width: 9px; /* Lebar scroll bar */
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.849); /* Background transparan putih */
    border-radius: 10px; /* Membuat track lebih bulat */
}

::-webkit-scrollbar-thumb {
    background-color: #800080; /* Warna scroll bar ungu */
    border-radius: 10px; /* Membuat scroll thumb lebih bulat */
    border: 3px solid rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #660066; /* Warna scroll thumb saat di hover */}

.nav-info {
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .nav-info {
        display: none;
    }
}

/* Header */
.header {
    text-align: center;
    padding: 3rem 1rem;
}

.header-title {
    font-size: 2.25rem;
    font-weight: bold;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 768px) {
    .header-title {
        font-size: 3rem;
    }
}

.header-divider {
    width: 6rem;
    height: 0.25rem;
    margin: 1rem auto;
    background: linear-gradient(to right, #a855f7, #ec4899);
    border-radius: 9999px;
}

/* Main content */
.main-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .ranks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .ranks-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Rank cards */
.rank-card {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s;
}

.rank-card:hover {
    transform: scale(1.05);
}

.rank-image {
    width: 6rem;
    height: 6rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rank-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
}

.rank-price {
    margin-top: 0.5rem;
    color: #4ade80;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    margin-left: 0.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.info-icon:hover {
    color: white;
}

.order-button {
    margin-top: 1rem;
    width: 100%;
    background: linear-gradient(to right, #a855f7, #ec4899);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.order-button:hover {
    opacity: 0.9;
}

.order-button:focus {
    outline: none;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #1f2937;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: 100%;
    margin: 0 1rem;
    position: relative;
    max-height: 80vh; /* Batasi tinggi modal */
    overflow-y: auto; /* Tambah scroll jika konten panjang */
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #9ca3af;
}

.modal-close:hover {
    color: white;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.modal-section {
    margin-top: 1rem;
}

.modal-section-title {
    font-weight: bold;
    color: #f0f1f0;
}

.modal-list {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.modal-list-item {
    margin-top: 0.5rem;
}

.command {
    color: #a855f7;
}

.modal-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #4ade80;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .modal-content {
        width: 90%; /* Responsif di layar kecil */
        margin: 0 auto;
    }
}

/* Footer */
.footer {
    background-color: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(8px);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-logo {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 9999px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-top: 1rem;
}

.footer-copyright {
    color: #9ca3af;
    margin-top: 0.5rem;
}

.footer-disclaimer {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.footer-mascot {
    width: 4rem;
    height: 4rem;
    margin: 1.5rem auto 0;
    border-radius: 9999px;
}




.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: gradientMove 4s ease-in-out infinite;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #9333ea;
    border-radius: 50%;
    animation: spin 4s linear infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Menghilangkan loading screen setelah konten dimuat */
.loaded {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s, visibility 1s;
}