/* =============================================
   GATIK - GEREJA AMBON MALUKU
   Main Stylesheet
   ============================================= */

:root {
  --primary: #1a56db;
  --primary-dark: #1342b3;
  --primary-light: #93c5fd;
  --accent: #0ea5e9;
  --gold: #f59e0b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --dark3: #334155;
  --text: #374151;
  --muted: #6b7280;
  --light: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  --shadow: 0 4px 20px rgba(26, 86, 219, 0.12);
  --shadow-lg: 0 10px 40px rgba(26, 86, 219, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Playfair Display', serif;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ===== NAVBAR ===== */
#mainNavbar {
  background: rgba(15, 23, 42, 0.0);
  backdrop-filter: blur(0px);
  transition: all 0.4s ease;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
}

#mainNavbar.scrolled {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.brand-icon {
  width: 42px; height: 42px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: white;
  box-shadow: 0 4px 12px rgba(26,86,219,0.4);
}

.brand-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; line-height: 1.1; color: white; }
.brand-sub { font-size: 0.65rem; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }

.nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 14px !important;
  border-radius: 8px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: white !important;
  background: rgba(255,255,255,0.1);
}

/* ===== HERO SLIDER ===== */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') center/cover;
  animation: slowRotate 40s linear infinite;
}

@keyframes slowRotate { to { transform: rotate(360deg); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.7; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.btn-hero-primary {
  background: var(--gradient);
  color: white; border: none;
  padding: 13px 28px; border-radius: 12px;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(26,86,219,0.4); color: white; }

.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: white; border: 1px solid rgba(255,255,255,0.25);
  padding: 13px 28px; border-radius: 12px;
  font-weight: 600; font-size: 0.92rem;
  transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.2); color: white; }

.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num { font-size: 1.8rem; font-weight: 700; color: white; font-family: 'Playfair Display', serif; }
.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); letter-spacing: 0.5px; text-transform: uppercase; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.hero-cross {
  width: 280px; height: 280px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: floatUpDown 4s ease-in-out infinite;
  position: relative;
}

.hero-cross::before {
  content: '';
  position: absolute;
  width: 340px; height: 340px;
  border: 1px solid rgba(26,86,219,0.2);
  border-radius: 50%;
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes floatUpDown { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes pulse-ring { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.3;transform:scale(1.1)} }

.cross-icon { font-size: 6rem; color: rgba(255,255,255,0.9); text-shadow: 0 0 40px rgba(26,86,219,0.5); }

/* ===== SECTION STYLES ===== */
.section-badge {
  display: inline-block;
  background: rgba(26,86,219,0.1);
  color: var(--primary);
  border: 1px solid rgba(26,86,219,0.2);
  padding: 4px 14px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--dark);
  margin-bottom: 12px;
}

.section-desc { color: var(--muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }

section { padding: 80px 0; }

/* ===== CARDS ===== */
.card-modern {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26,86,219,0.2);
}

.card-img-wrap {
  position: relative; overflow: hidden;
  background: var(--light);
}

.card-img-wrap img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-modern:hover .card-img-wrap img { transform: scale(1.06); }

.card-img-placeholder {
  width: 100%; height: 220px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,0.4);
}

.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: white;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
}

.card-body-content { padding: 20px; }
.card-date { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-title-link { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--dark); display: block; margin: 8px 0; }
.card-title-link:hover { color: var(--primary); }
.card-excerpt { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.card-footer-link { padding: 14px 20px; border-top: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; justify-content: space-between; }
.card-footer-link:hover { background: rgba(26,86,219,0.04); }

/* ===== BUTTONS ===== */
.btn-primary-custom {
  background: var(--gradient); border: none; color: white;
  padding: 11px 24px; border-radius: 10px;
  font-weight: 600; font-size: 0.88rem;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(26,86,219,0.25);
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: white; }

.btn-outline-custom {
  border: 2px solid var(--primary); color: var(--primary);
  padding: 9px 22px; border-radius: 10px;
  font-weight: 600; font-size: 0.88rem;
  background: transparent; transition: var(--transition);
}
.btn-outline-custom:hover { background: var(--primary); color: white; }

/* ===== VIDEO CARD ===== */
.video-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: var(--transition); height: 100%;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.video-thumb { position: relative; overflow: hidden; }
.video-thumb img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; background: rgba(26,86,219,0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.3rem; transition: var(--transition);
  box-shadow: 0 0 0 8px rgba(26,86,219,0.2);
}
.video-card:hover .play-btn { background: var(--primary); box-shadow: 0 0 0 12px rgba(26,86,219,0.2); }

/* ===== GALERI ===== */
.galeri-grid { columns: 3; column-gap: 16px; }
.galeri-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; position: relative; }
.galeri-item img { width: 100%; display: block; transition: transform 0.4s ease; }
.galeri-item:hover img { transform: scale(1.05); }
.galeri-overlay {
  position: absolute; inset: 0;
  background: rgba(26,86,219,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  color: white; font-size: 1.5rem;
}
.galeri-item:hover .galeri-overlay { opacity: 1; }

@media (max-width: 768px) { .galeri-grid { columns: 2; } }
@media (max-width: 480px) { .galeri-grid { columns: 1; } }

/* ===== TEAM CARD ===== */
.team-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  text-align: center; transition: var(--transition); height: 100%;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card-img-wrap { position: relative; overflow: hidden; }
.team-card-img-wrap img { width: 100%; height: 240px; object-fit: cover; }
.team-card-body { padding: 20px; }
.team-card-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--dark); }
.team-card-role { font-size: 0.78rem; color: var(--primary); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.team-card-divisi { font-size: 0.8rem; color: var(--muted); }

/* ===== PROFIL / TENTANG ===== */
.about-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-wrap img { width: 100%; height: 400px; object-fit: cover; }

.visi-misi-card {
  background: var(--gradient); color: white;
  border-radius: var(--radius); padding: 32px;
  height: 100%;
}
.visi-misi-card h5 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 16px; }

/* ===== WARTA CARD ===== */
.warta-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; transition: var(--transition); height: 100%; }
.warta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.warta-type-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.warta-type-text { background: rgba(26,86,219,0.1); color: var(--primary); }
.warta-type-pdf { background: rgba(239,68,68,0.1); color: #dc2626; }
.warta-type-video { background: rgba(14,165,233,0.1); color: #0284c7; }
.warta-type-youtube { background: rgba(239,68,68,0.1); color: #dc2626; }

/* ===== PAGINATION ===== */
.pagination .page-link { border-radius: 8px; border: 1px solid var(--border); color: var(--primary); margin: 0 2px; font-weight: 500; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-link:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== BREADCRUMB ===== */
.page-hero {
  background: var(--gradient-dark);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,86,219,0.2) 0%, transparent 100%);
}
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); color: white; font-weight: 700; }
.breadcrumb-item a { color: rgba(255,255,255,0.7); }
.breadcrumb-item.active { color: white; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); }
.footer-top { padding: 60px 0 40px; }
.footer-heading { color: white; font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-links li:not(:has(a)) { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom span { color: rgba(255,255,255,0.5); }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.95rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.text-primary-light { color: var(--primary-light); }

/* ===== ADMIN STYLES ===== */
.admin-sidebar {
  width: 260px; min-height: 100vh;
  background: var(--dark);
  position: fixed; left: 0; top: 0; z-index: 1000;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand { font-family: 'Playfair Display', serif; color: white; font-size: 1.1rem; font-weight: 700; }
.admin-brand-sub { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; }
.admin-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.admin-nav-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 12px 8px 6px; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255,255,255,0.65); font-size: 0.87rem; font-weight: 500;
  margin-bottom: 2px; transition: var(--transition);
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(26,86,219,0.25);
  color: white;
}
.admin-nav-link.active { background: var(--primary); color: white; }
.admin-nav-link i { font-size: 1rem; width: 20px; text-align: center; }

.admin-content { margin-left: 260px; min-height: 100vh; background: #f1f5f9; }
.admin-topbar {
  background: white; padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.admin-page-content { padding: 28px; }

.stat-card {
  background: white; border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border);
  transition: var(--transition); height: 100%;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.stat-num { font-size: 2rem; font-weight: 700; color: var(--dark); font-family: 'Playfair Display', serif; }
.stat-label { font-size: 0.8rem; color: var(--muted); font-weight: 500; }

.admin-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.admin-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h5 { font-weight: 700; color: var(--dark); margin: 0; font-size: 1rem; }
.admin-card-body { padding: 24px; }

.form-label { font-weight: 600; font-size: 0.85rem; color: var(--dark); margin-bottom: 6px; }
.form-control, .form-select {
  border-radius: 10px; border: 1.5px solid var(--border);
  padding: 10px 14px; font-size: 0.9rem;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.table th { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); background: var(--light); }
.table td { font-size: 0.88rem; vertical-align: middle; }
.table tbody tr:hover { background: rgba(26,86,219,0.03); }

.badge-status-publish { background: rgba(16,185,129,0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }
.badge-status-draft { background: rgba(245,158,11,0.1); color: #d97706; border: 1px solid rgba(245,158,11,0.2); padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }

/* Hamburger admin toggle */
.admin-sidebar-toggle { display: none; }
@media (max-width: 992px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-sidebar-toggle { display: flex; }
}

/* ===== SEARCH BOX ===== */
.search-box { position: relative; }
.search-box input { padding-left: 44px; border-radius: 12px; }
.search-box .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ===== LOGIN/REGISTER ===== */
.auth-section { min-height: 100vh; background: var(--gradient-dark); display: flex; align-items: center; justify-content: center; padding: 80px 20px; }
.auth-card { background: white; border-radius: 24px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); max-width: 440px; width: 100%; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; text-align: center; color: var(--dark); margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 28px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero-section { min-height: auto; padding: 120px 0 80px; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }
}

/* ===== UTILITIES ===== */
.bg-gradient-primary { background: var(--gradient) !important; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.glassmorphism { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
