/**
 * Madara Chapter Plus Public Styles
 */

/* --- 1. MODAL STYLES --- */
.madara-cp-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.madara-cp-modal-content {
  background: #1a1a1a;
  border-radius: 24px;
  width: 90%;
  max-width: 420px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: #fff;
  animation: cpZoomIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes cpZoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cp-lock-icon {
  font-size: 50px;
  color: #ff3333;
  margin-bottom: 20px;
  border: 3px solid #333;
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: #000;
}

.cp-chapter-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #fff;
  text-transform: uppercase;
}

.cp-num {
  color: #ff3333;
}

.cp-subtitle {
  color: #cccccc;
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: 500;
}

.cp-timer-box {
  background: #252525;
  border-radius: 50px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  border: 1px solid #333;
}

.cp-timer-icon {
  color: #999;
  font-size: 20px;
}

.cp-timer-text {
  text-align: left;
  line-height: 1.2;
}

.cp-info-text {
  display: block;
  font-size: 13px;
  color: #999;
}

.cp-countdown-display {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #ff3333;
}

.cp-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ff3333;
  color: #fff;
  text-decoration: none;
  padding: 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  transition:
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
  border: none;
  width: 100%;
  cursor: pointer;
}

.cp-btn-primary:hover {
  background: #e60000;
  transform: translateY(-2px);
  color: #fff;
}

.cp-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #333;
  color: #ccc;
  text-decoration: none;
  padding: 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 25px;
  transition: background 0.2s;
  border: none;
  width: 100%;
  cursor: pointer;
}

.cp-btn-secondary:hover {
  background: #444;
  color: #fff;
}

.cp-footer-text {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* --- 2. LIST VIEW UNLOCK INFO --- */
.madara-cp-list-info {
  font-size: 11px;
  color: #ff3333;
  margin-top: 2px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 10px;
}
.madara-cp-list-info i {
  font-size: 12px;
}

/* --- 3. RAW TAG --- */
.madara-raw-tag .raw-badge {
  background: #000;
  color: #ff3333;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid #ff3333;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
}

/* --- 4. HEADER TIMER --- */
.madara-unlock-timer {
  background: #000;
  border: 1px solid #333;
  border-left: 5px solid #ff3333;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.madara-unlock-timer .unlock-message {
  color: #fff;
  font-weight: 600;
  margin: 0;
}
.madara-unlock-timer .timer-countdown {
  color: #ff3333;
  font-weight: 700;
  font-size: 1.2em;
}
