/* ── Writing checker page ── */

/* sidebar 2-panel slider */
.nav-panels-2 {
  display: flex;
  width: 200%;
  transition: transform 0.3s ease;
}
.nav-panels-2 .nav-panel { width: 50%; }

.wc-main {
  max-width: 780px;
  padding: 2.5rem 2rem 4rem;
}

.wc-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.wc-subtitle {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ── Form ── */
.wc-field { margin-bottom: 1.5rem; }

.wc-input-name {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-family: 'Google Sans', Arial, sans-serif;
  font-size: 0.95rem;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.wc-input-name:focus { outline: none; border-color: #1a1a1a; }

.wc-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.45rem;
}

.wc-textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-family: 'David Libre', serif;
  font-size: 1rem;
  line-height: 1.7;
  resize: vertical;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.wc-textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}
.wc-textarea-task  { min-height: 100px; }
.wc-textarea-essay { min-height: 280px; }

.wc-wordcount {
  font-size: 0.78rem;
  color: #bbb;
  text-align: left;
  margin-top: 0.3rem;
}

.wc-submit {
  display: block;
  width: 100%;
  padding: 0.95rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Google Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}
.wc-submit:hover { background: #333; }

/* ── Loading ── */
.wc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 4rem 0;
}

.wc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wc-loading-text { font-size: 0.9rem; color: #888; }

/* ── Results ── */
.wc-scores-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wc-scores-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #1a1a1a;
}

.wc-score-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.wc-score-label {
  font-size: 0.82rem;
  color: #444;
  flex: 1;
  min-width: 0;
}

.wc-score-bar-wrap {
  width: 70px;
  height: 4px;
  background: #f0f0ee;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.wc-score-bar {
  height: 100%;
  background: #1a1a1a;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.wc-score-num {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 1.8rem;
  text-align: center;
}

/* Score colors */
.score-1, .score-2 { color: #8B1A1A; }
.score-3            { color: #b36200; }
.score-4            { color: #555;    }
.score-5, .score-6  { color: #1a6e2e; }

/* ── Summary boxes ── */
.wc-summary-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.wc-summary-box {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.wc-summary-pos { background: #f0f7f0; color: #1a4d2e; }
.wc-summary-imp { background: #f5f5f3; color: #444; }

.wc-summary-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }

/* ── Feedback items ── */
.wc-feedback-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1.5px solid #1a1a1a;
}

.wc-fb-item {
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0ee;
}

.wc-fb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wc-fb-param {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a1a;
}

.wc-fb-score {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #f5f5f3;
}

.wc-fb-quote {
  font-family: 'David Libre', serif;
  font-size: 0.9rem;
  color: #666;
  border-right: 3px solid #ddd;
  margin: 0.4rem 0;
  padding: 0.3rem 0.8rem;
  direction: rtl;
}

.wc-fb-comment {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.6;
  margin: 0.3rem 0 0;
}

.wc-again {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: none;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Google Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.12s;
}
.wc-again:hover { background: #f5f5f3; }

@media (max-width: 640px) {
  .wc-scores-wrap, .wc-summary-wrap { grid-template-columns: 1fr; }
}
