/* Import Google Font untuk tampilan modern */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212; /* Warna dasar gelap */
    background-image: linear-gradient(180deg, #1f1f1f 0%, #121212 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Kustomisasi agar textarea lebih besar dan rapi */
#link-input {
    min-height: 150px;
    font-size: 1.1rem;
}

/* Kustomisasi placeholder textarea - putih dengan transparansi 30% */
#link-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1; /* Pastikan opacity bekerja */
}

#link-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

#link-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

#link-input:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

/* Kustomisasi untuk link hasil download */
.result-link a {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    word-wrap: break-word;
    color: #ffffff; /* Warna link putih */
    text-decoration: none; /* Hilangkan garis bawah default */
}

.result-link a:hover {
    text-decoration: underline; /* Tampilkan garis bawah saat di-hover */
}

/* Kustomisasi untuk card agar lebih menyatu dengan background */
.card.bg-dark {
    background-color: #1e1e1e !important;
}

/* Kustomisasi untuk input form */
.form-control.bg-dark {
    background-color: #2b2b2b !important;
    border-color: #444;
}

.form-control.bg-dark:focus {
    background-color: #2b2b2b !important;
    border-color: #0d6efd; /* Warna biru primary bootstrap */
    box-shadow: none;
    color: #e0e0e0;
}

/* Style untuk kontainer hoster */
.hoster-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #333;
}

.hoster-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background-color: #2b2b2b;
    border-radius: 0.375rem;
    border: 1px solid #444;
}

.hoster-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #0d6efd; /* Warna biru primary */
}

.hoster-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== CSS UNTUK LOGO INISIAL HOSTER (VERSI BARU) ===== */

.hoster-logo-initial {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    vertical-align: middle;
    /* Warna background sekarang dibuat tetap/statis */
    background-color: #343a40; /* Abu-abu gelap seperti tema */
}

/* Kelas untuk warna background */
.logo-blue {
    background-color: #0d6efd; /* Biru primary Bootstrap */
}

.logo-orange {
    background-color: #fd7e14; /* Oranye Bootstrap */
}

.logo-green {
    background-color: #198754; /* Hijau Bootstrap */
}

/* Tambahkan kelas warna baru ini */
.logo-grey {
    background-color: #93b3fd; /* Abu-abu sekunder Bootstrap */
}

/* Footer Styling */
footer a.text-white-50 {
    transition: color 0.3s ease;
}

footer a.text-white-50:hover {
    color: #ffffff !important;
}

footer a.text-white-50 i {
    transition: transform 0.3s ease;
}

footer a.text-white-50:hover i {
    transform: scale(1.1);
}

/* ===== ANIMASI TUTORIAL CARDS ===== */
.tutorial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.tutorial-card:hover::before {
    left: 100%;
}

.tutorial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3), 0 0 20px rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.5) !important;
}

.tutorial-card .rounded-circle {
    transition: all 0.3s ease;
}

.tutorial-card:hover .rounded-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tutorial-card i {
    transition: all 0.3s ease;
}

.tutorial-card:hover i {
    transform: scale(1.2);
}

.tutorial-card:hover .text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Fade-in animation untuk tutorial cards saat page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger animation untuk tutorial cards */
.row.g-4 > div:nth-child(1) .tutorial-card { animation-delay: 0.1s; }
.row.g-4 > div:nth-child(2) .tutorial-card { animation-delay: 0.2s; }
.row.g-4 > div:nth-child(3) .tutorial-card { animation-delay: 0.3s; }
.row.g-4 > div:nth-child(4) .tutorial-card { animation-delay: 0.4s; }
.row.g-4 > div:nth-child(5) .tutorial-card { animation-delay: 0.5s; }
.row.g-4 > div:nth-child(6) .tutorial-card { animation-delay: 0.6s; }

/* ===== ANIMASI HOSTER ITEMS ===== */
.hoster-item-animated {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.hoster-item-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hoster-item-animated:hover::before {
    width: 200px;
    height: 200px;
}

.hoster-item-animated:hover {
    transform: translateY(-5px) scale(1.05);
    color: #ffffff !important;
    background-color: rgba(13, 110, 253, 0.1);
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.3);
}

.hoster-item-animated img {
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.hoster-item-animated:hover img {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.hoster-item-animated .hoster-logo-initial {
    transition: all 0.3s ease;
}

.hoster-item-animated:hover .hoster-logo-initial {
    transform: scale(1.3) rotate(360deg);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}

/* Fade-in animation untuk hoster items saat page load */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hoster-item-animated {
    animation: fadeInScale 0.5s ease-out forwards;
    opacity: 0;
}

/* Stagger animation untuk hoster items */
.hoster-item-animated:nth-child(1) { animation-delay: 0.05s; }
.hoster-item-animated:nth-child(2) { animation-delay: 0.1s; }
.hoster-item-animated:nth-child(3) { animation-delay: 0.15s; }
.hoster-item-animated:nth-child(4) { animation-delay: 0.2s; }
.hoster-item-animated:nth-child(5) { animation-delay: 0.25s; }
.hoster-item-animated:nth-child(6) { animation-delay: 0.3s; }
.hoster-item-animated:nth-child(7) { animation-delay: 0.35s; }
.hoster-item-animated:nth-child(8) { animation-delay: 0.4s; }
.hoster-item-animated:nth-child(9) { animation-delay: 0.45s; }
.hoster-item-animated:nth-child(10) { animation-delay: 0.5s; }
.hoster-item-animated:nth-child(11) { animation-delay: 0.55s; }
.hoster-item-animated:nth-child(12) { animation-delay: 0.6s; }
.hoster-item-animated:nth-child(13) { animation-delay: 0.65s; }
.hoster-item-animated:nth-child(14) { animation-delay: 0.7s; }
.hoster-item-animated:nth-child(15) { animation-delay: 0.75s; }
.hoster-item-animated:nth-child(16) { animation-delay: 0.8s; }
.hoster-item-animated:nth-child(17) { animation-delay: 0.85s; }
.hoster-item-animated:nth-child(18) { animation-delay: 0.9s; }