/* Wisdom Poster Page — social-card inspired layout */

.wisdom-section {
  padding: 30px 16px 50px;
  background: linear-gradient(160deg, #0a1628 0%, #122a3a 50%, #0d1f2d 100%);
  font-family: 'Noto Sans Devanagari', sans-serif;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}

/* Poster card */
.wisdom-poster {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(0, 160, 180, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 100, 120, 0.12) 0%, transparent 50%),
    linear-gradient(175deg, #1a2a3a 0%, #0f1e2e 40%, #0a1520 100%);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 200, 50, 0.08);
  overflow: hidden;
  z-index: 2;
}

.poster-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 215, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0, 200, 200, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

/* Header */
.poster-header {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: start;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 3;
}

.poster-logo {
  text-align: center;
}

.poster-logo-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 200, 50, 0.6);
  overflow: hidden;
  background: #1a3050;
  box-shadow: 0 0 16px rgba(255, 200, 50, 0.2);
}

.poster-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-logo-text {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 600;
}

.logo-line-gold {
  display: block;
  color: #ffd700;
}

.logo-line-white {
  display: block;
  color: #ffffff;
}

.poster-title-block {
  text-align: center;
  padding-top: 4px;
}

.poster-title {
  margin: 0 0 10px;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.poster-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flourish-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a030, transparent);
}

.flourish-diamond {
  color: #c9a030;
  font-size: 0.55rem;
  flex-shrink: 0;
}

.poster-date-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 25, 45, 0.85);
  border: 1px solid rgba(255, 200, 50, 0.25);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 90px;
}

.date-day {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  line-height: 1;
}

.date-separator {
  width: 1px;
  height: 36px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.4) 0px,
    rgba(255, 255, 255, 0.4) 3px,
    transparent 3px,
    transparent 6px
  );
}

.date-month {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

/* Body — two columns */
.quotes-container {
  max-width: 100%;
  margin: 0;
}

.quote-card.poster-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
  border-radius: 0;
  opacity: 1;
  transform: none;
  min-height: 280px;
}

.poster-quote-col {
  display: flex;
  align-items: center;
  padding: 10px 8px 20px 0;
  position: relative;
  z-index: 3;
}

.quote-content {
  margin: 0;
  background: transparent !important;
  border-left: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: inherit;
}

.poster-quote-text {
  margin: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
  font-style: normal;
}

.quote-part-gold {
  color: #ffd700;
  display: inline;
}

.quote-part-white {
  color: #ffffff;
  display: inline;
}

/* Image column */
.poster-image-col {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 260px;
  z-index: 2;
}

.poster-lotus {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  max-width: 340px;
  opacity: 0.85;
  z-index: 1;
  pointer-events: none;
}

.poster-lotus svg {
  width: 100%;
  height: auto;
}

.poster-halo {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 220, 100, 0.15) 40%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.poster-bokeh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.poster-bokeh span {
  position: absolute;
  border-radius: 50%;
  background: rgba(100, 200, 255, 0.25);
  border: 1px solid rgba(150, 220, 255, 0.3);
}

.poster-bokeh span:nth-child(1) { width: 50px; height: 50px; top: 5%;  right: 10%; }
.poster-bokeh span:nth-child(2) { width: 30px; height: 30px; top: 20%; right: 25%; opacity: 0.7; }
.poster-bokeh span:nth-child(3) { width: 40px; height: 40px; top: 8%;  left: 15%;  opacity: 0.5; }
.poster-bokeh span:nth-child(4) { width: 22px; height: 22px; top: 30%; right: 5%;  opacity: 0.6; }

.poster-baba-image {
  position: relative;
  z-index: 4;
  max-height: 300px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

/* Footer */
.poster-footer {
  margin-top: 16px;
  position: relative;
  z-index: 3;
}

.poster-author {
  margin: 10px 0 0;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  color: #ffffff;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-symbol {
  font-size: 1rem;
}

/* Floating spiritual particles */
.spiritual-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  animation: floatParticle 8s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Legacy quote card hover (poster) */
.quote-card.poster-body:hover {
  transform: none;
  box-shadow: none;
}

.quote-card.poster-body.hover-effect {
  transform: none;
  box-shadow: none;
}

/* OTP Section styles */
.otp-section {
  padding: 40px 20px;
  background: linear-gradient(135deg, #fefaf2 0%, #fcf6e8 100%);
  text-align: center;
  position: relative;
}

.otp-header {
  margin-bottom: 30px;
}

.sacred-symbol-small {
  font-size: 2rem;
  margin-bottom: 10px;
}

.otp-title {
  font-size: 1.6rem;
  color: #5c3d00;
  margin-bottom: 8px;
  font-family: 'Noto Serif Devanagari', serif;
}

.otp-subtitle {
  font-size: 1rem;
  color: #725100;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.otp-forms-container {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Form card styles */
.form-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  border: 1px solid rgba(194, 136, 0, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 20px;
}

.form-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.form-title {
  font-size: 1.3rem;
  color: #5c3d00;
  margin: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Input group styles */
.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #c28800;
  z-index: 1;
}

.form-input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  margin: 0;
  border-radius: 8px;
  border: 2px solid #e0d4b8;
  font-size: 1rem;
  font-family: 'Noto Sans Devanagari', sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: #c28800;
  box-shadow: 0 0 0 3px rgba(194, 136, 0, 0.1);
  transform: translateY(-1px);
}

.form-input.valid {
  border-color: #4CAF50;
  background: rgba(76, 175, 80, 0.05);
}

.form-input.invalid {
  border-color: #f44336;
  background: rgba(244, 67, 54, 0.05);
}

.otp-input {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 500;
}

/* Button styles */
.form-button {
  background: linear-gradient(145deg, #c28800, #a67200);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(194, 136, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-button:hover {
  background: linear-gradient(145deg, #a67200, #8a5f00);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 136, 0, 0.4);
}

.form-button:active {
  transform: translateY(0);
}

.form-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button-icon {
  font-size: 1.1rem;
}

.button-text {
  font-size: 1rem;
}

.primary-button {
  background: linear-gradient(145deg, #c28800, #a67200);
}

.success-button {
  background: linear-gradient(145deg, #4CAF50, #45a049);
}

.success-button:hover {
  background: linear-gradient(145deg, #45a049, #3d8b40);
}

/* OTP Info styles */
.otp-info {
  margin-top: 15px;
  padding: 15px;
  background: rgba(194, 136, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(194, 136, 0, 0.2);
}

.info-text {
  color: #5c3d00;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.resend-button {
  background: none;
  border: 1px solid #c28800;
  color: #c28800;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.resend-button:hover {
  background: #c28800;
  color: white;
}

.resend-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spiritual message */
.spiritual-message {
  margin-top: 30px;
  padding: 20px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.spiritual-message p {
  margin: 0;
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.1rem;
  color: #5c3d00;
  font-style: italic;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.spinner-ring {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #c28800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  color: #5c3d00;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1rem;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: all 0.3s ease;
  z-index: 10000;
  max-width: 300px;
  backdrop-filter: blur(10px);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid #4CAF50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-icon {
  font-size: 1.2rem;
}

.notification-text {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

/* Success particles */
.success-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
}

.success-particle {
  position: absolute;
  animation: particleBurst 3s ease-out forwards;
  pointer-events: none;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-100px) scale(1) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0) rotate(360deg);
  }
}

/* Hover particle effects */
.hover-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-50px) scale(0);
    opacity: 0;
  }
}

/* Dynamic floating particles */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

.dynamic-particle {
  animation: floatUp 6s linear forwards;
}

/* Quote card animation */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-card.animate-in {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Scroll effects */
.sacred-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 251, 231, 0.9);
  backdrop-filter: blur(8px);
}

/* Main page navigation */
.main-page-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.home-button-section {
  margin: 0;
  padding: 12px 16px 0;
  background: linear-gradient(160deg, #0a1628 0%, #122a3a 100%);
}

.home-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 30, 50, 0.85);
  color: #ffd700;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 200, 50, 0.3);
  position: relative;
  z-index: 10;
}

.home-button:hover {
  background: rgba(20, 45, 70, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 200, 50, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .wisdom-section, .otp-section {
    padding: 20px 12px;
  }

  .wisdom-poster {
    padding: 20px 16px 18px;
  }

  .poster-header {
    grid-template-columns: 70px 1fr auto;
    gap: 10px;
  }

  .poster-logo-circle {
    width: 52px;
    height: 52px;
  }

  .poster-logo-text {
    font-size: 0.62rem;
  }

  .poster-date-badge {
    padding: 6px 10px;
    min-width: 72px;
  }

  .date-day {
    font-size: 1.5rem;
  }

  .date-month {
    font-size: 0.75rem;
  }

  .quote-card.poster-body {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }

  .poster-quote-col {
    padding: 0 0 16px;
    order: 2;
  }

  .poster-image-col {
    order: 1;
    min-height: 220px;
  }

  .poster-baba-image {
    max-height: 220px;
  }

  .poster-author {
    text-align: center;
    justify-content: center;
  }
  
  .otp-forms-container {
    max-width: 100%;
  }
  
  .form-card {
    padding: 20px;
  }
  
  .notification {
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100%);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .main-page-link {
    position: relative;
    top: auto;
    left: auto;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .sacred-symbol {
    font-size: 2rem;
  }
  
  .otp-title {
    font-size: 1.4rem;
  }
  
  .form-input {
    padding: 14px 15px 14px 40px;
  }
}

@media (max-width: 480px) {
  .poster-header {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .poster-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  .poster-logo-circle {
    margin: 0;
    flex-shrink: 0;
  }

  .poster-logo-text {
    text-align: left;
  }

  .poster-date-badge {
    margin: 0 auto;
  }

  .poster-quote-text {
    font-size: 1rem;
  }

  .poster-baba-image {
    max-height: 200px;
  }
  
  .form-card {
    padding: 15px;
  }
  
  .form-input {
    font-size: 0.9rem;
  }
  
  .form-button {
    font-size: 0.9rem;
  }
}
