/* ============================================================
   BLOG — Cursed to Coffin
   ============================================================ */
 
/* ── Shared layout ── */
.blog-wrap {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px;
}
 
/* ── Page header (index) ── */
.blog-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--blood-red);
}
 
.blog-page-title {
    font-family: 'Courier New', monospace;
    font-size: 42px;
    font-weight: 700;
    color: var(--crimson);
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.5);
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
 
.blog-page-title img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    flex-shrink: 0;
}
 
.btn-write {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--blood-red), var(--crimson));
    color: #fff;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}
 
.btn-write img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(10);
}
 
.btn-write:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
}
 
/* ── Post cards (index) ── */
.blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
 
.blog-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 24px 28px;
    transition: background 0.2s ease;
    position: relative;
}
 
.blog-card:first-child {
    border-top: 1px solid var(--border-color);
    border-radius: 6px 6px 0 0;
}
 
.blog-card:last-child {
    border-radius: 0 0 6px 6px;
}
 
.blog-card:only-child {
    border-radius: 6px;
    border-top: 1px solid var(--border-color);
}
 
.blog-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blood-red);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0;
}
 
.blog-card:hover {
    background: rgba(139, 0, 0, 0.06);
}
 
.blog-card:hover::before {
    opacity: 1;
}
 
.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
}
 
.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
 
.blog-card-title a:hover {
    color: var(--crimson);
}
 
.blog-card-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
 
.blog-card-meta a {
    color: var(--crimson);
    text-decoration: none;
}
 
.blog-card-meta a:hover {
    text-decoration: underline;
}
 
.meta-dot {
    color: #444;
}
 
.blog-card-excerpt {
    font-size: 14px;
    color: #999;
    line-height: 1.65;
}
 
.blog-card-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.btn-read-more {
    font-size: 12px;
    color: var(--crimson);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.2s ease;
}
 
.btn-read-more:hover {
    color: #ff4444;
}
 
.btn-edit-small {
    font-size: 12px;
    color: #555;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}
 
.btn-edit-small img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    opacity: 0.5;
}
 
.btn-edit-small:hover {
    color: #999;
}
 
/* ── Empty state ── */
.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: #555;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
 
.blog-empty-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    opacity: 0.4;
    margin-bottom: 20px;
}
 
.blog-empty h2 {
    color: #777;
    font-size: 20px;
    margin-bottom: 8px;
}
 
.blog-empty p {
    font-size: 14px;
    margin-bottom: 24px;
}
 
/* ── Post detail ── */
.post-detail-header {
    margin-bottom: 40px;
}
 
.post-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 28px;
    transition: color 0.2s ease;
}
 
.post-detail-back:hover {
    color: var(--crimson);
}
 
.post-detail-title {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color);
    margin-bottom: 16px;
}
 
.post-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
 
.post-detail-meta a {
    color: var(--crimson);
    text-decoration: none;
}
 
.post-detail-meta a:hover {
    text-decoration: underline;
}
 
/* ── Post body ── */
.post-detail-body {
    font-size: 15.5px;
    line-height: 1.85;
    color: #ccc;
    margin-bottom: 40px;
}
 
.post-detail-body p {
    margin-bottom: 20px;
}
 
/* ── Post owner actions ── */
.post-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
 
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}
 
.btn-action img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(10);
}
 
.btn-action-edit {
    background: rgba(80, 80, 80, 0.3);
    color: #ccc;
    border: 1px solid #444;
}
 
.btn-action-edit:hover {
    background: rgba(80, 80, 80, 0.5);
    color: #fff;
}
 
.btn-action-delete {
    background: rgba(139, 0, 0, 0.2);
    color: var(--crimson);
    border: 1px solid rgba(139, 0, 0, 0.4);
}
 
.btn-action-delete:hover {
    background: rgba(139, 0, 0, 0.4);
}
 
/* ── Comments section ── */
.comments-section {
    margin-top: 48px;
}
 
.comments-heading {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
 
/* Comment form */
.comment-form-box {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}
 
.comment-form-box textarea {
    width: 100%;
    background: var(--dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 12px;
    resize: vertical;
    min-height: 90px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}
 
.comment-form-box textarea:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.25);
}
 
.comment-form-box textarea::placeholder {
    color: #555;
}
 
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
 
.btn-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--blood-red), var(--crimson));
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}
 
.btn-comment-submit img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(10);
}
 
.btn-comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.4);
}
 
.btn-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
 
/* Comment items */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
 
.comment-item {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-top: none;
    padding: 18px 22px;
}
 
.comment-item:first-child {
    border-top: 1px solid var(--border-color);
    border-radius: 6px 6px 0 0;
}
 
.comment-item:last-child {
    border-radius: 0 0 6px 6px;
}
 
.comment-item:only-child {
    border-radius: 6px;
    border-top: 1px solid var(--border-color);
}
 
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
 
.comment-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}
 
.comment-avatar-placeholder {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--dark-gray);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
 
.comment-avatar-placeholder img {
    width: 16px;
    height: 16px;
    opacity: 0.4;
    object-fit: contain;
}
 
.comment-author-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
 
.comment-author {
    font-weight: 700;
    font-size: 14px;
    color: var(--crimson);
    text-decoration: none;
}
 
.comment-author:hover {
    text-decoration: underline;
}
 
.comment-time {
    font-size: 12px;
    color: #555;
}
 
.btn-delete-comment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #555;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-left: auto;
}
 
.btn-delete-comment img {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    object-fit: contain;
}
 
.btn-delete-comment:hover {
    color: var(--crimson);
    background: rgba(139, 0, 0, 0.15);
}
 
.btn-delete-comment:hover img {
    opacity: 0.8;
}
 
.comment-body {
    font-size: 14px;
    line-height: 1.7;
    color: #bbb;
    padding-left: 44px;
}
 
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #555;
    font-size: 14px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
 
.no-comments img {
    width: 32px;
    height: 32px;
    opacity: 0.3;
    margin-bottom: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}
 
.login-to-comment {
    text-align: center;
    padding: 24px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}
 
.login-to-comment a {
    color: var(--crimson);
    text-decoration: none;
    font-weight: 700;
}
 
.login-to-comment a:hover {
    text-decoration: underline;
}
