/* =======================================================
   СТИЛИ ДЛЯ ПУБЛИЧНОЙ СТРАНИЦЫ АВТОРА (МИНИ-БЛОГ)
   Версия: 1.3.0 (Убран дубль, добавлены стили кнопки "Связаться")
   ======================================================= */

/* Контейнер: выравниваем по ширине с шапкой сайта */
.sax-pub-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0;
}

.sax-pub-container * {
    box-sizing: border-box;
}

/* Учитываем широкие экраны, как в style.css темы */
@media (min-width: 1600px) {
    .sax-pub-container {
        max-width: 1500px;
    }
}

/* =======================================================
   ШАПКА ПРОФИЛЯ (Аватар + Баннер)
   ======================================================= */
.sax-pub-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: 20px;
    align-items: stretch;
}

/* Плашка с аватаркой (250px, как и миниатюры) */
.sax-pub-avatar-box {
    width: 250px;
    flex-shrink: 0;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Увеличенная аватарка (180px) */
.sax-pub-avatar-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid #f5a623;
    object-fit: cover;
}

/* Плашка с баннером */
.sax-pub-banner-box {
    flex-grow: 1;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
}

/* Картинка баннера как фон */
.sax-pub-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Контент поверх баннера */
.sax-pub-banner-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

/* Имя и статус с мощной тенью */
.sax-pub-author-name {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1.2;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.95), 0px 0px 30px rgba(0, 0, 0, 0.9), 0px 0px 50px rgba(0, 0, 0, 0.8);
}

.sax-pub-author-role {
    font-size: 16px;
    color: #f5a623;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0px 3px 10px rgba(0, 0, 0, 0.95), 0px 0px 20px rgba(0, 0, 0, 0.9);
}

/* =======================================================
   БЛОК "О СЕБЕ"
   ======================================================= */
.sax-pub-about {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 30px;
    margin-bottom: 50px;
    color: #ccc;
    font-size: 16px;
    line-height: 1.7;
}

.sax-pub-about p {
    margin: 0 0 15px 0;
}

.sax-pub-about p:last-child {
    margin-bottom: 0;
}

/* =======================================================
   КНОПКА "СВЯЗАТЬСЯ СО МНОЙ"
   ======================================================= */
.sax-pub-contact-wrap {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a; /* Аккуратный разделитель */
}

.sax-pub-contact-btn {
    display: inline-block;
    background: transparent;
    color: #f5a623;
    border: 1px solid #f5a623;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.sax-pub-contact-btn:hover {
    background: #f5a623;
    color: #151515;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

/* =======================================================
   ЗАГОЛОВОК ЛЕНТЫ
   ======================================================= */
.sax-pub-feed-title {
    font-size: 28px;
    color: #f5a623 !important;
    margin-bottom: 40px;
    margin-top: 0;
    font-weight: 400;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* =======================================================
   ЛЕНТА (ГОРИЗОНТАЛЬНЫЕ ЗАМЕТКИ)
   ======================================================= */
.sax-pub-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sax-pub-note-item {
    display: flex;
    gap: 30px;
    align-items: stretch;
    padding-bottom: 40px;
    border-bottom: 1px solid #333; 
    transition: all 0.3s ease;
}

.sax-pub-note-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sax-pub-note-item:hover .sax-pub-note-title a {
    color: #f5a623;
}

/* Миниатюра (строго 250px) */
.sax-pub-note-thumb {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sax-pub-note-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.sax-pub-note-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.sax-pub-note-item:hover .sax-pub-note-thumb img {
    transform: scale(1.05); 
}

.sax-pub-note-thumb-no-img {
    font-size: 50px;
    opacity: 0.3;
}

/* Текстовая часть */
.sax-pub-note-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sax-pub-note-title {
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.3;
}

.sax-pub-note-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.sax-pub-note-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.sax-pub-note-excerpt {
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Кнопка "Читать далее" с пунктиром */
.sax-pub-readmore {
    display: inline-block;
    color: #f5a623;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    align-self: flex-start;
    border-bottom: 1px dashed #f5a623;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.sax-pub-readmore:hover {
    color: #ffffff;
    border-color: #ffffff;
    text-decoration: none;
}

/* =======================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ======================================================= */
@media (max-width: 800px) {
    .sax-pub-header {
        flex-direction: column;
        gap: 20px;
    }
    .sax-pub-avatar-box {
        width: 100%;
    }
    .sax-pub-banner-box {
        min-height: 250px;
    }
    .sax-pub-note-item {
        flex-direction: column;
        gap: 20px;
    }
    .sax-pub-note-thumb {
        width: 100%;
        height: 250px;
    }
    .sax-pub-about {
        padding: 20px;
    }
}