/*
Theme Name: VoteMyBaby Theme
Theme URI: https://votemybaby.com/
Author: VoteMyBaby Editorial & Engineering
Author URI: https://votemybaby.com/
Description: Official Parent-Friendly WordPress Theme for VoteMyBaby — Free 1-Month Online Baby Photo Contest, Hourly Verified Family Voting, 100-Vote Star Milestone Certificates, and Rank 1–9 Gift Hampers & Flipkart Vouchers. Built with a high-contrast White, Black & Vibrant Orange design system and India DPDP Act 2023 & GDPR compliance.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: votemybaby
*/

/* WordPress Accessibility & Dynamic Component Helpers */
.vmb-accessibility-heading,
.vmb-accessibility-caption,
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* WordPress Form Notices */
.vmb-form-error {
  background: #FEF2F2;
  border: 1.5px solid #DC2626;
  color: #991B1B;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.vmb-form-success {
  background: #FFF0E5;
  border: 1.5px solid #FF6B00;
  color: #0F0F12;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Google Login Modal (White, Black & Orange Theme) */
.vmb-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.vmb-login-modal[hidden] {
  display: none !important;
}
.vmb-login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(4px);
}
.vmb-login-modal-content {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border: 2px solid #0F0F12;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 0 #0F0F12;
}
.vmb-login-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #E4E4E7;
  background: #FFFFFF;
  color: #0F0F12;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vmb-login-modal-close:hover {
  background: #FFF0E5;
  border-color: #FF6B00;
  color: #FF6B00;
}
.vmb-login-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFF0E5;
  color: #FF6B00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1.5px solid #FFD6B8;
}
.vmb-login-modal-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.vmb-google-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  margin-top: 1.25rem;
  background: #FF6B00;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid #0F0F12;
  box-shadow: 0 4px 0 #0F0F12;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}
.vmb-google-login-button:hover {
  background: #E05A00;
  transform: translateY(-1px);
}
.vmb-google-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0F0F12;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.vmb-login-modal-footer {
  font-size: 0.8rem;
  color: #52525B;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* WordPress AJAX Blog Pagination */
.vmb-blog-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.vmb-blog-pagination ul.page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.vmb-blog-pagination a.page-numbers,
.vmb-blog-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1.5px solid #E4E4E7;
  background: #FFFFFF;
  color: #0F0F12;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.vmb-blog-pagination a.page-numbers:hover,
.vmb-blog-pagination a.page-numbers.current,
.vmb-blog-pagination span.page-numbers.current {
  background: #FF6B00;
  border-color: #0F0F12;
  color: #FFFFFF;
}

/* Recent Voters Live List */
.vmb-recent-voters-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.vmb-recent-voter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.95rem;
  background: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
}
.vmb-recent-voter-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFF0E5;
  color: #FF6B00;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vmb-recent-voter strong {
  display: block;
  font-size: 0.88rem;
  color: #0F0F12;
}
.vmb-recent-voter small {
  display: block;
  font-size: 0.76rem;
  color: #52525B;
}

/* WordPress Single Post Content Formatting */
.vmb-article-content h2 {
  font-size: 1.65rem;
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
  color: #0F0F12;
}
.vmb-article-content h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  color: #0F0F12;
}
.vmb-article-content p,
.vmb-article-content li {
  font-size: 1.04rem;
  line-height: 1.78;
  color: #27272A;
}
.vmb-article-content ul,
.vmb-article-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.35rem;
}
.vmb-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.5rem 0;
}
