/* styles.css - VERSI MOBILE-FIRST */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --accent-red: #8b0000;
    --accent-red-hover: #a51d1d;
    --text-light: #e0e0e0;
    --text-dim: #aaa;
    --border-gray: #2d2d2d;
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glow-red: rgba(139, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 10% 20%, #2a0a0a 0%, #0a0a0a 90%);
    font-size: 14px; /* Ukuran dasar untuk mobile */
    line-height: 1.5;
    overflow-x: hidden;
    width: 100%;
}

/* navbar - diperkecil untuk mobile */
.navbar {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid var(--accent-red);
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    gap: 0.5rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.logo-crimson { color: var(--accent-red); text-shadow: 0 0 8px var(--glow-red); }
.logo-ryujin { color: #aaa; }
.logo-author { 
    font-size: 0.6rem; 
    color: #777; 
    margin-left: 4px;
    display: none; /* Sembunyikan di mobile */
}

/* Tampilkan di tablet ke atas */
@media (min-width: 768px) {
    .logo-author {
        display: inline;
    }
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-item {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.nav-item i { 
    font-size: 0.8rem; 
    color: var(--accent-red); 
}

.nav-item.active {
    border-bottom-color: var(--accent-red);
    color: white;
}

.theme-btn {
    background: transparent;
    border: 1px solid #333;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-btn:hover { background: #222; }

/* main pages - padding untuk mobile */
.main-content {
    flex: 1;
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 0.75rem;
    width: 100%;
}

.page { display: none; }
.page.active { display: block; }

/* slide 1 - intro - diperbaiki untuk mobile */
.intro-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.7), 0 0 20px rgba(139,0,0,0.2);
    width: 100%;
    overflow: hidden;
}

.crimson-glow {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8b0000, #b30000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px #8b0000;
    word-break: break-word;
}

.intro-badge {
    background: #1e1e1e;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    margin: 0.5rem 0;
    border: 1px solid var(--accent-red);
    font-size: 0.9rem;
}

.intro-text {
    font-size: 0.9rem;
    max-width: 100%;
    margin: 1rem auto;
    line-height: 1.5;
    color: #ccc;
    padding: 0 0.25rem;
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.intro-features span { 
    font-size: 0.8rem; 
    background: #1a1a1a;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    border: 1px solid #333;
}
.intro-features span i { color: var(--accent-red); margin-right: 4px; }

.signature {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* slide 2 - preview slider - diperbesar untuk mobile */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    border-left: 5px solid var(--accent-red);
    padding-left: 1rem;
    color: #eee;
    word-break: break-word;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    background: #111;
    aspect-ratio: 16/10; /* Proporsi lebih besar */
}

.slider {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* Pastikan gambar terisi penuh */
    background-color: #1a1a1a;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    border: 1px solid #8b0000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover { background: #8b0000; }
.prev { left: 8px; }
.next { right: 8px; }

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}
.dot.active { 
    background: var(--accent-red); 
    width: 20px; 
    border-radius: 10px; 
}

.preview-caption { 
    text-align: center; 
    color: #777; 
    margin-top: 0.8rem; 
    font-size: 0.8rem; 
}

/* slide 3 download - mobile friendly */
.file-card {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
    box-shadow: 0 6px 0 #080000;
    width: 100%;
}

.file-icon i { 
    font-size: 3rem; 
    color: var(--accent-red); 
}

.file-info { 
    text-align: center;
    width: 100%;
}
.file-name { 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: #ddd;
    word-break: break-word;
}
.file-meta { 
    color: #888; 
    margin: 0.2rem 0 0.8rem; 
    font-size: 0.8rem;
}
.file-desc { 
    color: #aaa; 
    font-size: 0.9rem;
}

.download-trigger-btn {
    background: #1e1e1e;
    border: 2px solid var(--accent-red);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    max-width: 280px;
}
.download-trigger-btn:hover {
    background: var(--accent-red);
    box-shadow: 0 0 15px #8b0000;
}
.info-follow { 
    color: #aaa; 
    font-style: italic; 
    margin: 0.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

/* modal mobile */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0; top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    padding: 0.5rem;
}

.modal-content {
    background: #151515;
    margin: 2% auto;
    max-width: 95%;
    border-radius: 24px;
    border: 1px solid #3a0a0a;
    box-shadow: 0 0 30px #3a0000;
    width: 100%;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #2a2a2a;
}
.modal-header h3 { 
    color: #c44; 
    font-size: 1.1rem;
}
.close {
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}
.close:hover { color: white; }

.modal-body { 
    padding: 1.2rem; 
}

.verification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.verification-item {
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 40px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
}
.verification-item:hover {
    border-color: #8b0000;
    background: #2a0a0a;
}
.verification-item i { 
    font-size: 1.2rem; 
    width: 24px; 
    color: var(--accent-red); 
}
.verify-btn {
    background: #222;
    border: none;
    color: #888;
    padding: 14px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: not-allowed;
    width: 100%;
    transition: 0.2s;
}
.verify-btn:enabled {
    background: #8b0000;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 20px #8b0000;
}
.small-note { 
    font-size: 0.7rem; 
    color: #666; 
    margin-top: 12px; 
    text-align: center;
}

.final-download-btn {
    display: inline-block;
    background: #0f0f0f;
    border: 2px solid #8b0000;
    padding: 1rem 1.5rem;
    border-radius: 60px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s;
    word-break: break-word;
    max-width: 90%;
}
.final-download-btn:hover {
    background: #8b0000;
    transform: scale(1.02);
}

/* footer mobile */
.footer {
    text-align: center;
    padding: 1.5rem 0.5rem;
    border-top: 1px solid #1e1e1e;
    margin-top: 2rem;
}
.social-mini {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}
.social-mini a {
    color: #777;
    font-size: 1.2rem;
    transition: 0.2s;
}
.social-mini a:hover { color: var(--accent-red); }

.copyright {
    font-size: 0.7rem;
    color: #555;
}

/* Perbaikan untuk notifikasi loading */
#telegramLoading {
    position: fixed;
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    background: #8b0000;
    color: white;
    padding: 10px 16px;
    border-radius: 40px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-left: 4px solid #fff;
    font-size: 0.9rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tablet adjustments */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .main-content {
        max-width: 90%;
        padding: 0 1rem;
    }
    
    .intro-card {
        padding: 2.5rem 2rem;
    }
    
    .crimson-glow {
        font-size: 2.5rem;
    }
    
    .verification-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 550px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .main-content {
        max-width: 1000px;
    }
}
