/* Mind Market Page Styles */

.mind-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 5% 80px;
}

.mind-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.mind-hero-copy {
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(16px);
  padding: 2rem;
}

.mind-kicker {
  color: #67e8f9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.mind-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.04;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 58%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mind-hero p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mind-hero-panel {
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: rgba(3, 7, 18, 0.54);
  backdrop-filter: blur(18px);
  padding: 1.5rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.mind-panel-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mind-panel-row:last-child {
  border-bottom: 0;
}

.mind-panel-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #c4b5fd;
}

.mind-panel-title {
  font-weight: 700;
  color: var(--text-main);
}

.mind-panel-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.mind-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.mind-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mind-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mind-tab:hover,
.mind-tab.active {
  color: #e9d5ff;
  border-color: rgba(139, 92, 246, 0.62);
  background: rgba(139, 92, 246, 0.14);
}

.mind-search input {
  width: 240px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.mind-search input:focus {
  border-color: rgba(6, 182, 212, 0.55);
}

.mind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.35rem;
}

.mind-card {
  min-height: 250px;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(14px);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.24s, border-color 0.24s, box-shadow 0.24s;
}

.mind-card-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: auto;
}

.mind-example {
  border-left: 2px solid rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.06);
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.55;
  padding: 0.75rem 0.85rem;
}

.mind-example.compact {
  overflow-y: auto;
  min-height: 78px;
  max-height: 92px;
  padding-right: 0.95rem;
  scrollbar-color: rgba(103, 232, 249, 0.55) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.mind-example.compact::-webkit-scrollbar {
  width: 5px;
}

.mind-example.compact::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.mind-example.compact::-webkit-scrollbar-thumb {
  background: rgba(103, 232, 249, 0.55);
}

.mind-example span {
  display: block;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.mind-points-wrap {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.mind-points-wrap summary {
  cursor: pointer;
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
  padding: 0.55rem 0.75rem;
  user-select: none;
}

.mind-points-wrap summary::-webkit-details-marker {
  display: none;
}

.mind-points-wrap summary::after {
  content: "+";
  float: right;
  color: #67e8f9;
}

.mind-points-wrap[open] summary::after {
  content: "-";
}

.mind-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.38);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.08);
}

.mind-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.mind-card h2 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.25;
}

.mind-badge {
  border: 1px solid rgba(6, 182, 212, 0.36);
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.mind-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.mind-points {
  display: grid;
  gap: 0.45rem;
  margin-top: 0;
  padding: 0 0.75rem 0.7rem;
}

.mind-point {
  color: #cbd5e1;
  font-size: 0.84rem;
  padding-left: 0.85rem;
  position: relative;
}

.mind-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  background: #a78bfa;
}

.mind-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mind-submit {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(16px);
}

.mind-submit-copy h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.65rem;
}

.mind-submit-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.mind-form {
  display: grid;
  gap: 0.9rem;
}

.mind-form-row {
  display: grid;
  gap: 0.35rem;
}

.mind-form-row label {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
}

.mind-form-row input,
.mind-form-row select,
.mind-form-row textarea {
  width: 100%;
  border: 1px solid var(--glass-border);
  background: rgba(15, 23, 42, 0.62);
  color: var(--text-main);
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  padding: 0.65rem 0.8rem;
}

.mind-form-row textarea {
  resize: vertical;
}

.mind-form-row input:focus,
.mind-form-row select:focus,
.mind-form-row textarea:focus {
  border-color: rgba(6, 182, 212, 0.55);
}

.mind-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
}

.mind-form-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.mind-btn {
  border: 1px solid rgba(139, 92, 246, 0.42);
  background: rgba(139, 92, 246, 0.11);
  color: #ddd6fe;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
  transition: all 0.2s;
}

.mind-btn:hover {
  background: rgba(139, 92, 246, 0.22);
  border-color: rgba(139, 92, 246, 0.72);
}

.mind-btn.secondary {
  border-color: rgba(6, 182, 212, 0.38);
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
}

.mind-empty {
  display: none;
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 1rem;
}

.mind-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
}

.mind-modal.active {
  display: flex;
}

.mind-modal-card {
  width: min(840px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f172a;
  padding: 1.5rem;
}

.mind-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.mind-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.mind-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.mind-section {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
  margin-top: 1rem;
}

.mind-section h3 {
  color: #c4b5fd;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}

.mind-section ul,
.mind-section ol {
  padding-left: 1.2rem;
  color: #cbd5e1;
}

.mind-section li {
  margin: 0.35rem 0;
}

#mindModalExample {
  color: #dbeafe;
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .mind-hero {
    grid-template-columns: 1fr;
  }

  .mind-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .mind-submit {
    grid-template-columns: 1fr;
  }

  .mind-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mind-search input {
    width: 100%;
  }
}
