/**
 * BigBen CRM — Research Section Styles
 * Журнальный layout для исследований EduGrowth
 * Отличается от blog/article: speaker cards, progress bar, full-width секции
 */

/* ============================================
   Reading Progress Bar
   ============================================ */

.research-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ed538a, #c026d3);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   Research Hero
   ============================================ */

.research-hero {
    padding: 6.5rem 0 3rem;
    background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #fff7ed 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.research-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: rgba(192, 38, 211, 0.08);
    color: #a21caf;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.research-hero__title {
    font-family: 'PT Serif', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem;
    max-width: 780px;
}

.research-hero__subtitle {
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #4b5563;
    max-width: 680px;
    margin: 0 0 2rem;
}

.research-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.research-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.research-hero__meta-item svg,
.research-hero__meta-item i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* ============================================
   Research Layout (sidebar + content)
   ============================================ */

.research-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .research-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ============================================
   Sticky Sidebar ToC
   ============================================ */

.research-toc {
    position: sticky;
    top: 5.5rem;
}

@media (max-width: 900px) {
    .research-toc {
        display: none;
    }
}

.research-toc__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin: 0 0 1rem;
    padding: 0;
}

.research-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #f0f1f3;
}

.research-toc__item {
    margin: 0;
}

.research-toc__link {
    display: block;
    padding: 0.375rem 0 0.375rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #9ca3af;
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all 0.2s;
}

.research-toc__link:hover {
    color: #374151;
}

.research-toc__link.is-active {
    color: #a21caf;
    border-left-color: #c026d3;
    font-weight: 600;
}

/* ============================================
   Research Content
   ============================================ */

.research-content {
    max-width: 720px;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
}

.research-content h2 {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 3.5rem 0 1.25rem;
    padding-top: 1rem;
    line-height: 1.3;
}

.research-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 2.5rem 0 1rem;
    line-height: 1.35;
}

.research-content p {
    margin: 0 0 1.25rem;
}

.research-content a {
    color: #a21caf;
    text-decoration: underline;
    text-decoration-color: rgba(162, 28, 175, 0.3);
    text-underline-offset: 2px;
}

.research-content a:hover {
    text-decoration-color: #a21caf;
}

.research-content a.speakers-grid__card,
.research-content a.speakers-grid__card:hover {
    text-decoration: none;
    color: inherit;
}

.research-content ul,
.research-content ol {
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.research-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Speaker Quote Card — ключевой элемент
   ============================================ */

.speaker-quote {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #faf5ff;
    border-radius: 12px;
    border-left: 4px solid #c026d3;
    margin: 2rem 0;
}

.speaker-quote__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: white;
    background: linear-gradient(135deg, #c026d3, #a21caf);
    overflow: hidden;
}

.speaker-quote__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speaker-quote__body {
    flex: 1;
    min-width: 0;
}

.speaker-quote__text {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.65;
    color: #1a1a2e;
    margin: 0 0 0.75rem;
}

.speaker-quote__text::before {
    content: '\00AB';
    color: #c026d3;
    font-weight: 700;
}

.speaker-quote__text::after {
    content: '\00BB';
    color: #c026d3;
    font-weight: 700;
}

.speaker-quote__meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.speaker-quote__name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1a1a2e;
}

.speaker-quote__role {
    font-size: 0.8125rem;
    color: #6b7280;
}

.speaker-quote__link {
    font-size: 0.8125rem;
    color: #a21caf;
    text-decoration: none;
    font-weight: 500;
}

.speaker-quote__link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .speaker-quote {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem;
    }
}

/* ============================================
   Stat Accent — крупные цифры
   ============================================ */

.stat-accent {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid #f0f1f3;
    border-bottom: 1px solid #f0f1f3;
}

.stat-accent__number {
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #c026d3;
    line-height: 1;
    flex-shrink: 0;
}

.stat-accent__label {
    font-size: 1.0625rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ============================================
   Tables
   ============================================ */

.research-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.research-content thead th {
    text-align: left;
    font-weight: 700;
    color: #1a1a2e;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.research-content tbody td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f0f1f3;
    color: #374151;
    vertical-align: top;
}

.research-content tbody tr:hover {
    background: #faf5ff;
}

.research-content tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Data Section — full-width блоки
   ============================================ */

.research-data-section {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.research-data-section__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0 0 1.25rem;
}

/* ============================================
   Section Divider
   ============================================ */

.research-section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 2rem;
    color: #d1d5db;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.research-section-divider::before,
.research-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ============================================
   Speakers Grid (footer)
   ============================================ */

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.speakers-grid__card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #f0f1f3;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
}

a.speakers-grid__card {
    cursor: pointer;
    text-decoration: none;
}

a.speakers-grid__card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 2px 8px rgba(162, 28, 175, 0.08);
}

a.speakers-grid__card .speakers-grid__name {
    text-decoration: none;
}

a.speakers-grid__card .speakers-grid__desc {
    color: #a21caf;
    text-decoration: none;
}

.speakers-grid__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: white;
    background: linear-gradient(135deg, #c026d3, #a21caf);
    overflow: hidden;
}

.speakers-grid__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.speakers-grid__info {
    min-width: 0;
}

.speakers-grid__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speakers-grid__desc {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Mini CTA (между секциями)
   ============================================ */

.research-mini-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fdf2f8, #faf5ff);
    border: 1px solid #f5d0fe;
    border-radius: 10px;
    margin: 2rem 0;
}

.research-mini-cta__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.research-mini-cta__icon i,
.research-mini-cta__icon svg {
    width: 18px;
    height: 18px;
    color: #a21caf;
}

.research-mini-cta__text {
    flex: 1;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.research-mini-cta__text a {
    color: #a21caf;
    font-weight: 600;
    text-decoration: none;
}

.research-mini-cta__text a:hover {
    text-decoration: underline;
}
