/* =========================================
   1. GLOBAL RESET & BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
  
body {
    background-color: #f0f2f5;
    color: #333;
    padding-top: 60px;
    padding-bottom: 65px;
    min-height: 100vh;
}
  
/* === MAIN CONTAINER (Mobile Frame) === */
.main-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
  
.content {
    padding: 15px;
}

/* =========================================
   2. HEADER & NAVIGATION COMPONENTS
   ========================================= */
.top-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    max-width: 480px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3436;
}
.logo span { color: #00b894; }

.back-btn {
    color: inherit; 
    margin-right: 10px;
    font-size: 1.1rem;
    text-decoration: none;
}

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 65px;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
}
  
.nav-item {
    text-decoration: none;
    color: #b2bec3;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    transition: color 0.2s;
}
  
.nav-item i { font-size: 1.3rem; margin-bottom: 4px; }
.nav-item.active, .nav-item:hover { color: #00b894; font-weight: 600; }

.ad-banner {
    background: #dfe6e9;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #636e72;
    margin: 20px 0;
    border: 1px dashed #b2bec3;
    font-size: 0.8rem;
}

/* =========================================
   3. HALAMAN HOME (Index Styles)
   ========================================= */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff, #f0fdf4);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2rem;
    color: #1e272e;
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero-title span { color: #00b894; }
.hero-desc { color: #636e72; font-size: 0.9rem; margin-bottom: 20px; }

.btn-primary {
    background: #00b894;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,184,148,0.3);
    display: inline-block;
    transition: all 0.2s;
}
.btn-primary:hover { background: #00a085; transform: translateY(-2px); }

.menu-grid {
    display: flex;            /* Pakai Flexbox agar fleksibel */
    flex-wrap: wrap;          /* Agar item turun ke bawah kalau tidak muat */
    justify-content: center;  /* KUNCINYA: Agar item terakhir (ganjil) ke tengah */
    gap: 15px;                /* Jarak antar menu */
    padding: 0 10px;
}

.menu-card {
    /* Agar muat 2 item per baris: (100% / 2) - setengah gap */
    width: calc(50% - 8px);   
    
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    
    /* Agar item tidak mengecil atau membesar sembarangan */
    flex-grow: 0; 
    flex-shrink: 0;
}
.menu-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}
.menu-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.menu-text { font-weight: 700; font-size: 0.9rem; }

/* =========================================
   4. HALAMAN SHOP (Toko Styles)
   ========================================= */
.shop-hero {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.shop-hero h1 { color: #2d3436; margin-bottom: 5px; font-size: 1.5rem; }
.shop-hero p { color: #636e72; font-size: 0.9rem; }

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.filter-buttons::-webkit-scrollbar { display: none; }

.filter-btn {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn.active {
    background: #00b894;
    color: white;
    border-color: #00b894;
}

.shop-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}
.shop-card img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; margin-right: 15px; }
.shop-details h4 { font-size: 0.95rem; margin-bottom: 5px; color: #2d3436; }
.price { color: #d63031; font-weight: 700; }
.btn-buy {
    font-size: 0.7rem; color: #e67e22; border: 1px solid #e67e22;
    padding: 2px 8px; border-radius: 4px; margin-left: auto;
}
.empty-state { text-align: center; padding: 40px 20px; color: #888; }

/* =========================================
   5. HALAMAN DOA (Prayer Styles)
   ========================================= */
.doa-hero {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.doa-hero h1 { color: #0f5132; margin-bottom: 5px; font-size: 1.5rem; }
.doa-hero p { color: #166534; font-size: 0.9rem; }

.daily-doa {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}
.daily-doa h3 { color: #92400e; margin-bottom: 10px; font-size: 0.9rem; }

.copy-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-top: 10px;
}
.copy-btn.copied { background: #6b7280; }

.doa-actions { display: flex; gap: 10px; margin-bottom: 15px; }
.action-btn {
    flex: 1; padding: 10px; background: #f0fdf4;
    border: 1px solid #bbf7d0; border-radius: 10px;
    text-align: center; cursor: pointer; font-size: 0.8rem;
    color: #166534; transition: all 0.2s;
}
.action-btn:hover { background: #dcfce7; }

.doa-categories {
    display: flex; gap: 10px; margin-bottom: 15px;
    overflow-x: auto; padding-bottom: 10px; scrollbar-width: none;
}
.category-btn {
    padding: 8px 15px; background: #fff; border: 1px solid #bbf7d0;
    border-radius: 20px; font-size: 0.8rem; white-space: nowrap;
    cursor: pointer; color: #166534;
}
.category-btn.active { background: #22c55e; color: white; border-color: #22c55e; }

.doa-favorite {
    display: none; background: #fff7ed; border: 1px solid #fed7aa;
    border-radius: 10px; padding: 15px; margin-bottom: 15px;
}
.doa-favorite.show { display: block; }
.favorite-title {
    color: #c2410c; font-weight: 600; margin-bottom: 10px;
    display: flex; justify-content: space-between; align-items: center;
}

.doa-card {
    background: #f9f9f9; border: 1px solid #eee;
    border-radius: 8px; overflow: hidden; margin-bottom: 10px;
}
.doa-header {
    padding: 15px; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center;
    font-weight: 600; color: #2d3436;
}
.doa-body { display: none; padding: 15px; border-top: 1px solid #eee; background: #fff; }
.arab {
    font-size: 1.5rem; text-align: right; margin-bottom: 10px;
    line-height: 1.8; color: #2d3436; font-family: 'Amiri', serif;
}
.fa-chevron-down.open { transform: rotate(180deg); }

/* =========================================
   6. HALAMAN JADWAL SHOLAT
   ========================================= */
.jadwal-hero {
    background: linear-gradient(135deg, #0f5132, #198754);
    border-radius: 20px; padding: 25px 20px; color: white;
    text-align: center; box-shadow: 0 10px 25px rgba(25, 135, 84, 0.25);
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.jadwal-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.location-badge {
    background: rgba(255, 255, 255, 0.2); display: inline-flex;
    align-items: center; gap: 8px; padding: 6px 15px;
    border-radius: 20px; font-size: 0.85rem; backdrop-filter: blur(5px);
    cursor: pointer; transition: background 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}
.location-badge:active { background: rgba(255, 255, 255, 0.3); }

.timer-section { margin-top: 20px; }
.next-label { font-size: 0.9rem; opacity: 0.9; margin-bottom: 5px; }
#countdown-timer {
    font-size: 2.8rem; font-weight: 700; line-height: 1;
    margin-bottom: 8px; font-family: monospace; letter-spacing: -2px;
}
.date-label { font-size: 0.8rem; opacity: 0.8; }

.prayer-list-container { display: flex; flex-direction: column; gap: 10px; }
.prayer-item {
    background: white; border: 1px solid #f0f0f0;
    padding: 15px; border-radius: 12px; display: flex;
    justify-content: space-between; align-items: center; transition: all 0.2s;
}
.prayer-item.passed { background: #fcfcfc; border-color: #f0f0f0; opacity: 0.6; }
.prayer-item.active {
    background: #f0fdf4; border-color: #00b894; transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.1);
}
.prayer-name { font-weight: 600; color: #2d3436; display: flex; align-items: center; gap: 10px; }
.prayer-time { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: #2d3436; }
.prayer-item.active .prayer-time { color: #00b894; }

/* Modal Styling */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 2000;
    align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.modal-content {
    background: white; width: 90%; max-width: 400px; height: 80vh;
    border-radius: 20px; display: flex; flex-direction: column;
    overflow: hidden; animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
    padding: 15px 20px; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.close-btn { background: none; border: none; font-size: 1.2rem; color: #666; cursor: pointer; }
.search-box { padding: 15px; position: relative; }
.search-box i { position: absolute; left: 30px; top: 50%; transform: translateY(-50%); color: #aaa; }
.search-box input {
    width: 100%; padding: 12px 15px 12px 40px; border: 1px solid #ddd;
    border-radius: 10px; background: #f9f9f9; font-size: 0.95rem; outline: none;
}
.search-box input:focus { border-color: #00b894; background: white; }
.city-list { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
.city-item { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; cursor: pointer; font-size: 0.9rem; }
.city-item:hover { background: #f0fdf4; color: #00b894; }
.loading-state { text-align: center; padding: 30px; color: #888; }

/* =========================================
   7. HALAMAN WATCH (Video Detail)
   ========================================= */
.ad-banner-top {
    background: #eee; padding: 15px; text-align: center; 
    margin-bottom: 20px; border-radius: 8px; color: #999;
    min-height: 100px; display: flex; align-items: center; justify-content: center;
}

.promo-container { margin-bottom: 25px; }
.promo-label { font-size: 0.8rem; color: #7f8c8d; margin-bottom: 8px; display: block; }

.promo-grid { display: grid; gap: 10px; }
.promo-grid.one-col { grid-template-columns: 1fr; }
.promo-grid.one-col .promo-item { display: flex; align-items: center; text-align: left; }
.promo-grid.one-col img { width: 70px; height: 70px; margin-right: 15px; }

.promo-grid.two-col { grid-template-columns: 1fr 1fr; }
.promo-grid.two-col .promo-item { flex-direction: column; text-align: center; }
.promo-grid.two-col img { width: 100%; height: 120px; margin-bottom: 10px; }

.promo-item {
    background: white; border: 1px solid #eee; padding: 10px; 
    border-radius: 10px; text-decoration: none; color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); display: block;
}
.promo-item h4 { font-size: 0.85rem; margin-bottom: 5px; line-height: 1.3; }
.promo-item img { object-fit: cover; border-radius: 5px; }
.btn-cek { font-size: 0.7rem; color: #e67e22; border: 1px solid #e67e22; padding: 3px 10px; border-radius: 15px; display: inline-block; }

.article-box { font-size: 1rem; line-height: 1.8; color: #444; margin-bottom: 100px; }
.article-header { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.article-header h1 { font-size: 1.3rem; margin-bottom: 5px; color: #2d3436; }
.article-header span { color: #00b894; font-weight: 600; font-size: 0.9rem; }

.sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0;
    /* Glassmorphism Background */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.5);
    padding: 15px 20px 20px; /* Padding bawah agak besar utk iPhone home bar */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    z-index: 999;
    max-width: 480px; margin: 0 auto;
}

.sticky-cta p {
    text-align: center; font-size: 0.75rem; 
    color: #636e72; margin-bottom: 10px; font-weight: 500;
}

.btn-premium {
    width: 100%;
    /* Gradient YouTube Premium */
    background: linear-gradient(135deg, #ff0000 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    /* Efek Glow Halus */
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

/* Efek Kilau (Shimmer) */
.btn-premium::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-premium:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* =========================================
   STYLE TAMBAHAN: DONASI BUTTONS
   ========================================= */
.donation-box {
    text-align: center;
    margin-top: 30px;
    padding: 20px 15px;
    background: #fdf2f8; /* Background pink sangat muda */
    border-radius: 12px;
    border: 1px dashed #fbcfe8;
}

.donation-text {
    font-size: 0.85rem;
    color: #831843;
    margin-bottom: 12px;
    font-weight: 500;
}

.donation-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-donate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px; /* Rounded pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-donate:hover {
    transform: translateY(-3px);
}

/* Warna Brand */
.saweria {
    background: #fbbf24; /* Kuning Saweria */
    color: #78350f;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}

.trakteer {
    background: #be185d; /* Merah Trakteer */
    color: white;
    box-shadow: 0 4px 10px rgba(190, 24, 93, 0.3);
}