/* Ramadan Calendar Content — scoped under .rc- prefix */

/* ── Tab Navigation ── */
.rc-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #f8f9fa;
  border-bottom: 2px solid #e5e7eb;
  padding: 0;
  margin: 0 0 1.5rem;
  border-radius: 8px 8px 0 0;
}
.rc-nav::-webkit-scrollbar { display: none; }

.rc-nav a {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.rc-nav a:hover { color: #1e6b3a; }
.rc-nav a.rc-nav-active {
  color: #1e6b3a;
  border-bottom-color: #1e6b3a;
}

/* ── Wrapper ── */
.rc-wrapper {
  margin: 1.5rem 0;
}

/* ── Country Badge ── */
.rc-country-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #065f46;
  margin-bottom: 1rem;
}
.rc-country-badge.rc-hidden { display: none; }

/* ── Calendar Variant Tabs ── */
.rc-calendar-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.rc-cal-tab {
  padding: 0.5rem 1rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.rc-cal-tab:hover {
  border-color: #1e6b3a;
  color: #1e6b3a;
}
.rc-cal-tab.rc-cal-tab-active {
  background: #1e6b3a;
  border-color: #1e6b3a;
  color: #fff;
}

/* ── Calendar Table ── */
.rc-calendar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.rc-calendar-table thead th {
  padding: 0.75rem 0.5rem;
  background: #1e6b3a;
  color: #fff;
  font-weight: 600;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rc-calendar-table tbody td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}
.rc-calendar-table tbody tr:hover {
  background: #f0fdf4;
}
.rc-calendar-table tbody tr.rc-today {
  background: #ecfdf5;
  border-left: 3px solid #1e6b3a;
  font-weight: 600;
}
.rc-calendar-table tbody tr.rc-today td:first-child::before {
  content: "▶ ";
  color: #1e6b3a;
}
.rc-calendar-table tbody tr.rc-eid {
  background: #fef3c7;
  font-weight: 700;
}
.rc-calendar-table .rc-special-link {
  color: #1e6b3a;
  text-decoration: none;
  font-weight: 500;
}
.rc-calendar-table .rc-special-link:hover {
  text-decoration: underline;
}
.rc-calendar-table .rc-laylat {
  color: #b45309;
  font-weight: 700;
}

/* ── Announcement Cards ── */
.rc-announcement-section {
  margin-bottom: 1.5rem;
}
.rc-announcement-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #111827;
}
.rc-announcement-section .rc-group-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
}
.rc-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.rc-country-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}
.rc-country-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rc-country-flag {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.rc-country-info {
  min-width: 0;
}
.rc-country-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
}
.rc-country-authority {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.15rem;
}
.rc-country-source {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.rc-country-source a {
  color: #1e6b3a;
  text-decoration: none;
}
.rc-country-source a:hover {
  text-decoration: underline;
}

/* Feb18 group accent */
.rc-group-feb18 { border-left: 3px solid #1e6b3a; padding-left: 1rem; }
/* Feb19 group accent */
.rc-group-feb19 { border-left: 3px solid #2563eb; padding-left: 1rem; }
/* Pending group accent */
.rc-group-pending { border-left: 3px solid #d97706; padding-left: 1rem; }

/* ── Switch Link ── */
.rc-switch-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}
.rc-switch-link:hover { color: #1e6b3a; }

/* ── Download CTA ── */
.rc-download-cta {
  background: linear-gradient(135deg, #065f46, #1e6b3a);
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
}
.rc-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.rc-cta-text {
  flex: 1;
  min-width: 0;
}
.rc-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.rc-cta-subtitle {
  font-size: 0.9rem;
  color: #a7f3d0;
  margin: 0;
}
.rc-cta-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
}
.rc-city-select {
  min-width: 220px;
  padding: 0.6rem 0.75rem;
  border: 2px solid #a7f3d0;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}
.rc-city-select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}
.rc-download-btn {
  padding: 0.6rem 1.25rem;
  background: #fbbf24;
  color: #1e2332;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rc-download-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}
.rc-download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rc-cta-note {
  font-size: 0.8rem;
  color: #d1fae5;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
}

/* ── Subscribe CTA ── */
.rc-subscribe-cta {
  background: linear-gradient(135deg, #92400e, #b45309);
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
}
.rc-subscribe-inner {
  text-align: center;
}
.rc-subscribe-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 0.25rem;
}
.rc-subscribe-subtitle {
  font-size: 0.875rem;
  color: #fde68a;
  margin: 0 0 1rem;
}
.rc-subscribe-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}
.rc-subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
  outline: none;
}
.rc-subscribe-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.rc-subscribe-btn {
  padding: 0.6rem 1.25rem;
  background: #fbbf24;
  color: #1e2332;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rc-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251,191,36,0.4);
}
.rc-subscribe-msg {
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
  min-height: 1.2em;
  color: #fde68a;
}

/* ── Countdown Widget ── */
.rc-countdown-widget {
  background: linear-gradient(135deg, #064e3b, #065f46);
  border-radius: 12px;
  padding: 1.5rem;
  color: #fff;
  text-align: center;
}
.rc-countdown-header {
  margin-bottom: 1rem;
}
.rc-countdown-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #a7f3d0;
  margin: 0 0 0.25rem;
}
.rc-countdown-location {
  font-size: 0.85rem;
  color: #6ee7b7;
  margin: 0;
}
.rc-countdown-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.rc-countdown-card {
  flex: 1;
  max-width: 200px;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
}
.rc-card-suhoor {
  background: rgba(147,197,253,0.15);
  border: 1px solid rgba(147,197,253,0.3);
}
.rc-card-iftar {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.3);
}
.rc-cd-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #d1fae5;
  margin-bottom: 0.35rem;
}
.rc-cd-time {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}
.rc-card-suhoor .rc-cd-time { color: #93c5fd; }
.rc-card-iftar .rc-cd-time { color: #fbbf24; }
.rc-countdown-timer {
  margin-top: 0.5rem;
}
.rc-cd-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a7f3d0;
  margin-bottom: 0.35rem;
}
.rc-cd-digits {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.rc-cd-digit {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #fff;
  background: rgba(0,0,0,0.25);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  min-width: 2.5rem;
  text-align: center;
}
.rc-cd-sep {
  font-size: 2rem;
  font-weight: 700;
  color: #6ee7b7;
  padding: 0 0.15rem;
}

/* ── Explore Cards ── */
.rc-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}
.rc-explore-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.rc-explore-card:hover {
  border-color: #1e6b3a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.rc-explore-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}
.rc-explore-body {
  min-width: 0;
}
.rc-explore-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e6b3a;
  margin: 0 0 0.2rem;
}
.rc-explore-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* ── Eid Card Hero CTA ── */
.rc-eid-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rc-eid-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}
.rc-eid-hero-content {
  min-width: 0;
}
.rc-eid-hero-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fbbf24;
  color: #1e2332;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}
.rc-eid-hero-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0.25rem 0 0.2rem;
  line-height: 1.3;
}
.rc-eid-hero-subtitle {
  font-size: 0.85rem;
  color: #e9d5ff;
  margin: 0;
}
.rc-eid-hero-arrow {
  font-size: 1.5rem;
  flex-shrink: 0;
  opacity: 0.8;
  transition: transform 0.15s;
}
.rc-eid-hero:hover .rc-eid-hero-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* dark */
.dark .rc-eid-hero {
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
}
.dark .rc-eid-hero:hover {
  box-shadow: 0 6px 20px rgba(109, 40, 217, 0.4);
}

@media (max-width: 768px) {
  .rc-eid-hero {
    padding: 1rem 1.25rem;
  }
  .rc-eid-hero-title {
    font-size: 1rem;
  }
}

/* ── Utility ── */
.rc-hidden { display: none !important; }

/* ── Dark Mode ── */
.dark .rc-nav {
  background: #1f2937;
  border-bottom-color: #374151;
}
.dark .rc-nav a { color: #9ca3af; }
.dark .rc-nav a:hover { color: #6ee7b7; }
.dark .rc-nav a.rc-nav-active {
  color: #6ee7b7;
  border-bottom-color: #6ee7b7;
}
.dark .rc-country-badge {
  background: #064e3b;
  border-color: #065f46;
  color: #a7f3d0;
}
.dark .rc-cal-tab {
  background: #1f2937;
  border-color: #4b5563;
  color: #d1d5db;
}
.dark .rc-cal-tab:hover {
  border-color: #6ee7b7;
  color: #6ee7b7;
}
.dark .rc-cal-tab.rc-cal-tab-active {
  background: #065f46;
  border-color: #065f46;
  color: #ecfdf5;
}
.dark .rc-calendar-table thead th {
  background: #065f46;
}
.dark .rc-calendar-table tbody td {
  border-bottom-color: #374151;
}
.dark .rc-calendar-table tbody tr:hover {
  background: #064e3b33;
}
.dark .rc-calendar-table tbody tr.rc-today {
  background: #064e3b;
  border-left-color: #6ee7b7;
}
.dark .rc-calendar-table tbody tr.rc-eid {
  background: #78350f;
}
.dark .rc-country-card {
  background: #1f2937;
  border-color: #374151;
}
.dark .rc-country-name { color: #f3f4f6; }
.dark .rc-country-authority { color: #9ca3af; }
.dark .rc-country-source a { color: #6ee7b7; }
.dark .rc-announcement-section h3 { color: #f3f4f6; }
.dark .rc-announcement-section .rc-group-subtitle { color: #9ca3af; }
.dark .rc-special-link { color: #6ee7b7; }
.dark .rc-laylat { color: #fbbf24; }
.dark .rc-download-cta {
  background: linear-gradient(135deg, #0f2b1d, #1a3c2a);
}
.dark .rc-city-select {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}
.dark .rc-city-select:focus {
  border-color: #fbbf24;
}
.dark .rc-subscribe-cta {
  background: linear-gradient(135deg, #78350f, #92400e);
}
.dark .rc-subscribe-input {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #d97706;
}
.dark .rc-countdown-widget {
  background: linear-gradient(135deg, #022c22, #064e3b);
}
.dark .rc-explore-card {
  background: #1f2937;
  border-color: #374151;
}
.dark .rc-explore-card:hover {
  border-color: #6ee7b7;
}
.dark .rc-explore-title { color: #6ee7b7; }
.dark .rc-explore-subtitle { color: #9ca3af; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .rc-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .rc-cta-controls {
    flex-direction: column;
    width: 100%;
  }
  .rc-city-select {
    width: 100%;
    min-width: 0;
  }
  .rc-download-btn {
    width: 100%;
    padding: 0.75rem;
  }
  .rc-nav a {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
  }
  .rc-country-grid {
    grid-template-columns: 1fr;
  }
  .rc-calendar-table {
    font-size: 0.8rem;
  }
  .rc-calendar-table thead th,
  .rc-calendar-table tbody td {
    padding: 0.5rem 0.35rem;
  }
  .rc-subscribe-form {
    flex-direction: column;
  }
  .rc-subscribe-btn {
    width: 100%;
    padding: 0.75rem;
  }
  .rc-countdown-cards {
    flex-direction: column;
    align-items: center;
  }
  .rc-countdown-card {
    max-width: 100%;
    width: 100%;
  }
  .rc-cd-digit {
    font-size: 1.5rem;
    min-width: 2rem;
    padding: 0.2rem 0.4rem;
  }
  .rc-cd-sep {
    font-size: 1.5rem;
  }
  .rc-explore-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .rc-nav a {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }
  .rc-calendar-table {
    font-size: 0.75rem;
  }
}

/* ── Sticky Explore Bar ── */
.rc-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0F1F3D;
  border-top: 1px solid rgba(212,169,65,0.35);
  padding: 0.65rem 1rem;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}
.rc-sticky-bar.rc-sticky-visible {
  transform: translateY(0);
}
.rc-sticky-bar.rc-sticky-dismissed {
  display: none !important;
}
.rc-sticky-label {
  font-size: 0.72rem;
  color: #94A3B8;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.rc-sticky-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 1;
}
.rc-sticky-link {
  background: rgba(212,169,65,0.1);
  border: 1px solid rgba(212,169,65,0.3);
  color: #D4A941;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}
.rc-sticky-link:hover {
  background: rgba(212,169,65,0.2);
  border-color: rgba(212,169,65,0.5);
  color: #D4A941;
  text-decoration: none;
}
.rc-sticky-dismiss {
  background: none;
  border: none;
  color: #6B7280;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.rc-sticky-dismiss:hover { color: #94A3B8; }
@media (max-width: 640px) {
  .rc-sticky-bar { padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .rc-sticky-label { display: none; }
  .rc-sticky-link { font-size: 0.72rem; padding: 0.28rem 0.55rem; }
}
