/* ============================================================
   HUB.CSS - PAPIC OS v3.0.0 (BENTO CATEGORY SYSTEM)
   Focus: Grid Layout, Glassmorphism & UI Scalability
   ============================================================ */

/* ==========================================
   1. HUB WRAPPER & LAYOUT
   ========================================== */
.hub-wrapper {
    width: 100%;
    max-width: 480px; 
    min-height: 100vh;
    background-color: #050507; /* Dark background default */
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.content-area {
    flex: 1;
    padding-bottom: 60px;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.main-header { 
    padding: 48px 24px 24px; 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.app-title { 
    font-size: 22px; 
    margin: 0; 
    font-weight: 800; 
    color: #ffffff;
}

.app-title .accent { 
    color: #00f2ff; 
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.nav-icon-link { 
    color: rgba(255, 255, 255, 0.6); 
    font-size: 18px; 
    transition: 0.3s ease; 
}

.nav-icon-link:hover { 
    color: #00f2ff; 
    transform: scale(1.1); 
}

/* --- PROFILE & DROPDOWN --- */
.profile-area { 
    position: relative; 
}

.profile-trigger img { 
    width: 34px; 
    height: 34px; 
    border-radius: 50%; 
    border: 1px solid rgba(0, 242, 255, 0.3); 
    transition: 0.3s; 
    cursor: pointer;
}

.custom-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    width: 210px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    display: none;
    z-index: 2000;
}

.custom-dropdown.active { 
    display: block; 
    animation: dropFade 0.25s ease; 
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    border-radius: 10px;
    transition: 0.2s;
}

.dropdown-item:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: #00f2ff; 
}

/* ==========================================
   3. HERO WELCOME SECTION
   ========================================== */
.hero-welcome {
    text-align: center;
    margin: 10px 24px 40px;
    animation: fadeInDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-welcome h2 {
    font-size: 28px;
    color: #fff;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.hero-welcome p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.text-gradient {
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================
   4. SEARCH CONTAINER (KOLOM PENCARIAN)
   ========================================== */
.search-container {
    padding: 0 24px;
    margin-bottom: 40px;
}

.search-bar {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.search-bar i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    width: 100%;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: #00f2ff;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

/* ==========================================
   5. SISTEM KATEGORI & GRID (BENTO UI)
   ========================================== */
.module-section {
    padding: 0 24px;
}

.category-section {
    margin-bottom: 48px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.category-header h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    opacity: 0.9;
    margin: 0;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    margin-left: 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ==========================================
   6. HUB CARD RE-DESIGN (KARTU MENU)
   ========================================== */
.hub-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: 0.3s;
}

/* Glow Themes */
.cyan-glow { color: #00f2ff; background: rgba(0, 242, 255, 0.1); }
.blue-glow { color: #3d5afe; background: rgba(61, 90, 254, 0.1); }
.orange-glow { color: #ff9100; background: rgba(255, 145, 0, 0.1); }
.gold-glow { color: #ffd700; background: rgba(255, 215, 0, 0.1); }
.pink-glow { color: #fe2c55; background: rgba(254, 44, 85, 0.1); }
.insta-glow { color: #e1306c; background: rgba(225, 48, 108, 0.1); }

.card-text h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    margin-top: 0;
}

.card-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.placeholder-card { 
    opacity: 0.5; 
    border: 1px dashed rgba(255, 255, 255, 0.1); 
    cursor: not-allowed; 
}
.placeholder-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   7. CONTROL AREA & TOGGLE BUTTON
   ========================================== */
.control-area {
    margin-top: 20px;
    text-align: center;
}

.btn-toggle {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-toggle:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* ==========================================
   8. FOOTER REFINED
   ========================================== */
.global-footer {
    margin-top: auto;
    padding: 60px 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.donate-callout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.donate-callout:hover { 
    background: rgba(0, 242, 255, 0.05); 
    transform: translateY(-2px); 
}

.donate-callout i { color: #ff9f43; font-size: 16px; }
.donate-callout span { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; }

.footer-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.footer-about p { 
    font-size: 12px; 
    color: rgba(255, 255, 255, 0.6); 
    line-height: 1.8; 
    margin-bottom: 24px; 
}

.social-row { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-bottom: 32px; 
}

.social-link { 
    color: rgba(255, 255, 255, 0.4); 
    text-decoration: none; 
    font-size: 12px; 
    transition: 0.3s; 
}

.social-link:hover { 
    color: #00f2ff; 
}

.engine-specs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 1px;
}

/* ==========================================
   9. ANIMASI MASUK (KEYFRAMES)
   ========================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes dropFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   10. RESPONSIVE ADJUSTMENTS (UNTUK HP)
   ========================================== */
@media (max-width: 380px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-welcome h2 {
        font-size: 24px;
    }
}