/* css/components.css */

/* --- 1. KARTU DASAR --- */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* --- BARU: KARTU GRADIENT (Untuk Jadwal Sholat) --- */
.prayer-card-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, #064e3b 100%);
    color: white !important;
    border: none;
    box-shadow: 0 10px 25px rgba(15, 81, 50, 0.4);
}

/* Pastikan semua teks di dalam kartu gradient berwarna putih */
.prayer-card-gradient h1,
.prayer-card-gradient h3,
.prayer-card-gradient p,
.prayer-card-gradient i,
.prayer-card-gradient div {
    color: white !important;
}

/* --- 2. HEADER SECTION --- */
.header-section {
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.header-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.header-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SEARCH BAR FIX */
#search-surah {
    margin-bottom: 30px !important;
    margin-top: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: none;
}
#search-surah:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

/* --- 3. BUTTONS --- */
.btn {
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-latin);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
}
.btn-secondary {
    background-color: var(--bg-body);
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.1);
}
.btn-circle {
    width: 45px; height: 45px;
    border-radius: 50%; padding: 0;
    display: flex; justify-content: center; align-items: center;
}
.btn-circle i { margin: 0; transform: translateX(1px); }

/* --- 4. KOMPAS KIBLAT --- */
.compass-container {
    background: var(--bg-card);
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    margin-top: 20px;
}

.compass-dial {
    width: 240px; height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    border: 8px solid #f0f0f0;
    background: white;
    position: relative;
    transition: transform 0.1s linear;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}
[data-theme="dark"] .compass-dial {
    background: #2d2d2d; border-color: #444;
}

.compass-label {
    position: absolute; font-weight: bold; font-size: 1.1rem; color: #999;
}
.label-n { top: 15px; left: 50%; transform: translateX(-50%); color: #dc3545; }
.label-s { bottom: 15px; left: 50%; transform: translateX(-50%); }
.label-e { right: 15px; top: 50%; transform: translateY(-50%); }
.label-w { left: 15px; top: 50%; transform: translateY(-50%); }

.kaaba-icon {
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin-left: -20px; 
    margin-top: -100px; 
    transform-origin: 20px 100px;
    z-index: 10;
    font-size: 35px;
    color: #000;
    display: flex; justify-content: center; align-items: center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.fixed-pointer {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 12px solid transparent; border-right: 12px solid transparent;
    border-top: 18px solid var(--accent-color);
    z-index: 20;
}

/* --- 5. NAVBAR & MODAL --- */
.navbar {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    width: 90%; max-width: 400px; padding: 12px 20px;
    border-radius: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border: 1px solid rgba(255,255,255,0.5);
}
[data-theme="dark"] .navbar { background: rgba(30, 30, 30, 0.9); border-color: rgba(255,255,255,0.1); }

.nav-item { color: var(--text-muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; transition: 0.3s; }
.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
.nav-item.active { color: var(--primary-color); transform: translateY(-2px); }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(3px);
    display: flex; justify-content: center; align-items: center; z-index: 2000;
    opacity: 0; pointer-events: none; transition: 0.3s;
}
.modal-overlay:not(.hidden) { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--bg-card); padding: 30px; border-radius: 20px; width: 85%; max-width: 320px; text-align: center; transform: scale(0.9); transition: 0.3s; }
.modal-overlay:not(.hidden) .modal-box { transform: scale(1); }
