/* =========================================
   VARIABLES (LIGHT ONLY)
========================================= */

.ccg-all-authors span {
  font-weight: bold;
}

:root {
  --ccg-primary: #4caf50;
  --ccg-secondary: #2196f3;
  --ccg-danger: #f44336;

  --ccg-bg-main: #f5f7fa;
  --ccg-bg-card: #ffffff;

  --ccg-text-main: #2c3e50;
  --ccg-text-muted: #6c757d;

  --ccg-border: #e0e0e0;
  --ccg-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* =========================================
   BASE
========================================= */
body {
  background: var(--ccg-bg-main);
}

.ccg-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  font-family: Tahoma, 'Segoe UI', sans-serif;
}

.ccg-box {
  background: var(--ccg-bg-card);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid var(--ccg-border);
  box-shadow: var(--ccg-shadow);
  color: var(--ccg-text-main);
}

.ccg-title {
  text-align: center;
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--ccg-secondary);
}

/* =========================================
   SEARCH
========================================= */
.ccg-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.ccg-input {
  flex: 1;
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid var(--ccg-border);
  background: var(--ccg-bg-card);
  color: var(--ccg-text-main);
}

.ccg-input:focus {
  outline: none;
  border-color: var(--ccg-primary);
}

/* =========================================
   BUTTONS
========================================= */
.ccg-btn {
  background: linear-gradient(135deg, #4caf50, #43a047);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.25s;
}

.ccg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.ccg-cancel {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

/* =========================================
   STATUS
========================================= */
.ccg-status {
  margin-bottom: 20px;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  display: none;
  justify-content: center;
}

.ccg-loading {
  background: #fff3cd;
  color: #856404;
  display: flex !important;
}

.ccg-success {
  background: #d4edda;
  color: #155724;
  display: flex !important;
}

.ccg-error {
  background: #f8d7da;
  color: #721c24;
  display: flex !important;
}

/* =========================================
   RESULTS
========================================= */
.ccg-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ccg-result-card {
  background: var(--ccg-bg-card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--ccg-border);
  box-shadow: var(--ccg-shadow);
  position: relative;
}

.ccg-result-card::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--ccg-primary);
}

.ccg-result-title {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--ccg-border);
  padding-bottom: 10px;
}

.ccg-result-details {
  font-size: 14px;
  color: var(--ccg-text-muted);
}

.ccg-result-details div {
  margin-bottom: 6px;
}

/* =========================================
   AUTHOR RADIO
========================================= */
.ccg-author-radios {
  margin: 10px 0;
}

.ccg-author-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.ccg-author-radio:hover {
  background: rgba(0,0,0,0.05);
}

.ccg-author-radio input[type="radio"] {
  accent-color: var(--ccg-primary);
  transform: scale(1.15);
}

/* =========================================
   CERTIFICATE BUTTON
========================================= */
.ccg-generate-btn {
  width: 100%;
  margin-top: 12px;
}

/* =========================================
   HELP
========================================= */
.ccg-help {
  margin-top: 30px;
  padding: 18px;
  background: #eef5ff;
  border-radius: 10px;
  font-size: 14px;
  color: #2c3e50;
}

/* =========================================
   EMPTY
========================================= */
.ccg-empty {
  text-align: center;
  padding: 40px;
  color: var(--ccg-text-muted);
}


/* =========================
   PROGRESS BAR
========================= */
#ccg-progress-wrapper {
  margin: 20px 0;
  background: #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

#ccg-progress-bar {
  height: 22px;
  width: 0%;
  background: linear-gradient(135deg, #4caf50, #43a047);
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  transition: width 0.4s ease;
}

#ccg-progress-text {
  line-height: 22px;
}

/* =========================================
   SHORT MODE (MOBILE)
========================================= */
@media (max-width: 600px) {
  .ccg-container {
    padding: 10px;
  }

  .ccg-box {
    padding: 15px;
  }

  .ccg-search-row {
    flex-direction: column;
  }

  .ccg-title {
    font-size: 20px;
  }

  .ccg-btn {
    font-size: 14px;
    padding: 10px;
  }

  .ccg-result-title {
    font-size: 15px;
  }

  .ccg-result-details {
    font-size: 13px;
  }
}
