/*
  Distance_Practice - Study Hub
  Canonical UI design system (locked):
  - Soft light background
  - Rounded white cards with subtle shadows
  - Calm typography + spacing
  - Green primary buttons
  - Blue secondary buttons
*/

.dp-study-wrap{
  max-width: 980px;
  margin: 28px auto;
  padding: 0 14px 28px;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  position: relative;
}

/* Soft background behind the whole page area without touching theme/body */
.dp-study-wrap:before{
  content: '';
  position: fixed;
  inset: 0;
  background: #f6f7fb;
  z-index: -1;
}

.dp-study-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
  padding: 18px;
  margin-bottom: 14px;
}

.dp-study-card.dp-study-card-content{
  padding: 18px;
}

.dp-study-header{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.dp-study-title{
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #0f172a;
}

.dp-study-subtitle{
  font-size: 14px;
  color: #6b7280;
}

.dp-study-steps{
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.dp-step{
  font-size: 13px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 7px 11px;
  color: #6b7280;
  background: #f8fafc;
}

.dp-step-active{
  color: #0f172a;
  background: rgba(16,163,127,.10);
  border-color: rgba(16,163,127,.28);
}

.dp-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

@media (max-width: 720px){
  .dp-grid{ grid-template-columns: 1fr; }
}

.dp-field label{
  display: block;
  font-size: 13px;
  color: #111827;
  margin-bottom: 6px;
  font-weight: 700;
}

.dp-field select{
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.14);
  background: #ffffff;
  font-size: 14px;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.dp-field select:focus{
  border-color: rgba(16,163,127,.55);
  box-shadow: 0 0 0 4px rgba(16,163,127,.14);
}

.dp-field select:disabled{
  background: #f3f4f6;
  color: #9ca3af;
}

.dp-hint{
  font-size: 12px;
  color: #6b7280;
  margin-top: 7px;
}

.dp-study-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.dp-btn{
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  padding: 10px 16px;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
}

.dp-btn:active{ transform: translateY(1px); }

/* Primary = green */
.dp-btn-primary{
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22,163,74,.18);
}

.dp-btn-primary:hover{ filter: brightness(.98); }

/* Secondary = blue (available for future use in this plugin) */
.dp-btn-secondary{
  background: #eff6ff;
  border-color: rgba(37,99,235,.28);
  color: #1d4ed8;
}

.dp-btn-secondary:hover{ filter: brightness(.99); }

.dp-study-summary{
  font-size: 13px;
  color: #374151;
  margin-bottom: 10px;
  font-weight: 700;
}

.dp-study-empty{
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #6b7280;
  border: 1px solid rgba(0,0,0,.06);
}

.dp-study-block{
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  padding: 14px;
  margin-top: 10px;
  background: #ffffff;
}

.dp-block-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 8px;
  color: #0f172a;
}

.dp-block-body{
  font-size: 15px;
  line-height: 1.6;
  color: #111827;
}

.dp-link{
  color: #1d4ed8;
  font-weight: 800;
  text-decoration: none;
}

.dp-link:hover{ text-decoration: underline; }

.dp-study-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:#ffffff;
  border:1px solid rgba(0,0,0,.07);
  border-radius:20px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  padding:14px 16px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.dp-study-brand{
  font-size:20px;
  font-weight:800;
  color:#0f172a;
}
.dp-study-topnav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.dp-study-topbtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  font-weight:700;
}
.dp-study-topbtn-active{
  background:rgba(16,163,127,.10);
  border-color:rgba(16,163,127,.28);
}

.dp-study-actions-inline{justify-content:flex-start;gap:10px;flex-wrap:wrap}.dp-study-toggle{margin-top:10px;border:1px solid rgba(37,99,235,.28);border-radius:12px;padding:8px 12px;background:#eff6ff;color:#1d4ed8;font-weight:800;cursor:pointer}.dp-lang-block-tr{margin-top:12px;padding:12px;border-radius:14px;background:#fff8e1;border:1px dashed rgba(0,0,0,.12)}.dp-learning-list{margin:0;padding-left:20px}.dp-learning-list li+li{margin-top:10px}.dp-key-term{display:inline-block;padding:0 6px;border-radius:6px;background:#fff3cd;font-weight:700}
