/* Monetization Checker — Dedicated Styles */

/* Search bar */
#mc-url-input {
  flex: 1;
  padding: 1rem 1.5rem;
  padding-right: 260px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
#mc-url-input::placeholder { color: #64748b; }
#mc-url-input:focus { border-color: #ffffff; box-shadow: 0 0 25px rgba(255, 255, 255, 0.4); }

#mc-fetch-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 8px;
  background: #1877F2;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}
#mc-fetch-btn:hover { background: #1565C0; box-shadow: 0 6px 18px rgba(24, 119, 242, 0.6); }
#mc-fetch-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Verdict Card */
.mc-verdict {
  text-align: center;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 2px solid transparent;
}

.mc-verdict-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.mc-verdict h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.mc-verdict p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.mc-verdict-pass { border-color: #22c55e; }
.mc-verdict-pass .mc-verdict-icon { color: #22c55e; }
.mc-verdict-partial { border-color: #f59e0b; }
.mc-verdict-partial .mc-verdict-icon { color: #f59e0b; }
.mc-verdict-fail { border-color: #ef4444; }
.mc-verdict-fail .mc-verdict-icon { color: #ef4444; }

/* Score Bar */
.mc-score-bar {
  width: 100%;
  max-width: 400px;
  height: 12px;
  background: var(--bg-card);
  border-radius: 6px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.mc-score-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.mc-score-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.mc-score-label strong {
  color: var(--text-primary);
  font-size: 1.1rem;
}

/* Requirements Grid */
.mc-req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.mc-req-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.mc-req-card:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.mc-req-status {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.mc-req-info {
  flex: 1;
  min-width: 0;
}

.mc-req-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.mc-req-threshold {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.mc-req-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mc-req-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  min-width: 80px;
}

.mc-req-bar {
  width: 80px;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.mc-req-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
  background: #22c55e;
}

.mc-req-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Stats Grid */
.mc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.mc-stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.mc-stat-card:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.mc-stat-card i {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.mc-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.mc-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .mc-req-grid {
    grid-template-columns: 1fr;
  }
  .mc-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mc-verdict h2 {
    font-size: 1.3rem;
  }
  #mc-url-input {
    padding-right: 1.5rem;
  }
  #mc-fetch-btn {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
  }
}
