/* Description.css - Компактный и симметричный стиль */

.description-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid rgba(19, 135, 58, 0.3);
    border-radius: 10px;
    color: #fff;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Заголовки - симметричные отступы */
.description-content h1 {
    color: #13873a;
    margin: 0 0 25px 0;
    font-size: 1.9rem;
    font-weight: 600;
    text-align: center;
    padding: 0 0 15px 0;
    border-bottom: 2px solid rgba(19, 135, 58, 0.4);
}

.description-content h2 {
    color: #16a34a;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
    padding-left: 15px;
    border-left: 4px solid #13873a;
}

.description-content h3 {
    color: #4ade80;
    margin: 25px 0 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Текст - равномерные отступы */
.description-content p {
    margin: 15px 0;
    color: #d1d5db;
    font-size: 1rem;
}

.description-content strong {
    color: #fff;
    font-weight: 700;
    padding: 1px 3px;
    background: rgba(19, 135, 58, 0.15);
    border-radius: 3px;
}

.description-content em {
    color: #e5e7eb;
    font-style: italic;
}

.description-content s {
    color: #9ca3af;
    text-decoration: line-through;
}

.description-content code {
    background: rgba(19, 135, 58, 0.2);
    color: #4ade80;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(19, 135, 58, 0.3);
}

/* Ссылки */
.text-link {
    color: #13873a;
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 135, 58, 0.4);
    padding-bottom: 1px;
    transition: all 0.2s;
}

.text-link:hover {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

/* Цитаты */
.description-content blockquote {
    border-left: 4px solid #13873a;
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(19, 135, 58, 0.1);
    color: #d1d5db;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

/* Списки */
.markdown-list {
    margin: 15px 0 15px 30px;
    color: #d1d5db;
    padding-left: 0;
}

.markdown-list li {
    margin: 8px 0;
    font-size: 1rem;
    padding-left: 10px;
}

/* Спойлеры - компактные */
.description-content details.spoiler {
    background: rgba(19, 135, 58, 0.1);
    border: 1px solid rgba(19, 135, 58, 0.3);
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
}

.description-content details.spoiler[open] {
    background: rgba(19, 135, 58, 0.15);
}

.description-content details.spoiler summary {
    padding: 15px;
    background: rgba(19, 135, 58, 0.2);
    color: #13873a;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-content details.spoiler summary::-webkit-details-marker {
    display: none;
}

.description-content details.spoiler summary::before {
    content: '▶';
    font-size: 0.8rem;
    transition: transform 0.2s;
    color: #13873a;
}

.description-content details.spoiler[open] summary::before {
    content: '▼';
    transform: rotate(0deg);
}

.description-content details.spoiler .spoiler-content {
    padding: 20px;
    color: #d1d5db;
    border-top: 1px solid rgba(19, 135, 58, 0.3);
    font-size: 0.95rem;
}

/* Таблицы */
.table-wrapper {
    margin: 25px 0;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(19, 135, 58, 0.4);
    background: rgba(28, 33, 41, 0.95);
    position: relative;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    font-size: 0.95rem;
}

.content-table thead {
    background: linear-gradient(to bottom, rgba(19, 135, 58, 0.3), rgba(19, 135, 58, 0.2));
}

.content-table th {
    color: #4ade80;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid rgba(19, 135, 58, 0.5);
    white-space: nowrap;
}

.content-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    word-break: break-word;
}

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

.content-table tbody tr:hover {
    background: rgba(19, 135, 58, 0.08);
}

.table-link {
    color: #13873a;
    text-decoration: none;
    border-bottom: 1px solid rgba(19, 135, 58, 0.4);
    padding-bottom: 1px;
    transition: all 0.2s;
}

.table-link:hover {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

/* Адаптивность - симметричные изменения */
@media (max-width: 768px) {
    .description-content {
        padding: 20px;
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .description-content h1 {
        font-size: 1.6rem;
        margin: 0 0 20px 0;
        padding: 0 0 12px 0;
    }
    
    .description-content h2 {
        font-size: 1.4rem;
        margin: 25px 0 12px 0;
        padding-left: 12px;
    }
    
    .description-content h3 {
        font-size: 1.2rem;
        margin: 20px 0 10px 0;
    }
    
    .description-content p {
        margin: 12px 0;
        font-size: 0.95rem;
    }
    
    .markdown-list {
        margin: 12px 0 12px 25px;
    }
    
    .content-table th,
    .content-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .description-content details.spoiler {
        margin: 15px 0;
    }
    
    .description-content blockquote {
        margin: 15px 0;
        padding: 12px 15px;
    }
    
    .table-wrapper {
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .description-content {
        padding: 15px;
        margin: 0 5px;
    }
    
    .description-content h1 {
        font-size: 1.4rem;
    }
    
    .markdown-list {
        margin-left: 20px;
    }
    
    .content-table th,
    .content-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .table-wrapper {
        margin: 15px 0;
    }
}