/* ==========================================================================
   Christ Telugu Promise Calendar - Modern Professional Stylesheet
   ========================================================================== */

:root {
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --primary-dark: #0f172a;
  --primary-accent: #7f1d1d;
  --brand-crimson: #881337;
  --brand-indigo: #1e1b4b;
  --gold-bright: #f59e0b;
  --gold-main: #d97706;
  --gold-soft: #fef3c7;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-poster: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Telugu', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.telugu-text {
  font-family: 'Noto Sans Telugu', 'Mandali', sans-serif;
}

/* Modern Top Navigation Header */
.site-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #4c0519 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
}

.cross-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.brand-titles h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.brand-titles p {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.38);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 28px auto 60px;
  padding: 0 24px;
}

/* QR Arrival Notice Banner */
.qr-scan-toast {
  background: linear-gradient(135deg, #065f46, #047857);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(4, 120, 87, 0.2);
}

/* Month Strip Navigation */
.month-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
}

.month-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.month-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.month-pill.active {
  background: #0f172a;
  color: #fbbf24;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Modern Month Hero Card */
.month-hero-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #4c0519 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.month-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.month-hero-title .te-name {
  color: #fbbf24;
}

.month-theme-verse {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #fbbf24;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  max-width: 720px;
}

.month-theme-verse .verse-line {
  font-size: 1.02rem;
  color: #f8fafc;
  font-weight: 600;
}

.month-theme-verse .verse-ref {
  font-size: 0.82rem;
  color: #fbbf24;
  margin-top: 4px;
  font-weight: 600;
}

.hero-qr-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  min-width: 160px;
}

.hero-qr-card .qr-canvas-box {
  width: 116px;
  height: 116px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-qr-card .qr-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-qr-card .qr-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Instruction Bar */
.instruction-bar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

/* Modern Calendar Grid */
.calendar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.weekdays-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #0f172a;
  color: #f8fafc;
}

.weekday-cell {
  padding: 13px 8px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.weekday-cell:first-child {
  color: #fbbf24;
}

.weekday-cell .wd-te {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.weekday-cell .wd-en {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--border-subtle);
  gap: 1px;
}

.day-cell {
  background: #ffffff;
  min-height: 148px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.16s ease;
}

.day-cell.empty-cell {
  background: #f8fafc;
  cursor: default;
}

.day-cell:not(.empty-cell):hover {
  background: #f8fafc;
  transform: translateY(-2px);
  z-index: 2;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  outline: 2px solid #0f172a;
}

.day-cell.is-sunday .day-number {
  color: #e11d48;
  background: #fff1f2;
}

.day-cell.is-featured-day {
  background: linear-gradient(145deg, #ffffff 0%, #fefce8 100%);
}

.day-cell.is-today {
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: inset 0 0 0 2.5px #d97706, 0 8px 20px rgba(217, 119, 6, 0.18);
  z-index: 1;
}

.day-cell.is-today .day-number {
  background: linear-gradient(135deg, #0f172a 0%, #3c091c 100%);
  color: #fbbf24;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.badge-today {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
  white-space: nowrap;
}

.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.day-number {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  background: #f1f5f9;
  transition: all 0.16s ease;
}

.day-cell:not(.empty-cell):hover .day-number {
  background: #0f172a;
  color: #fbbf24;
}

.badge-pdf {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.badge-special {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
}

.day-verse-box {
  margin: 2px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.day-verse-preview {
  font-size: 0.8rem;
  line-height: 1.48;
  color: #1e293b;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.day-verse-ref {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9f1239;
}

.day-footer-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.day-cell:not(.empty-cell):hover .day-footer-cta {
  color: #0f172a;
}

/* ==========================================================================
   Modern Drag & Drop File Uploader (Admin Poster Page)
   ========================================================================== */
.modern-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.modern-dropzone:hover {
  border-color: #0f172a;
  background: #f1f5f9;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.dropzone-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.dropzone-sub {
  font-size: 0.8rem;
  color: #64748b;
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.selected-file-pill {
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #0f172a;
  color: #fbbf24;
  font-size: 0.8rem;
  font-weight: 700;
}

.current-file-bar {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.format-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #0f172a;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Clean Poster Lightbox Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.poster-modal-dialog {
  width: 100%;
  max-width: 680px;
  background: #0f172a;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-poster);
  overflow: hidden;
  color: #fff;
  margin: auto;
  animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-top-bar {
  background: #090d16;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close-btn:hover {
  background: #e11d48;
}

.modal-body-content {
  padding: 24px;
  max-height: calc(92vh - 130px);
  overflow-y: auto;
}

.modal-footer-bar {
  background: #090d16;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-day-group, .action-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   User Poster Personalization Studio (Name, Mobile, Address Overlay)
   ========================================================================== */
.poster-customizer-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

.user-details-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  min-width: 0;
  box-sizing: border-box;
}

.user-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin-top: 18px;
}

.user-action-row .btn {
  padding: 10px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
}

.user-field-group {
  margin-bottom: 14px;
}

.user-field-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.user-input-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.user-input-control::placeholder {
  color: #64748b;
}

.user-input-control:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.poster-preview-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 820px) {
  .poster-customizer-grid {
    grid-template-columns: 1fr;
  }
}

/* 12 Months QR Grid */
.qr-grid-12 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.qr-month-item {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease;
}

.qr-month-item:hover {
  transform: translateY(-3px);
}

.qr-month-item.current {
  border: 2px solid #fbbf24;
}

@media (max-width: 860px) {
  .month-hero-card {
    grid-template-columns: 1fr;
  }
  .day-cell {
    min-height: 78px;
    padding: 8px;
  }
  .day-footer-cta {
    display: none;
  }
}
