/* --- General Styles --- */
body {
  background: #fff;
  color: #000;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* --- Subscription Options Styles --- */
.subscription-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-card:hover {
  border-color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

.option-card.selected {
  border-color: #ff0000;
  background: #fff5f5;
}

.option-header {
  margin-bottom: 1rem;
}

.option-header i {
  font-size: 2rem;
  color: #ff0000;
  margin-bottom: 0.5rem;
}

.option-header h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #333;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff0000;
  margin-top: 0.5rem;
}

.option-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.option-features li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  align-items: center;
}

.option-features li i {
  color: #28a745;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.payment-alert {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #856404;
  font-size: 0.9rem;
}

.payment-alert i {
  color: #ffc107;
  font-size: 1.1rem;
}

/* --- Enhanced Form Styles --- */
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.select-wrapper select:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.select-wrapper i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  transition: color 0.3s ease;
}

.select-wrapper select:focus + i {
  color: #ff0000;
}

.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.country-code {
  padding: 12px 16px;
  background: #f8f9fa;
  color: #666;
  font-weight: 500;
  border-right: 1px solid #e0e0e0;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
}

.phone-input-wrapper input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  color: #333;
  background: transparent;
  border-radius: 0 6px 6px 0;
}

.phone-input-wrapper input:focus {
  outline: none;
}

.phone-input-wrapper input::placeholder {
  color: #999;
}

/* --- Unsubscribe Specific Styles --- */
.unsubscribe-btn {
  background: #dc3545 !important;
  color: #fff !important;
  border: none !important;
}

.unsubscribe-btn:hover {
  background: #c82333 !important;
}

.unsubscribe-btn:disabled {
  background: #6c757d !important;
  cursor: not-allowed;
}

#sms-cancel-info .payment-alert {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

#sms-cancel-info .payment-alert i {
  color: #dc3545;
}

.status-subscribed p strong {
  color: #dc3545;
  font-weight: bold;
}

@media (max-width: 768px) {
  .subscription-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .option-card {
    padding: 1rem;
  }
  
  .option-header i {
    font-size: 1.5rem;
  }
  
  .option-header h3 {
    font-size: 1rem;
  }
  
  .price {
    font-size: 1.1rem;
  }
}

/* --- PWA Styles --- */
/* Install button styles */
.install-btn {
  background: #28a745 !important;
  color: #fff !important;
  border: none !important;
  animation: pulse 2s infinite;
}

.install-btn:hover {
  background: #218838 !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* PWA Notifications */
.pwa-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  padding: 1rem;
  max-width: 300px;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 4px solid #007bff;
}

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

.pwa-notification.success {
  border-left-color: #28a745;
}

.pwa-notification.warning {
  border-left-color: #ffc107;
}

.pwa-notification.error {
  border-left-color: #dc3545;
}

.pwa-notification .notification-content {
  position: relative;
}

.pwa-notification h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.pwa-notification p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.pwa-notification .notification-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-notification .notification-close:hover {
  background: #c82333;
}

/* PWA Status Bar */
.pwa-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ff0000;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.pwa-status-bar.show {
  transform: translateY(0);
}

/* PWA Splash Screen */
.pwa-splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: opacity 0.5s ease;
}

.pwa-splash.hide {
  opacity: 0;
  pointer-events: none;
}

.pwa-splash img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
}

.pwa-splash h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: #000;
}

.pwa-splash p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* PWA Offline Indicator */
.offline-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #dc3545;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 1000;
  display: none;
}

.offline-indicator.show {
  display: block;
}

/* PWA App-like experience */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .fab-icons {
    bottom: calc(2rem + env(safe-area-inset-bottom));
  }
  
  #add-post-btn {
    bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }
}

.profile-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Back and View More Buttons --- */
.back-btn, .view-more-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,0,0,0.15);
}

.back-btn:hover, .view-more-btn:hover {
  background: #d10000;
}

.back-btn i, .view-more-btn i {
  font-size: 1rem;
}

/* --- Profile Header --- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
.avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 1rem;
}
.avatar-wrapper img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
  background: #f5f5f5;
}
#edit-avatar-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#edit-avatar-btn:hover {
  background: #d10000;
}
.profile-info {
  text-align: center;
}
#profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem 0;
  display: inline-block;
}
#edit-profile-btn {
  background: none;
  border: none;
  color: #ff0000;
  font-size: 1.1rem;
  margin-left: 0.5rem;
  cursor: pointer;
  vertical-align: middle;
}
#edit-profile-btn:hover {
  color: #d10000;
}
#profile-bio {
  color: #666;
  font-size: 1rem;
  margin: 0.2rem 0 0 0;
}

/* --- Floating Add Button --- */
#add-post-btn {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ff0000;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  box-shadow: 0 4px 16px rgba(255,0,0,0.15);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#add-post-btn:hover {
  background: #d10000;
}

/* --- Posts Section --- */
.profile-posts {
  width: 100%;
  margin-top: 1rem;
}
.profile-posts h3 {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  color: #000;
  font-weight: 600;
}
#my-posts-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.post-card {
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
.post-card h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.post-card p {
  margin: 0;
  color: #222;
  font-size: 1rem;
}
.post-card small {
  color: #888;
  font-size: 0.92rem;
}
.post-card .post-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.post-card .edit-btn, .post-card .delete-btn, .post-card .share-btn, .post-card .view-img-btn, .post-card .download-btn {
  background: #fff;
  color: #ff0000;
  border: 1px solid #ff0000;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.post-card .edit-btn:hover, .post-card .share-btn:hover, .post-card .view-img-btn:hover {
  background: #ff0000;
  color: #fff;
}
.post-card .delete-btn {
  background: #fff;
  color: #dc3545;
  border: 1px solid #dc3545;
}
.post-card .delete-btn:hover {
  background: #dc3545;
  color: #fff;
}

/* --- Modals --- */
.modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.18);
  transition: opacity 0.2s;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 320px;
  max-width: 95vw;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.image-modal-content {
  padding: 1rem;
  min-width: unset;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#modal-image-preview {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
}
.close:hover {
  color: #ff0000;
}

/* --- Forms --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: 600;
  color: #000;
  font-size: 0.98rem;
}
.form-group input,
.form-group textarea {
  padding: 0.9rem;
  border: 2px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
.form-group textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.5;
}
.form-group input[type="file"] {
  padding: 0.5rem;
  border: 2px dashed #eee;
  background: #fafafa;
  border-radius: 6px;
  cursor: pointer;
}
.form-group input[type="file"]:hover {
  border-color: #ff0000;
  background: #fff5f5;
}
.form-group small {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* --- Feedback & Empty States --- */
#account-feedback {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 500;
}
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #666;
}
.empty-state h3 {
  margin-bottom: 1rem;
  color: #333;
}
.empty-state p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .profile-main {
    padding: 1rem 0.2rem 4rem 0.2rem;
  }
  .modal-content {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    min-width: 90vw;
  }
  #add-post-btn {
    right: 1.2rem;
    bottom: 1.2rem;
  }
} 

/* --- Public Profile Styles (index.html) --- */
.public-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.public-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
  width: 100%;
}
.public-profile-header .avatar-wrapper {
  width: 110px;
  height: 110px;
  margin-bottom: 1.2rem;
}
.public-profile-header .avatar-wrapper img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #eee;
  background: #f5f5f5;
  display: block;
}
.public-profile-header .profile-info {
  text-align: center;
}
.public-profile-header #profile-name {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0.5rem 0 0.2rem 0;
}
.public-profile-header #profile-bio {
  color: #666;
  font-size: 1.1rem;
  margin: 0.2rem 0 0 0;
}
.profile-posts {
  width: 100%;
  margin-top: 0.5rem;
}
#posts-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.post-card {
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
.post-card h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.post-card p {
  margin: 0;
  color: #222;
  font-size: 1rem;
}
.post-card small {
  color: #888;
  font-size: 0.92rem;
}
.post-card .post-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.post-card .share-btn, .post-card .view-img-btn {
  background: #fff;
  color: #ff0000;
  border: 1px solid #ff0000;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.post-card .share-btn:hover, .post-card .view-img-btn:hover {
  background: #ff0000;
  color: #fff;
}

/* --- Post Modal Buttons --- */
#post-form button[type="submit"] {
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(255,0,0,0.08);
}
#post-form button[type="submit"]:hover {
  background: #d10000;
}
#post-form input[type="file"] {
  border: 2px dashed #ff0000;
  background: #fafafa;
  border-radius: 6px;
  padding: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
#post-form input[type="file"]:hover {
  border-color: #d10000;
}

/* --- Icon Button --- */
.icon-btn {
  background: none;
  border: none;
  color: #ff0000;
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.icon-btn:hover {
  background: #ffeaea;
  color: #d10000;
}

/* --- Search Bar --- */
.search-bar {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-bar input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.search-bar input[type="text"]:focus {
  outline: none;
  border-color: #ff0000;
}
.search-bar .icon-btn {
  font-size: 1.2rem;
  padding: 0.4rem;
}

/* --- Post Card Color Options --- */
.post-card {
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
.post-color-0 { background: #f5f5f5; }
.post-color-1 { background: #ffeaea; }
.post-color-2 { background: #eaf7ff; }
.post-color-3 { background: #eaffea; }
.post-color-4 { background: #fff7ea; }
.post-color-5 { background: #f0eaff; }
.post-color-6 { background: #fff0ea; }
.post-color-7 { background: #eafff7; }
.post-color-8 { background: #f5eaff; }
.post-color-9 { background: #eaf0ff; }

/* --- Responsive for public profile --- */
@media (max-width: 600px) {
  .public-main {
    padding: 1.2rem 0.2rem 2rem 0.2rem;
  }
  .public-profile-header .avatar-wrapper {
    width: 80px;
    height: 80px;
  }
  .public-profile-header .avatar-wrapper img {
    width: 80px;
    height: 80px;
  }
  .public-profile-header #profile-name {
    font-size: 1.2rem;
  }
  .public-profile-header #profile-bio {
    font-size: 0.98rem;
  }
} 

/* --- Edit Profile Modal Save Button --- */
#profile-form button[type="submit"] {
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(255,0,0,0.08);
}
#profile-form button[type="submit"]:hover {
  background: #d10000;
}

/* --- Color Selector for Post Modal --- */
.color-selector {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
}
.color-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #eee;
  cursor: pointer;
  transition: border 0.2s;
  outline: none;
  background: #f5f5f5;
  display: inline-block;
}
.color-option.selected, .color-option:focus {
  border: 2px solid #ff0000;
}
.color-option.color-0 { background: #f5f5f5; }
.color-option.color-1 { background: #ffeaea; }
.color-option.color-2 { background: #eaf7ff; }
.color-option.color-3 { background: #eaffea; }
.color-option.color-4 { background: #fff7ea; }
.color-option.color-5 { background: #f0eaff; }
.color-option.color-6 { background: #fff0ea; }
.color-option.color-7 { background: #eafff7; }
.color-option.color-8 { background: #f5eaff; }
.color-option.color-9 { background: #eaf0ff; }

/* --- Post Actions Right in index.html --- */
.public-main .post-card .post-actions {
  justify-content: flex-end;
  gap: 0.5rem;
}

/* --- Post Actions Right in search-post.html --- */
.search-post-main .post-card .post-actions {
  justify-content: flex-end;
  gap: 0.5rem;
}

/* --- Mobile: Keep post actions horizontal, add spacing between posts --- */
@media (max-width: 600px) {
  .public-main #posts-container {
    gap: 1.5rem;
  }
  .public-main .post-card .post-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Search page mobile styles */
  .search-post-main .post-card .post-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Today page mobile styles */
  .today-main .verse-card .post-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
} 

/* --- Fix post card padding on mobile --- */
@media (max-width: 600px) {
  .public-main {
    padding: 1.2rem 0.2rem 2rem 0.2rem;
  }
  .public-profile-header .avatar-wrapper {
    width: 80px;
    height: 80px;
  }
  .public-profile-header .avatar-wrapper img {
    width: 80px;
    height: 80px;
  }
  .public-profile-header #profile-name {
    font-size: 1.2rem;
  }
  .public-profile-header #profile-bio {
    font-size: 0.98rem;
  }
  .post-card {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
}

/* --- Floating top-right icon buttons --- */
.fab-icons {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 2001;
}
.fab-icon-btn {
  background: #fff;
  color: #ff0000;
  border: 2px solid #ff0000;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.fab-icon-btn:hover {
  background: #ff0000;
  color: #fff;
}

/* --- Search Post Page Styles --- */
.search-post-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.search-posts-list {
  width: 100%;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.search-bar-top {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 2rem auto;
  position: relative;
}
.search-bar-top input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  padding-right: 3.5rem;
  border: 2px solid #eee;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.2s;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.search-bar-top input[type="text"]:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
.search-bar-top .icon-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}
.search-bar-top .icon-btn:hover {
  background: rgba(255,0,0,0.1);
  color: #ff0000;
}
.search-bar-top .icon-btn i {
  font-size: 1rem;
}

/* --- Login Form Modern Styles --- */
#login-form {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid #eee;
}
#login-form h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #000;
  font-size: 1.8rem;
}
#login-form input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background: #fff;
}
#login-form input:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}
#login-form button {
  width: 100%;
  margin-top: 1rem;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(255,0,0,0.08);
}
#login-form button:hover {
  background: #d10000;
}
#login-feedback {
  text-align: center;
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
}

/* --- Subscribe/Unsubscribe Pages --- */
.subscribe-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.subscribe-container {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
}

.subscribe-header {
  text-align: center;
  margin-bottom: 2rem;
}

.subscribe-header i {
  font-size: 3rem;
  color: #ff0000;
  margin-bottom: 1rem;
}

.subscribe-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #000;
}

.subscribe-header p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.terms-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #ff0000;
}

.terms-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: #000;
}

.terms-content p {
  margin: 0 0 1rem 0;
  color: #555;
  line-height: 1.6;
}

.terms-content ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #555;
}

.terms-content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.subscribe-form {
  margin-bottom: 2rem;
}

.subscribe-form .form-group {
  margin-bottom: 1.5rem;
}

.subscribe-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #000;
}

.subscribe-form input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: #ff0000;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: #ff0000;
}

.subscribe-btn, .unsubscribe-btn {
  width: 100%;
  padding: 1rem;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.subscribe-btn:hover, .unsubscribe-btn:hover {
  background: #d10000;
}

.subscribe-btn:disabled, .unsubscribe-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.subscribe-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.subscribe-footer p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.subscribe-footer a {
  color: #ff0000;
  text-decoration: none;
  font-weight: 600;
}

.subscribe-footer a:hover {
  text-decoration: underline;
}

/* Subscription status styles */
.subscription-status {
  margin-bottom: 2rem;
}

.status-subscribed, .status-not-subscribed, .status-error, .status-enter-email {
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.status-subscribed {
  background: #e8f5e8;
  border: 1px solid #4caf50;
}

.status-subscribed i {
  color: #4caf50;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.status-not-subscribed {
  background: #fff3cd;
  border: 1px solid #ffc107;
}

.status-not-subscribed i {
  color: #ffc107;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.status-error {
  background: #f8d7da;
  border: 1px solid #dc3545;
}

.status-error i {
  color: #dc3545;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.status-enter-email {
  background: #e3f2fd;
  border: 1px solid #2196f3;
}

.status-enter-email i {
  color: #2196f3;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.subscription-status h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.subscription-status p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

/* Responsive design for subscribe pages */
@media (max-width: 600px) {
  .subscribe-main {
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  
  .subscribe-container {
    padding: 1.5rem 1rem;
  }
  
  .subscribe-header h1 {
    font-size: 1.5rem;
  }
  
  .terms-section {
    padding: 1rem;
  }
} 

/* --- Notification Popup Styles --- */
.notification-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border: 1px solid #eee;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 300px;
}

.notification-popup.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-popup.success {
  border-left: 4px solid #10b981;
}

.notification-popup.success .notification-icon {
  color: #10b981;
}

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

.notification-popup.error .notification-icon {
  color: #ef4444;
}

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

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #000;
  margin: 0 0 0.2rem 0;
  font-size: 0.95rem;
}

.notification-message {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  transition: color 0.2s;
  font-size: 1rem;
}

.notification-close:hover {
  color: #666;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .notification-popup {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .notification-popup.show {
    transform: translateY(0);
  }
}

/* --- Site Footer Styles --- */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer p {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Mobile responsive footer */
@media (max-width: 600px) {
  .site-footer {
    padding: 1rem 0;
    margin-top: 2rem;
  }
  
  .footer-content {
    padding: 0 0.5rem;
  }
  
  .site-footer p {
    font-size: 0.85rem;
  }
}

/* --- Loading Spinner Styles --- */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.loading-spinner p {
  margin: 1rem 0 0 0;
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.load-more-spinner {
  padding: 2rem 1rem;
}

.load-more-spinner .spinner {
  width: 30px;
  height: 30px;
  border-width: 2px;
}

.load-more-spinner p {
  font-size: 0.9rem;
  margin: 0.8rem 0 0 0;
}

/* --- Contact Page Styles --- */
.contact-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid #eee;
  overflow: hidden;
}

.contact-header {
  background: linear-gradient(135deg, #ff0000 0%, #d10000 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.contact-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.contact-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
}

.contact-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form {
  padding: 2rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255,0,0,0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.contact-btn {
  width: 100%;
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255,0,0,0.2);
}

.contact-btn:hover {
  background: #d10000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,0,0,0.3);
}

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

.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-top: 1px solid #eee;
}

.contact-info h3 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #eee;
}

.contact-method i {
  font-size: 1.5rem;
  color: #ff0000;
  width: 2rem;
  text-align: center;
}

.contact-method h4 {
  margin: 0 0 0.2rem 0;
  color: #333;
  font-size: 1rem;
  font-weight: 600;
}

.contact-method p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Mobile responsive contact page */
@media (max-width: 600px) {
  .contact-main {
    padding: 1rem 0.5rem 2rem 0.5rem;
  }
  
  .contact-container {
    border-radius: 12px;
  }
  
  .contact-header {
    padding: 1.5rem 1rem;
  }
  
  .contact-header h1 {
    font-size: 1.8rem;
  }
  
  .contact-form {
    padding: 1.5rem 1rem;
  }
  
  .contact-info {
    padding: 1.5rem 1rem;
  }
  
  .contact-methods {
    gap: 0.8rem;
  }
  
  .contact-method {
    padding: 0.8rem;
  }
} 


/* --- Donation Page Styles --- */
.donation-container {
  max-width: 420px;
  margin: 2.5rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(255,0,0,0.08);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.donation-container .back-btn {
  position: absolute;
  top: 1em;
  left: 1rem;
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,0,0,0.15);
}
.donation-container .back-btn:hover {
  background: #d10000;
}
.donation-container .back-btn i {
  font-size: 0.9rem;
}
.donation-container h1 {
  color: #ff0000;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.donation-desc {
  color: #444;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
#donation-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.donation-amounts {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  flex-wrap: wrap;
}
.amount-btn {
  background: #fff;
  color: #ff0000;
  border: 2px solid #ff0000;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.amount-btn.selected, .amount-btn:hover {
  background: #ff0000;
  color: #fff;
}
.amount-input {
  width: 110px;
  padding: 0.5rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}
.amount-input:focus {
  border-color: #ff0000;
  outline: none;
}
#donor-name {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1.1rem;
}
#donor-name:focus {
  border-color: #ff0000;
  outline: none;
}
.donate-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,0,0,0.10);
}
.donate-btn:hover {
  background: #d10000;
}
#donation-message {
  margin: 0.5rem 0 1rem 0;
  font-size: 1.05rem;
  text-align: center;
}
#donation-message.info {
  color: #444;
}
#donation-message.error {
  color: #d10000;
}
.donor-list-desc {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
.donor-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  width: 100%;
}
.donor-list li {
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  padding: 0.7rem 1rem;
  color: #222;
  font-size: 1rem;
  text-align: left;
}
@media (max-width: 600px) {
  .donation-container {
    margin: 6.5rem auto 2.5rem auto;
    padding: 2rem 1rem 2rem 1rem;
    max-width: 97%;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(255,0,0,0.10);
  }
  .donation-container h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }
  .donation-desc {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .donation-amounts {
    gap: 0.4rem;
    margin: 0.3rem 0 0.8rem 0;
  }
  .amount-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
  .amount-input {
    width: 100px;
    font-size: 1rem;
  }
  #donor-name {
    font-size: 1rem;
    padding: 0.6rem;
  }
  .donate-btn {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  .donor-list li {
    font-size: 0.9rem;
    padding: 0.8rem;
    margin-bottom: 0.4rem;
  }
  .fab-icons {
    top: 1rem;
    right: 1rem;
  }
  .fab-icon-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
} 

/* Floating Donate Button */
#donate-btn {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,0,0,0.15);
}
#donate-btn:hover {
  background: #d10000;
}

/* Donation Modal Styles */
#donation-modal .modal-content {
  max-width: 480px;
  width: 90vw;
}

#donation-modal h2 {
  color: #ff0000;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
}

#donation-modal p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

#donation-modal .form-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#donation-modal #donor-name {
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

#donation-modal .form-group {
  margin-bottom: 1.2rem;
}

#donation-modal label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

#donation-modal .donation-amounts {
  display: flex;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

#donation-modal .amount-btn {
  background: #fff;
  color: #ff0000;
  border: 2px solid #ff0000;
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#donation-modal .amount-btn.selected,
#donation-modal .amount-btn:hover {
  background: #ff0000;
  color: #fff;
}

#donation-modal .amount-input {
  width: 110px;
  padding: 0.5rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1.1rem;
  margin-left: 0.5rem;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
}

#donation-modal .donate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
#donation-modal .donate-btn i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

#donation-modal .amount-input:focus {
  border-color: #ff0000;
  outline: none;
}

#donation-modal #donor-name {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

#donation-modal #donor-name:focus {
  border-color: #ff0000;
  outline: none;
}

#donation-modal .donate-btn {
  background: #ff0000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(255,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#donation-modal .donate-btn:hover {
  background: #d10000;
}

#donation-modal .donate-btn i {
  font-size: 1rem;
}

#donation-modal #donation-message {
  margin: 0.5rem 0 1rem 0;
  font-size: 1rem;
  text-align: center;
  padding: 0.8rem;
  border-radius: 8px;
}

#donation-modal #donation-message.info {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px solid #bbdefb;
}

#donation-modal #donation-message.error {
  background: #ffebee;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

/* Donors as Posts Styles */
#donors-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#donors-container .post-card {
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
}
#donors-container .post-card h4 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}
#donors-container .post-card p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}
#donors-container .post-card small {
  color: #888;
  font-size: 0.92rem;
}
#donors-container .post-card .post-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
#donors-container .post-card .share-btn {
  background: #fff;
  color: #ff0000;
  border: 1px solid #ff0000;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#donors-container .post-card .share-btn:hover {
  background: #ff0000;
  color: #fff;
}

/* Empty State for Donors */
#donors-container .empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
}
#donors-container .empty-state h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #333;
}
#donors-container .empty-state p {
  margin: 0;
  font-size: 1rem;
  color: #666;
}

/* Responsive Design */
@media (max-width: 600px) {
  #donate-btn {
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  #donation-modal .modal-content {
    width: 95vw;
    padding: 1.5rem 1rem;
  }
  
  #donation-modal h2 {
    font-size: 1.5rem;
  }
  
  #donation-modal .donation-amounts {
    gap: 0.4rem;
  }
  
  #donation-modal .amount-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
  
  #donation-modal .amount-input {
    width: 100px;
    font-size: 1rem;
  }
  
  #donation-modal #donor-name {
    font-size: 1rem;
    padding: 0.7rem;
  }
  
  #donation-modal .donate-btn {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
} 

@media (max-width: 600px) {
  #donation-modal #donor-name {
    max-width: 95vw;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
} 

@media (max-width: 600px) {
  .public-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  #donate-btn {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 2rem;
  }
}

/* --- Favorites Page Styles --- */
.favorite-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.favorite-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.favorite-header h1 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.favorite-header h1 i {
  color: #ff0000;
  margin-right: 0.5rem;
}

.favorite-header p {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
}

.subscription-alert {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.subscription-alert i {
  font-size: 3rem;
  color: #ffc107;
  margin-bottom: 1rem;
}

.subscription-alert h3 {
  margin: 0 0 1rem 0;
  color: #856404;
  font-size: 1.5rem;
}

.subscription-alert p {
  margin: 0 0 1.5rem 0;
  color: #856404;
  font-size: 1rem;
  line-height: 1.6;
}

.subscribe-btn {
  background: #ff0000;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.subscribe-btn:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.favorite-posts-list {
  flex: 1;
}

.favorite-posts-list .post-card {
  margin-bottom: 1.5rem;
}

.favorite-posts-list .post-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.favorite-posts-list .share-btn,
.favorite-posts-list .download-btn,
.favorite-posts-list .remove-favorite-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1rem;
}

.favorite-posts-list .share-btn:hover {
  background: #e3f2fd;
  color: #1976d2;
}

.favorite-posts-list .download-btn:hover {
  background: #e8f5e8;
  color: #388e3c;
}

.favorite-posts-list .remove-favorite-btn:hover {
  background: #ffebee;
  color: #d32f2f;
}

/* Favorite button styles for main pages */
.favorite-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  font-size: 1rem;
}

.favorite-btn:hover {
  background: #ffebee;
  color: #d32f2f;
}

.favorite-btn i.fa-solid {
  color: #ff0000 !important;
}

@media (max-width: 600px) {
  .favorite-main {
    padding: 10px;
  }
  
  .favorite-header {
    padding: 1.5rem;
  }
  
  .favorite-header h1 {
    font-size: 1.5rem;
  }
  
  .subscription-alert {
    padding: 1.5rem;
  }
  
  .subscription-alert i {
    font-size: 2rem;
  }
  
  .subscription-alert h3 {
    font-size: 1.2rem;
  }
  
  .favorite-posts-list .post-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0 10px;
  }
  
  .favorite-posts-list .share-btn,
  .favorite-posts-list .download-btn,
  .favorite-posts-list .remove-favorite-btn,
  .favorite-btn {
    padding: 12px;
    font-size: 1rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --- User Account Page Styles --- */
.user-account-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.user-account-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.user-account-header h1 {
  margin: 0 0 1rem 0;
  color: #333;
  font-size: 2rem;
  font-weight: 600;
}

.user-account-header h1 i {
  color: #ff0000;
  margin-right: 0.5rem;
}

.user-account-header p {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
}

.error-alert {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.error-alert i {
  font-size: 3rem;
  color: #dc3545;
  margin-bottom: 1rem;
}

.error-alert h3 {
  margin: 0 0 1rem 0;
  color: #721c24;
  font-size: 1.5rem;
}

.error-alert p {
  margin: 0 0 1.5rem 0;
  color: #721c24;
  font-size: 1rem;
  line-height: 1.6;
}

.user-info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-avatar {
  width: 80px;
  height: 80px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar i {
  font-size: 2rem;
  color: #666;
}

.user-details {
  flex: 1;
}

.user-details h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
}

.user-details p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-btn {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #333;
}

.action-btn:hover {
  border-color: #ff0000;
  background: #fff5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.1);
}

.action-btn i {
  font-size: 1.2rem;
  color: #ff0000;
}

@media (max-width: 600px) {
  .user-account-main {
    padding: 10px;
  }
  
  .user-account-header {
    padding: 1.5rem;
  }
  
  .user-account-header h1 {
    font-size: 1.5rem;
  }
  
  .error-alert {
    padding: 1.5rem;
  }
  
  .error-alert i {
    font-size: 2rem;
  }
  
  .error-alert h3 {
    font-size: 1.2rem;
  }
  
  .user-info-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
  }
  
  .user-avatar i {
    font-size: 1.5rem;
  }
  
  .action-btn {
    padding: 1rem;
    font-size: 1rem;
  }
}

/* --- Custom Popup Styles --- */
/* Override browser default prompt styles */
.prompt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.prompt-modal {
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid #e1e8ed;
}

.prompt-header {
  color: #333333;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.prompt-message {
  color: #555555;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.5;
}

.prompt-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ff0000;
  border-radius: 8px;
  background: #ffffff;
  color: #333333;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.prompt-input:focus {
  outline: none;
  border-color: #cc0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.prompt-input::placeholder {
  color: #999999;
}

.prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.prompt-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.prompt-btn.cancel {
  background: #7f8c8d;
  color: #ffffff;
}

.prompt-btn.cancel:hover {
  background: #6c7b7d;
}

.prompt-btn.ok {
  background: #ff0000;
  color: #ffffff;
}

.prompt-btn.ok:hover {
  background: #cc0000;
}

.prompt-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .prompt-modal {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .prompt-header {
    font-size: 1rem;
  }
  
  .prompt-message {
    font-size: 0.9rem;
  }
  
  .prompt-buttons {
    flex-direction: column;
  }
  
  .prompt-btn {
    width: 100%;
    padding: 12px 20px;
  }
} 