/* Newsletter Styles - Luck & Fortune Finance */

/* ========== HOMEPAGE FORM - OFFSET SHADOW VARIANT ========== */

/* Ensure subtitle is white on dark background */
#newsletter-signup .mbr-section-subtitle {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.nl-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.nl-input {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  outline: none;
  border: none;
}

.nl-input::placeholder {
  color: #9ca3af;
}

.nl-btn {
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border: none;
}

.nl-btn:disabled {
  cursor: default;
}

/* Offset Shadow Form Styles */
.offset-outer {
  position: relative;
}

.offset-shadow {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  transform: translate(4px, 4px);
  background: rgba(14, 189, 243, 0.3);
  transition: all 0.5s;
}

.offset-shadow.active {
  background: #0ebdf3;
  box-shadow: 0 0 20px rgba(14, 189, 243, 0.3);
}

.offset-inner {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.offset-inner.focused {
  border-color: #0ebdf3;
}

.offset-icon {
  margin-left: 16px;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.3s;
  flex-shrink: 0;
}

.offset-inner.focused .offset-icon {
  color: #0ebdf3;
}

.offset-inner .nl-input {
  flex: 1;
  background: transparent;
  color: #111;
  padding: 14px 16px;
}

.offset-btn {
  padding: 14px 24px;
  background: #0a0a0f;
  color: #fff;
  border: 1px solid #555;
  border-radius: 8px;
  margin: 4px 4px 4px 0;
  min-width: 120px;
}

.offset-btn:hover:not(:disabled) {
  background: #0ebdf3;
  border-color: #0ebdf3;
}

/* Message styling */
.newsletter-message {
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  display: none;
}

.newsletter-message--success {
  background: rgba(40, 167, 69, 0.9);
  color: #fff;
  border: 1px solid rgba(40, 167, 69, 1);
  animation: fadeIn 0.3s ease;
}

.newsletter-message--error {
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  border: 1px solid rgba(220, 53, 69, 1);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== ADMIN PANEL ========== */
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0;
}

.admin-tab {
  padding: 12px 24px;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 500;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: #0ebdf3;
}

.admin-tab.active {
  color: #0ebdf3;
  border-bottom-color: #0ebdf3;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
}

.badge-active {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.badge-pending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.badge-approved {
  background: rgba(14, 189, 243, 0.1);
  color: #0ebdf3;
}

.badge-unsubscribed {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.badge-draft {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.badge-sending {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.badge-sent {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

/* Modal - starts hidden, shown via JS */
.modal {
  background: rgba(0, 0, 0, 0.5);
  z-index: 10500;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 150px 20px 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  max-height: 73vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Jost', sans-serif;
}

.table th,
.table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.table th {
  font-weight: 600;
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.page-info {
  color: #666;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
}

/* Alerts */
.alert {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: 'Jost', sans-serif;
}

.alert-success {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Form elements */
.form-label {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .offset-inner {
    flex-direction: column;
  }

  .offset-btn {
    width: 100%;
    margin: 0 4px 4px 4px;
  }

  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
