/* styles.css - полная версия */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 100%;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    margin: 20px auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.card-wide {
    max-width: 1200px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
}

.tagline {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #2c3e50;
    font-weight: 500;
}

/* Заголовки категорий и тегов */
.category-header, .tag-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.category-icon, .tag-icon {
    font-size: 28px;
    margin-right: 15px;
    color: #667eea;
}

.category-title, .tag-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

/* Списки вопросов */
.questions-list {
    margin-bottom: 30px;
}

.question-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.question-item:hover {
    background-color: #e9ecef;
}

.question-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.question-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.question-link:hover .question-title {
    color: #667eea;
}

.question-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.meta-item i {
    margin-right: 5px;
    color: #667eea;
}

.question-excerpt {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.question-link:hover .question-excerpt {
    color: #555;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover, .page-link.active {
    background: #667eea;
    color: white;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #666;
}

/* Вопрос пользователя */
.question-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.question-title-main {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.user-info {
    margin-bottom: 15px;
}

.user-details h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 5px;
}

.question-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.question-text p {
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag a{
    background: #e9ecef;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Ответ психолога */
.answer-section {
    margin-top: 30px;
}

.psychologist-info {
    margin-bottom: 25px;
}

.psychologist-details h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 5px;
}

.psychologist-title {
    color: #667eea;
    font-size: 15px;
    font-weight: 500;
}

.answer-image {
    margin-bottom: 20px;
}

.answer-image img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

.answer-text {
    line-height: 1.7;
}

.answer-text p {
    margin-bottom: 20px;
}

.answer-text h4 {
    color: #2c3e50;
    font-size: 18px;
    margin: 25px 0 15px;
}

/* Категории */
.section-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.intro-text {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.category-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-header-small {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.category-icon-small {
    font-size: 24px;
    margin-right: 12px;
    color: #667eea;
}

.category-title-small {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.category-questions {
    margin-bottom: 15px;
}

.see-all {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.see-all:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* CTA секция */
.cta-section {
    text-align: center;
    margin: 40px 0 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.cta-text {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.anonymity-note {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button-block {
    display: block;
    width: 100%;
    padding: 18px;
}

/* Футер и юридические ссылки */
.footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    font-size: 14px;
}

.legal-links {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    color: #888;
    font-size: 12px;
    line-height: 1.8;
}

.legal-links a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: 1fr;
    }

    .category-header, .tag-header {
        flex-direction: column;
        text-align: center;
    }

    .category-icon, .tag-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .question-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .card {
        margin: 10px auto;
        padding: 20px 15px;
    }

    h1 {
        font-size: 24px;
    }

    .question-title-main, .category-title, .tag-title {
        font-size: 20px;
    }

    .question-meta {
        flex-direction: column;
        gap: 10px;
    }

    .legal-links {
        font-size: 11px;
        padding: 10px;
    }

    .legal-links a {
        display: block;
        margin: 5px 0;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .cta-button {
        padding: 16px;
        font-size: 16px;
    }

    .category-card {
        padding: 15px;
    }
}
