/* ============================================
   css/pro-relationships.css
   Стили страницы ПРО Отношения
   ============================================ */

/* === Контейнер === */
.pro-relationships-container {
    max-width: 1200px;
    margin: 0 auto 20px;
    background: var(--color-bg-primary);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-card);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* === Типографика === */
.pro-text-center { text-align: center; }
.pro-text-4xl { font-size: 32px; font-weight: 700; }
.pro-text-2xl { font-size: 22px; font-weight: 600; }
.pro-text-xl { font-size: 18px; font-weight: 500; }
.pro-text-lg { font-size: 16px; }
.pro-text-sm { font-size: 13px; }
.pro-font-bold { font-weight: 700; }
.pro-font-semibold { font-weight: 600; }
.pro-text-purple-700 { color: #6b46c1; }
.pro-text-purple-600 { color: #805ad5; }
.pro-text-gray-800 { color: var(--color-text-primary); }
.pro-text-gray-700 { color: var(--color-text-secondary); }
.pro-text-gray-600 { color: var(--color-text-secondary); }
.pro-text-gray-500 { color: var(--color-text-tertiary); }

/* === Отступы === */
.pro-mb-1 { margin-bottom: 4px; }
.pro-mb-2 { margin-bottom: 8px; }
.pro-mb-3 { margin-bottom: 12px; }
.pro-mb-4 { margin-bottom: 16px; }
.pro-mb-6 { margin-bottom: 24px; }
.pro-mb-8 { margin-bottom: 32px; }
.pro-mt-2 { margin-top: 8px; }
.pro-mt-3 { margin-top: 12px; }
.pro-mt-4 { margin-top: 16px; }
.pro-mr-1 { margin-right: 4px; }
.pro-mr-2 { margin-right: 8px; }
.pro-ml-2 { margin-left: 8px; }
.pro-p-6 { padding: 24px; }
.pro-px-4 { padding-left: 16px; padding-right: 16px; }
.pro-py-8 { padding-top: 32px; padding-bottom: 32px; }

/* === Flex === */
.pro-flex { display: flex; }
.pro-flex-col { flex-direction: column; }
.pro-items-center { align-items: center; }
.pro-items-start { align-items: flex-start; }
.pro-justify-center { justify-content: center; }
.pro-justify-between { justify-content: space-between; }
.pro-justify-end { justify-content: flex-end; }
.pro-flex-wrap { flex-wrap: wrap; }
.pro-relative { position: relative; }
.pro-w-full { width: 100%; }
.pro-max-w-md { max-width: 448px; }
.pro-mx-auto { margin-left: auto; margin-right: auto; }

/* === Кнопки === */
.pro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    gap: 6px;
}
.pro-button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.pro-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.pro-bg-purple-600 { background: #805ad5; color: #fff; }
.pro-bg-purple-600:hover { background: #6b46c1; }
.pro-bg-green-600 { background: #16a34a; color: #fff; }
.pro-bg-green-600:hover { background: #15803d; }
.pro-bg-red-600 { background: #dc2626; color: #fff; }
.pro-bg-red-600:hover { background: #b91c1c; }
.pro-bg-gray-600 { background: #4b5563; color: #fff; }
.pro-bg-gray-600:hover { background: #374151; }
.pro-border { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-secondary); }
.pro-border:hover { background: var(--color-bg-secondary); }
.pro-text-purple-600 { background: transparent; color: #805ad5; }
.pro-text-purple-600:hover { background: #faf5ff; }
.pro-text-red-600 { background: transparent; color: #dc2626; }
.pro-text-red-600:hover { background: #fef2f2; }

/* === Поля форм === */
.pro-input-text, .pro-select {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pro-input-text:focus, .pro-select:focus { outline: none; border-color: var(--color-brand); }

/* === Карточки === */
.pro-card {
    background: var(--color-bg-primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-card);
}

/* === Категории === */
.pro-categories-nav { margin-bottom: 24px; }
.pro-categories-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.pro-category-btn:hover { background: var(--color-bg-secondary); }
.pro-category-btn-active { background: #805ad5; border-color: #805ad5; color: #fff; }
.pro-category-btn-active:hover { background: #6b46c1; }
.pro-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    background: #e9d8fd;
}

/* === Поиск === */
.pro-search-input {
    width: 100%;
    padding: 11px 48px 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
}
.pro-search-input:focus { outline: none; border-color: var(--color-brand); }
.pro-search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}
.pro-search-button:hover { background: var(--color-bg-secondary); }

/* === Статьи (десктоп) === */
.pro-article-container {
    padding: 20px;
    background: var(--color-bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}
.pro-article-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #805ad5;
    cursor: pointer;
}
.pro-article-container h3:hover { color: #6b46c1; }

/* === Статьи (мобильные) === */
.pro-mobile-article-container {
    padding: 16px;
    background: var(--color-bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}
.pro-mobile-title {
    font-size: 18px;
    font-weight: 600;
    color: #805ad5;
    cursor: pointer;
}
.pro-mobile-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    color: var(--color-text-tertiary);
    font-size: 13px;
}

/* === Страница статьи === */
.pro-article-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.pro-article-info-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-tertiary);
    font-size: 14px;
}

/* === Контент статьи === */
.pro-prose {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 16px;
}
.pro-prose h2 { font-size: 22px; font-weight: 700; margin: 20px 0 12px; color: var(--color-text-primary); }
.pro-prose h3 { font-size: 18px; font-weight: 600; margin: 16px 0 8px; color: var(--color-text-primary); }
.pro-prose p { margin-bottom: 16px; }
.pro-prose img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.pro-prose blockquote {
    border-left: 4px solid #805ad5;
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--color-bg-secondary);
    border-radius: 0 8px 8px 0;
}
.pro-prose a { color: #805ad5; text-decoration: none; }
.pro-prose a:hover { text-decoration: underline; }

/* === Модальное окно === */
.pro-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.pro-modal-content {
    background: var(--color-bg-primary);
    margin: 40px auto;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

/* === Пагинация === */
.pro-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.pro-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
}
.pro-pagination a:hover { background: var(--color-bg-secondary); }
.pro-pagination a.pro-active { background: #805ad5; border-color: #805ad5; color: #fff; }

/* === Редактор === */
.pro-simple-editor {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-primary);
}
.pro-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
}
.pro-editor-toolbar button {
    padding: 5px 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: var(--color-bg-primary);
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-secondary);
}
.pro-editor-toolbar button:hover { background: var(--color-border); }
.pro-editor-toolbar button.pro-active { background: #805ad5; color: #fff; border-color: #805ad5; }
.pro-content-editor {
    min-height: 250px;
    max-height: 500px;
    overflow-y: auto;
    padding: 12px 16px;
    outline: none;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}
.pro-content-editor img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }

/* === Смайлы === */
.pro-smile-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.pro-smile-modal-content {
    background: var(--color-bg-primary);
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    position: relative;
}
.pro-close-smile-modal {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-tertiary);
}
.pro-smile-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}
.pro-smile-item {
    cursor: pointer;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
}
.pro-smile-item:hover { background: var(--color-bg-secondary); }
.pro-smile-item span { font-size: 11px; color: var(--color-text-tertiary); }

/* === Видимость === */
.pro-hidden { display: none !important; }
.pro-desktop-only { display: block; }
.pro-mobile-only { display: none; }

/* === Адаптивность === */
@media (max-width: 768px) {
    .pro-relationships-container { margin: 0 auto 16px; padding: 16px; border-radius: 12px; }
    .pro-text-4xl { font-size: 28px; }
    .pro-text-2xl { font-size: 22px; }
    .pro-text-xl { font-size: 18px; }
    .pro-article-container { display: none; }
    .pro-mobile-article-container { display: block; }
    .pro-desktop-only { display: none !important; }
    .pro-mobile-only { display: block !important; }
    .pro-modal-content { margin: 20px auto; width: 95%; max-height: calc(100vh - 40px); }
    .pro-category-btn { padding: 6px 10px; font-size: 12px; }
    .pro-prose { font-size: 15px; }
}

@media (min-width: 769px) {
    .pro-mobile-article-container { display: none; }
    .pro-article-container { display: block; }
}