/* =============================================
   Imanuel Jakarta Church - Custom Styles
   ============================================= */

:root {
    --primary: #1a3a6b;
    --primary-dark: #0f2248;
    --primary-light: #2a5ab0;
    --accent: #d4af37;
    --accent-dark: #b8961e;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
}

/* ---- General ---- */
body { font-family: 'Segoe UI', sans-serif; color: #333; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

/* ---- Navbar ---- */
.navbar-brand { font-weight: 700; font-size: 1.4rem; color: var(--primary) !important; }
.navbar { box-shadow: 0 2px 10px rgba(0,0,0,0.08); background: #fff; }
.nav-link { color: var(--primary) !important; font-weight: 500; padding: 0.5rem 0.8rem !important; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent) !important; }
.navbar-toggler { border-color: var(--primary); }

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a5276 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/images/hero-pattern.svg') center/cover;
    opacity: 0.05;
}
.hero-section h1 { font-size: 3rem; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.hero-section p { font-size: 1.2rem; opacity: 0.9; }
.btn-gold { background: var(--accent); color: var(--primary-dark); font-weight: 700; border: none; }
.btn-gold:hover { background: var(--accent-dark); color: var(--primary-dark); }
.btn-outline-gold { border: 2px solid var(--accent); color: var(--accent); font-weight: 700; }
.btn-outline-gold:hover { background: var(--accent); color: var(--primary-dark); }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.section-header .divider {
    width: 60px; height: 3px;
    background: var(--accent);
    margin: 0.8rem auto;
}
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ---- Cards ---- */
.card { border: none; box-shadow: 0 3px 15px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; border-radius: 12px; overflow: hidden; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.card-img-top { height: 200px; object-fit: cover; }
.card-title { color: var(--primary); font-weight: 600; }

/* ---- Announcement Banner ---- */
.announcement-banner { background: var(--accent); color: var(--primary-dark); padding: 0.6rem 0; }
.announcement-banner .announcement-text { font-weight: 600; font-size: 0.9rem; }

/* ---- Sermon Cards ---- */
.sermon-card { border-left: 4px solid var(--accent); }
.sermon-card .badge-speaker { background: var(--primary); color: white; font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 20px; }

/* ---- Event Cards ---- */
.event-date-badge { background: var(--primary); color: white; border-radius: 8px; text-align: center; padding: 0.5rem 0.8rem; min-width: 60px; }
.event-date-badge .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-badge .month { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }

/* ---- Ministry Cards ---- */
.ministry-icon { width: 70px; height: 70px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1rem; }

/* ---- Service Times ---- */
.service-time-card { background: white; border-radius: 12px; padding: 1.5rem; box-shadow: 0 3px 15px rgba(0,0,0,0.08); text-align: center; }
.service-time-card .service-type { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.service-time-card .service-time { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

/* ---- Footer ---- */
footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 3rem 0 1rem; }
footer h5 { color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
footer a:hover { color: var(--accent); }
footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
footer .social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: white; margin-right: 0.5rem; transition: all 0.2s; }
footer .social-icons a:hover { background: var(--accent); color: var(--primary-dark); }

/* ---- Admin Sidebar ---- */
.admin-sidebar { background: var(--primary); min-height: 100vh; width: 250px; position: fixed; top: 0; left: 0; padding-top: 60px; }
.admin-sidebar .nav-link { color: rgba(255,255,255,0.75); padding: 0.6rem 1.2rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { color: white; background: rgba(255,255,255,0.1); }
.admin-sidebar .nav-link i { width: 20px; }
.admin-sidebar-header { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-header .brand { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.admin-content { margin-left: 250px; padding: 1.5rem; }
.admin-topbar { background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 0.75rem 1.5rem; position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; }

/* ---- Dashboard Stats Cards ---- */
.stat-card { border-radius: 12px; color: white; padding: 1.5rem; }
.stat-card.blue { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.stat-card.gold { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); color: var(--primary-dark); }
.stat-card.green { background: linear-gradient(135deg, #1a6b3a, #28a745); }
.stat-card.red { background: linear-gradient(135deg, #8b1a1a, #dc3545); }
.stat-card .stat-number { font-size: 2.5rem; font-weight: 700; }
.stat-card .stat-label { opacity: 0.85; font-size: 0.9rem; }

/* ---- Tables ---- */
.table-hover tbody tr:hover { background-color: rgba(26, 58, 107, 0.04); }
.badge-status-active { background: #28a745; }
.badge-status-inactive { background: #6c757d; }
.badge-status-locked { background: #dc3545; }

/* ---- Forms ---- */
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 0.2rem rgba(26, 58, 107, 0.15); }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ---- Gallery ---- */
.gallery-img { width: 100%; height: 220px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.2s; }
.gallery-img:hover { transform: scale(1.03); }

/* ---- Livestream ---- */
.livestream-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; }
.livestream-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.no-livestream { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 80px 40px; border-radius: 12px; text-align: center; }

/* ---- Prayer / Contact Forms ---- */
.form-page-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 60px 0; text-align: center; }
.form-card { border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .hero-section { padding: 60px 0; }
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; }
}
