/* ------------------ Общие стили для страницы отдельного поста ------------------ */
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
}

/* ------------------ Контейнер поста ------------------ */
.post-container {
    position: relative; /* чтобы дата и крестик позиционировались внутри */
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
}

/* ------------------ Кнопка удаления ------------------ */
.delete-post-form {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2; /* чтобы была поверх контента */
}

.delete-post-btn {
    color: #c7c7c7;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.delete-post-btn:hover {
    color: #ff1515;
}

/* ------------------ Дата поста ------------------ */
.post-container .post-date {
    position: absolute;
    top: 14px;
    right: 45px; /* чтобы не налезала на крестик */
    font-size: 13px;
    color: #c6c6c6;
    z-index: 1;
}

/* ------------------ Изображение поста ------------------ */
.post-container img.club-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* ------------------ Контент поста ------------------ */
.post-content {
    font-size: 19px;
    line-height: 1.65;
    text-align: justify;
    text-align-last: left;
}

.post-content p {
    margin: 10px 0 20px;
}

.post-content strong {
    font-weight: 600;
}

.post-content h1 {
    font-size: 1.8em;
    margin: 15px 0 10px;
}

.post-content h2 {
    font-size: 1.4em;
    margin: 12px 0 8px;
}

.post-content ul {
    margin: 10px 0 10px 20px;
    padding-left: 0;
}

.post-content li {
    margin-bottom: 6px;
}

/* ------------------ Ссылки ------------------ */
.post-container a {
    color: #2196f3;
    text-decoration: none;
}

.post-container a:hover {
    text-decoration: underline;
}

/* ------------------ Блок "Назад к ленте" ------------------ */
.back-block {
    max-width: 800px;
    margin: 30px auto;
    text-align: center;
    background: #fff;
    padding: 15px 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.back-link {
    display: inline-block;
    padding: 10px 18px;
    background: #2196f3;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.back-link:hover {
    background: #1976d2;
    transform: translateY(-2px);
}


/* ------------------ Подсказки ------------------ */
.tooltip {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted #555;
}

/* Всплывающая подсказка через ::after */
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    /* над текстом */
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    /* ширина подсказки */
    width: auto;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    /* перенос слов */
    word-wrap: break-word;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1000;
}

/* Стрелка подсказки */
.tooltip::before {
    content: '';
    position: absolute;
    bottom: 110%;
    /* чуть выше блока */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    display: none;
    z-index: 1001;
}

/* Показываем при hover */
.tooltip:hover::after,
.tooltip:hover::before {
    display: block;
}


/* Баннер по ширине контейнера поста */
.coffee-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px auto 45px auto;
    width: 100%;
    max-width: 860px; /* чуть шире самого контента */
}

.coffee-banner-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coffee-banner-wrapper img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --------- Мини-логотип автора на посте --------- */
.image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.post-author-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    /* ← переместили влево */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background: #fff;
    z-index: 5;
}

.post-author-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}