/*
=================================
STRUKTUR KONTEN UTAMA (SESUAI INDEX.CSS)
=================================
*/

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   ANIMASI EFEK RIAK
   ================================= */
@keyframes ripple-effect {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }

    to {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}


.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    animation: fadeIn 0.6s ease-in-out forwards;
}

/*
=================================
TIPOGRAFI KONTEN UTAMA (SESUAI INDEX.CSS)
=================================
*/

h1,
h2,
h3,
h4 {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--header-bg);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

body.dark h1 {
    color: var(--nav-text-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    color: var(--nav-bg);
    border-bottom: 2px solid var(--header-bg);
    padding-bottom: 5px;
}

body.dark h2 {
    color: var(--font);
    border-bottom-color: var(--nav-bg);
}

main>.center-column>p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
    padding: 0 1rem;
    color: var(--text-color);
}

/*
=================================
GAYA SPESIFIK UNTUK HALAMAN KODE REDEEM
=================================
*/

.tutorial-container {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 700px;
    color: var(--text-color);
}

body.dark .tutorial-container {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-container h2 {
    border-bottom: none;
    margin-top: 0;
    color: var(--header-bg);
}

body.dark .tutorial-container h2 {
    color: var(--nav-text-color);
}

.code-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 1rem;
}

/* =================================
   GAYA TOMBOL WOW UNTUK SEMUA DEVICE (DISEMPURNAKAN!)
   ================================= */
.code-list li {
    background-color: var(--nav-bg);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    /* Bayangan awal sedikit lebih kuat */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--font-light);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Efek Kilatan Cahaya (Glare) untuk Hover - HANYA PC */
.code-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-30deg);
    transition: left 0.7s ease;
}

.code-list li:hover::before {
    left: 120%;
}

/* Efek Riak Air (Ripple) untuk Active - SEMUA DEVICE */
.code-list li::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding-top: 100%;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.code-list li:active::after {
    animation: ripple-effect 0.6s ease-out;
}

body.dark .code-list li {
    background-color: var(--header-bg);
}

/* Efek Hover - HANYA PC */
.code-list li:hover {
    transform: translateY(-5px);
    /* Lebih tinggi lagi */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Efek Active/Tekan - SEMUA DEVICE */
.code-list li:active {
    transform: translateY(0px) scale(0.95);
    /* Lebih terasa menekan */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Transisi super cepat untuk feel 'klik' yang responsif */
    transition: transform 0.05s ease, box-shadow 0.05s ease;
}


.tutorial-container ol,
.tutorial-container ul {
    padding-left: 20px;
    text-align: left;
}

.tutorial-container li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--header-bg);
    color: var(--font-light);
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.notification.show {
    opacity: 1;
    visibility: visible;
}

/*
=================================
RESPONSIVE (HANYA UNTUK KONTEN UTAMA)
=================================
*/
@media (max-width: 1024px) {
    .center-column {
        padding: 0 2vw;
    }
}

@media (max-width: 600px) {
    main>.center-column>p {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
