/* === MODAL STYLING === */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 700px;
  position: relative;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #000;
}

/* === HEADER SECTION === */
.modal-header-top {
  text-align: center;
  margin-bottom: 20px;
}
.modal-header-top h2 {
  margin: 0;
  font-size: 26px;
  color: #007bff;
  font-weight: 700;
}

.blog-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.blog-title {
  font-size: 18px;
  font-weight: bold;
  flex: 1;
  text-align: left;
}
.blog-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-left: 15px;
}

/* === SCORE METER SECTION === */
.seo-score-section {
  background: #007bff;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.seo-score-section h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.seo-meter-bar {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}
.seo-meter-fill {
  height: 100%;
  background-color: green;
  border-radius: 12px;
  transition: width 0.6s ease-in-out;
}
.seo-meter-score {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  color: #fff;
}

/* === TOGGLE STYLES (OPTIONAL IF ENABLED) === */
.score-toggle {
  text-align: center;
  margin-bottom: 10px;
}
.toggle-btn {
  margin: 0 5px;
  padding: 6px 12px;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  border-radius: 4px;
}
.toggle-btn.active {
  background-color: #0056b3;
  color: white;
}

/* === MARKDOWN & CONTENT === */
.analysis-output {
  font-size: 16px;
  line-height: 1.6;
  padding: 10px;
}
.analysis-output h3 {
  background: #007bff;
  color: white;
  padding: 10px;
  margin-top: 20px;
  border-radius: 4px;
  font-size: 18px;
}
.analysis-output ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.analysis-output li {
  margin-bottom: 8px;
}
