/* ========================================
   ACTIVATION — widget-*, struct-*, star-*,
   phase accordion, structure cards & practice
   ======================================== */

.star-list { display: flex; flex-direction: column; gap: 0.5rem; }
.star-item { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 2.5rem 0.75rem 0.75rem; }
.star-text { font-size: 0.95rem; }
.star-meta { margin-top: 0.2rem; }
/* Activation sections */
.widget-section { margin-bottom: 1.5rem; }
.widget-section-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.widget-row-wrap { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.widget-row-wrap .widget-row { flex: 1; }
.widget-action {
  font-size: 1.5rem; text-decoration: none; padding: 4px 6px;
  color: #6b7280; cursor: pointer; border: none; background: none;
  transition: color 0.15s; flex-shrink: 0;
}
.widget-action:hover { color: var(--primary); text-decoration: none; }
.widget-remove { font-size: 0.9rem; color: #d1d5db; }
.widget-remove:hover { color: var(--danger); }
.widget-row-phrase .widget-fill { background: #3b82f6; }

.struct-browse-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f5f5f5; }
.struct-add-btn {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d1d5db;
  background: #fff; cursor: pointer; font-size: 0.9rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.15s;
}
.struct-add-btn:hover { border-color: var(--primary); color: var(--primary); }
.struct-add-btn.added { border-color: var(--success); color: var(--success); background: #f0fdf4; }
.struct-browse-title { font-size: 0.9rem; color: var(--fg); text-decoration: none; }
.struct-browse-title:hover { color: var(--primary); text-decoration: none; }

/* Widget-style phrase list */
.widget-list { display: flex; flex-direction: column; gap: 6px; }
.widget-row {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid #f59e0b33;
  background: #fff; cursor: pointer; overflow: hidden;
  text-align: left; font-size: 0.95rem; width: 100%;
  transition: transform 0.1s;
}
.widget-row:active { transform: scale(0.98); }
.widget-plus { color: #9ca3af; font-size: 1.2rem; font-weight: 300; z-index: 1; flex-shrink: 0; }
.widget-text { z-index: 1; line-height: 1.3; }
.widget-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: #f59e0b; opacity: 0.2; border-radius: 10px;
  transition: width 0.3s ease;
}

.btn-unstar { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0.25rem; }
.btn-unstar:hover { color: var(--danger); }

/* --- Nav --- */
nav { display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
nav .brand { font-weight: 700; font-size: 1.1rem; }
nav .links { display: flex; gap: 1rem; align-items: center; }
nav .links a { font-size: 0.9rem; }

/* Cards */
.card { background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.25rem; }
.card .meta { color: var(--muted); font-size: 0.85rem; }

/* Forms */
form { margin-bottom: 1rem; }
label { display: block; font-weight: 500; margin-bottom: 0.25rem; font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; margin-bottom: 0.75rem; }
textarea { min-height: 60px; resize: vertical; }
input[type="file"] { margin-bottom: 0.75rem; }

/* Buttons */

.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--fg); }
.btn-outline.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.btn-icon { background: var(--primary); color: #fff; border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; }
.btn-icon:hover { background: var(--primary-hover); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #dbeafe; color: #1e40af; }

