/* YMYL Warning Component Styles */

/* YMYL Warning Button Styles */
.ymyl-warning-btn-wrapper {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 100;
  pointer-events: none;
}

.ymyl-warning-btn-wrapper[data-position="top-left"] {
  top: 15px;
  right: auto;
  left: 15px;
}

.ymyl-warning-btn-wrapper[data-position="bottom-right"] {
  top: auto;
  bottom: 15px;
  right: 15px;
}

.ymyl-warning-btn-wrapper[data-position="bottom-left"] {
  top: auto;
  bottom: 15px;
  right: auto;
  left: 15px;
}

.ymyl-warning-btn {
  background: #ff6b35;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  font-family: "Eastman", "Verdana", sans-serif;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.ymyl-warning-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.ymyl-warning-btn:hover {
  background: #ff7b45;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.ymyl-warning-btn:hover::before {
  left: 100%;
}

.ymyl-warning-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* YMYL Modal Styles */
.ymyl-modal {
  display: none !important;
  position: fixed !important;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ymyl-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.ymyl-modal-content {
  background-color: #121a29;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: slideDown 0.3s ease;
  border: 2px solid #ff6b35;
}

.ymyl-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ff6b35;
}

.ymyl-modal-header p {
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  font-family: "Eastman", "Verdana", sans-serif;
}

.ymyl-modal-close {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.ymyl-modal-close:hover,
.ymyl-modal-close:focus {
  color: #ff6b35;
  background-color: rgba(255, 107, 53, 0.1);
  transform: rotate(90deg);
}

.ymyl-modal-body {
  color: #bdbfc3;
  font-size: 16px;
  line-height: 1.6;
  font-family: "Eastman", "Verdana", sans-serif;
}

.ymyl-modal-body p {
  margin-bottom: 15px;
  color: #bdbfc3;
}

.ymyl-modal-body strong {
  color: #ffffff;
  font-weight: 700;
}

.ymyl-modal-body ul {
  margin: 15px 0;
  padding-left: 20px;
}

.ymyl-modal-body li {
  margin-bottom: 10px;
  color: #bdbfc3;
}

.ymyl-warning-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #ff6b35;
  border-radius: 50%;
  color: #ffffff;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Author box specific styles - smaller, more subtle badge */
.ymyl-warning-btn-wrapper.ymyl-author-box {
  position: static;
  display: inline-block;
  margin-left: auto;
}

.ymyl-warning-btn-wrapper.ymyl-author-box .ymyl-warning-btn {
  font-size: 10px;
  padding: 5px 12px;
  letter-spacing: 0.3px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.85) 0%, rgba(255, 107, 53, 0.75) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  font-weight: 600;
}

.ymyl-warning-btn-wrapper.ymyl-author-box .ymyl-warning-btn:hover {
  background: linear-gradient(135deg, rgba(255, 123, 69, 0.9) 0%, rgba(255, 107, 53, 0.8) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ymyl-warning-btn-wrapper.ymyl-author-box .ymyl-warning-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .ymyl-warning-btn-wrapper {
    top: 15px;
    right: 15px;
  }

  .ymyl-warning-btn-wrapper[data-position="top-left"] {
    top: 15px;
    left: 15px;
  }

  .ymyl-warning-btn-wrapper[data-position="bottom-right"] {
    bottom: 15px;
    right: 15px;
  }

  .ymyl-warning-btn-wrapper[data-position="bottom-left"] {
    bottom: 15px;
    left: 15px;
  }

  .ymyl-warning-btn {
    font-size: 13px;
    padding: 6px 12px;
    letter-spacing: 0.3px;
  }

  .ymyl-warning-btn-wrapper.ymyl-author-box .ymyl-warning-btn {
    font-size: 10px;
    padding: 3px 8px;
  }

  .ymyl-modal-content {
    padding: 20px;
    width: 95%;
  }

  .ymyl-modal-header p {
    font-size: 20px;
  }
}
