/* ACL Paywall Plugin Styles */

/* Login Form Styles */
.acl-paywall-login-form {
  max-width: 500px;
  margin: 20px 0;
  padding: 0;
  border: none;
  border-radius: 5px;
  background-color: transparent;
}

.acl-external-login-form {
  margin: 0;
}

.acl-form-field {
  margin-bottom: 15px;
}

.acl-form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.acl-form-field input[type="email"],
.acl-form-field input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  box-sizing: border-box;
}

.acl-form-field input[type="email"]:focus,
.acl-form-field input[type="password"]:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.acl-login-button {
  width: 100%;
  padding: 12px;
  background-color: #feda00;
  color: black;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.acl-login-button:hover {
  background-color: black;
  color: white;
}

.acl-login-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Error Messages */
.acl-paywall-error {
  background-color: #fcf2f2;
  color: #cc0000;
  padding: 10px;
  border: 1px solid #e6b3b3;
  border-radius: 3px;
  margin-bottom: 15px;
}

/* Success Messages */
.acl-paywall-success {
  background-color: #f2fcf2;
  color: #008000;
  padding: 10px;
  border: 1px solid #b3e6b3;
  border-radius: 3px;
  margin-bottom: 15px;
}

/* Protected Content Styles */
.acl-paywall-protected-content {
  background-color: #fff9e6;
  border: 1px solid #ffcc00;
  border-radius: 5px;
  padding: 20px;
  margin: 20px 0;
}

.acl-paywall-message {
  color: #666;
}

.acl-paywall-message p {
  margin: 0 0 10px 0;
}

.acl-login-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0073aa;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.acl-login-link:hover {
  background-color: #005a87;
  color: white;
  text-decoration: none;
}

/* Logout Link Styles */
.acl-logout-link {
  display: inline-block;
  padding: 5px 10px;
  background-color: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.acl-logout-link:hover {
  background-color: #c82333;
  color: white;
  text-decoration: none;
}

.acl-logged-out-message {
  color: #666;
  font-style: italic;
}

/* reCAPTCHA Styles */
.acl-form-field .g-recaptcha {
  margin: 10px 0;
}

/* Loading State */
.acl-external-login-form.loading .acl-login-button {
  background-color: #ccc;
  cursor: wait;
}

.acl-external-login-form.loading .acl-login-button:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: acl-spin 1s linear infinite;
  vertical-align: middle;
}

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

/* Responsive Design */
@media (max-width: 600px) {
  .acl-paywall-login-form {
    max-width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  .acl-form-field input[type="email"],
  .acl-form-field input[type="password"] {
    padding: 8px;
  }

  .acl-login-button {
    padding: 10px;
    font-size: 14px;
  }

  .acl-paywall-protected-content {
    padding: 15px;
    margin: 10px 0;
  }
}

/* Accessibility */
.acl-form-field input:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.acl-login-button:focus,
.acl-login-link:focus,
.acl-logout-link:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .acl-paywall-login-form {
    border: 2px solid #000;
  }

  .acl-form-field input[type="email"],
  .acl-form-field input[type="password"] {
    border: 2px solid #000;
  }

  .acl-login-button {
    border: 2px solid #000;
  }
}

/* Admin Bar Hiding */
body.acl-hide-admin-bar {
  margin-top: 0 !important;
}

body.acl-hide-admin-bar #wpadminbar {
  display: none !important;
}

/* Newspaper-Style Paywall */
.acl-paywall-members-content {
  position: relative;
}

.acl-paywall-fade-overlay {
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 150px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  opacity: 1;
  backdrop-filter: blur(3px);
}

.acl-highlight {
  background: #feda00;
  color: #222;
  font-style: italic;
  font-size: 42px;
  display: inline;
  line-height: 1.2;
  padding-left: 4px;
  padding-right: 4px;
}

.acl-paywall-newspaper-block {
  position: relative;
  margin-top: 40px;
  padding: 0;
  background: #222;
}

.acl-paywall-content-block {
  padding-left: 20px;
  padding-right: 20px;
}

.acl-paywall-content-block,
.acl-paywall-login-block {
  width: 50%;
}

.acl-paywall-message-box {
  padding-top: 5rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 3;
  display: flex;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.acl-paywall-lock-icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: #666;
}

.acl-paywall-lock-icon img {
  width: 70px;
}

.acl-paywall-message-box h2 {
  font-size: 36px;
  font-weight: bold;
  color: white;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 15px;
  display: inline-block;
  line-height: 1;
}

.acl-paywall-description {
  font-size: 18px;
  line-height: 1.6;
  color: white;
  font-weight: 400;
}

.acl-paywall-benefits {
  background: #feda00;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  max-width: 400px;
}

.acl-paywall-benefits p {
  font-size: 16px;
  color: black;
}

.acl-paywall-benefits img {
  width: 30px;
}

.acl-paywall-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acl-paywall-benefits li {
  padding: 10px 0;
  font-size: 15px;
  color: black;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acl-paywall-benefits li:last-child {
  border-bottom: none;
}

.acl-paywall-message-box .acl-paywall-login-form {
  max-width: 400px;
  margin: 30px auto 0;
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
}

.acl-paywall-message-box .acl-paywall-login-form .acl-login-button {
  background: #feda00;
  border: none;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: 35px;
  transition: all 0.3s;
  margin-top: 1rem;
}

.acl-paywall-message-box .acl-paywall-login-form .acl-login-button:hover {
  background: black;
  color: #feda00;
}

/* Newspaper typography */
.acl-paywall-newspaper-block * {
  /* font-family: 'Georgia', 'Times New Roman', serif; */
}

.acl-paywall-newspaper-block .acl-form-field input {
  /* font-family: 'Arial', 'Helvetica', sans-serif; */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .acl-paywall-message-box h2 {
    font-size: 24px;
  }
  
  .acl-paywall-description {
    font-size: 16px;
  }
  
  .acl-paywall-benefits {
    padding: 20px;
    margin: 20px 0;
  }
  
  .acl-paywall-message-box .acl-paywall-login-form {
    padding: 20px;
    margin: 20px auto 0;
  }
}

@media (max-width: 480px) {
  .acl-paywall-message-box h2 {
    font-size: 20px;
  }
  
  .acl-paywall-description {
    font-size: 15px;
  }
  
  .acl-paywall-benefits p {
    font-size: 14px;
  }
  
  .acl-paywall-benefits li {
    font-size: 13px;
  }
}

/* Modal Paywall Styles */
.acl-paywall-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.acl-paywall-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
}

.acl-paywall-modal-container {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
}

.acl-paywall-modal-content {
  position: relative;
  background: #222;
  border-radius: 12px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: aclModalSlideUp 0.3s ease-out;
}

@keyframes aclModalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.acl-paywall-close {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #feda00 !important;
  border: 2px solid #feda00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  color: black;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.acl-paywall-close:hover {
  color: white;
  background-color: black !important;
  border: 2px solid black !important;
}

.acl-paywall-modal-body {
  padding: 50px 40px 40px;
  display: flex;
  gap: 4rem;
  font-family: neue-haas-grotesk-text, sans-serif;
}

.acl-paywall-modal-body .acl-paywall-lock-icon img {
  width: 70px;
}

.acl-paywall-header {
  width: 50%;
  padding-top: 1.5rem;
}

.acl-paywall-modal-body h2 {
  /* font-family: 'Georgia', 'Times New Roman', serif; */
  font-family: neue-haas-grotesk-text, 'Comic';
  font-size: 32px;
  font-weight: bold;
  color: white;
  margin: 0 0 25px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

.acl-paywall-modal-body .acl-paywall-description {
  font-size: 18px;
  line-height: 1.6;
  color: white;
  margin: 0 0 30px 0;
  font-weight: 400;
}

.acl-paywall-modal-body .acl-paywall-description strong {
  text-decoration: underline;
}

.acl-paywall-modal-body .acl-paywall-benefits {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
  text-align: left;
}

.acl-paywall-modal-body .acl-paywall-benefits p {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.acl-paywall-modal-body .acl-paywall-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.acl-paywall-modal-body .acl-paywall-benefits li {
  padding: 8px 0;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #e9ecef;
}

.acl-paywall-modal-body .acl-paywall-benefits li:last-child {
  border-bottom: none;
}

.acl-paywall-modal-body .acl-paywall-login-form {
  width: 50%;
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
}

.acl-paywall-modal-body .acl-paywall-login-form .acl-login-button {
  background: #feda00;
  border: none;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-radius: 35px;
  transition: all 0.3s;
  margin-top: 1rem;
}

.acl-paywall-modal-body .acl-paywall-login-form .acl-login-button:hover {
  background: black;
  color: #feda00;
}

/* Responsive modal */
@media (max-width: 768px) {
  .acl-paywall-modal-body {
    display: block;
  }

  .acl-paywall-login-form {
    width: 100%;
  }

  .acl-paywall-modal-body .acl-paywall-login-form {
    width: 100%;
  }

  .acl-paywall-header {
    width: 100%;
  }

  .acl-paywall-modal {
    padding: 15px;
  }
  
  .acl-paywall-modal-body {
    padding: 40px 25px 25px;
  }
  
  .acl-paywall-modal-body h2 {
    font-size: 26px;
  }

  .acl-paywall-message-box {
    display: block;
  }

  .acl-paywall-benefits {
    max-width: 100%;
  }

  .acl-paywall-content-block,
  .acl-paywall-login-block {
    width: 100%;
  }
  
  .acl-paywall-modal-body .acl-paywall-description {
    font-size: 16px;
  }
  
  
  .acl-paywall-modal-body .acl-paywall-benefits {
    padding: 20px;
    margin: 20px 0;
  }
}

@media (max-width: 480px) {
  .acl-paywall-modal-content {
    border-radius: 8px;
  }
  
  .acl-paywall-modal-body h2 {
    font-size: 22px;
  }
  
  .acl-paywall-modal-body .acl-paywall-description {
    font-size: 15px;
  }

  .acl-paywall-modal-body .acl-paywall-description strong {
    text-decoration: underline;
  }
  
  .acl-paywall-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
    top: -12px;
    right: -12px;
  }
}

/* Print Styles */
@media print {
  .acl-paywall-login-form,
  .acl-logout-link,
  .acl-paywall-login-section,
  .acl-paywall-modal {
    display: none !important;
  }
}
