:root {
    --accent-color: #0056b3;
    --accent-color-light: #e6f0ff;
    --text-dark: #333;
    --text-light: #555;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
    background-color: var(--accent-color-light);
    border-radius: 6px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}

.nav-link.active i {
    color: var(--accent-color);
}

.prose {
    line-height: 1.7;
}

.prose h3 {
    font-size: 1.25rem;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.prose p, .prose ul, .prose blockquote {
    color: var(--text-light);
}

/* Terminology Item */
.term-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.term-header {
    cursor: pointer;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.term-header:hover {
    background-color: #f9fafb;
}

.term-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding: 0 1.5rem;
}

.term-item.active .term-details {
    max-height: 1000px; /* Large enough for content */
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.term-item.active .term-chevron {
    transform: rotate(180deg);
}

.term-chevron {
    transition: transform 0.3s ease;
}


/* Argument Card */
.argument-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    display: flex;
    flex-direction: column;
}

.argument-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -2px rgb(0 0 0 / 0.07);
}

.strength-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.strength-Сильная {
    background-color: #dcfce7;
    color: #166534;
}

.strength-Умеренная {
    background-color: #fef3c7;
    color: #92400e;
}

.strength-Слабая {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Critique Card */
.critique-card {
    background-color: white;
    border-left: 4px solid;
    border-color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.critique-card.priority-Высокий {
    border-color: #ef4444;
}
.critique-card.priority-Средний {
    border-color: #f97316;
}

/* Accordion */
.accordion-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    cursor: pointer;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.accordion-content .prose {
    padding: 1.5rem;
    padding-top: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500vh; /* Large value for content */
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-chevron {
    transition: transform 0.3s ease;
}

/* Concept Map */
.concept-node {
    position: absolute;
    background-color: var(--accent-color-light);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--accent-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.2s ease;
}
.concept-node:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
    z-index: 10;
}

.concept-line {
    stroke: #9ca3af;
    stroke-width: 1.5;
    fill: none;
}

.concept-arrow {
    fill: #9ca3af;
}

.relation-label {
    font-size: 11px;
    fill: #6b7280;
    font-style: italic;
    text-anchor: middle;
}
