/* eNadapuram.com - Common Styles */
:root {
  --green: #1a6b3c;
  --green-light: #2d9a5a;
  --green-dark: #0f3d22;
  --gold: #e8a020;
  --gold-light: #f5c060;
  --cream: #fdf8f0;
  --white: #ffffff;
  --gray: #f4f4f4;
  --text: #1a1a1a;
  --text-muted: #555;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(26,107,60,0.13);
  --shadow-hover: 0 8px 32px rgba(26,107,60,0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans Malayalam', 'Baloo Chettan 2', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  padding-bottom: 70px;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  max-width: 480px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--green-dark);
  font-family: 'Baloo Chettan 2', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  font-family: 'Baloo Chettan 2', sans-serif;
  line-height: 1.1;
}
.logo-sub {
  font-size: 10px;
  color: var(--gold-light);
  font-weight: 500;
}
.header-time {
  text-align: right;
}
#clock {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Baloo Chettan 2', sans-serif;
}
#date-display {
  font-size: 10px;
  color: rgba(255,255,255,0.75);
}

/* PRAYER STRIP */
.prayer-strip {
  background: var(--gold);
  padding: 10px 16px;
}
.prayer-inner {
  max-width: 480px;
  margin: 0 auto;
}
.prayer-strip h2 {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.prayer-times {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.prayer-item {
  flex: 1;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  padding: 6px 4px;
  text-align: center;
}
.prayer-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
}
.prayer-time-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--green-dark);
  font-family: 'Baloo Chettan 2', sans-serif;
}

/* MAIN CONTENT */
main {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 14px;
  min-height: 60vh;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-dark);
  font-family: 'Baloo Chettan 2', sans-serif;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); }
.card-header {
  background: linear-gradient(90deg, var(--green), var(--green-light));
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-header-icon {
  font-size: 22px;
}
.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  font-family: 'Baloo Chettan 2', sans-serif;
}
.card-body {
  padding: 14px 16px;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0f0;
}
.info-row:last-child { border-bottom: none; }
.info-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.info-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}
.info-value a {
  color: var(--green);
  text-decoration: none;
}
.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: white;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.call-btn:hover { background: var(--green-light); }

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  z-index: 99;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  padding: 0 12px;
  transition: color 0.2s;
}
.nav-item.active, .nav-item:hover { color: var(--green); }
.nav-icon { font-size: 20px; }

/* FOOTER */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  margin-top: 20px;
}
footer strong {
  color: var(--gold);
  font-family: 'Baloo Chettan 2', sans-serif;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 11px;
}
.footer-links a:hover { color: var(--gold); }

/* BADGE */
.badge {
  background: var(--gold);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 6px;
}

/* UTILITIES */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }

/* ANIMATION */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .section-title {
  animation: fadeUp 0.5s ease both;
}