/* Post Detail Styles - Merged with Magazine Overrides */

body {
    background-color: #fff;
    color: #212529;
}

.post-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 1rem;
}

.post-header .badge {
    background: transparent;
    color: #d6336c;
    /* Editorial pink/red accent */
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 700;
    box-shadow: none;
}

.post-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.0rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5rem 0 1.5rem;
    color: #111;
    letter-spacing: -0.5px;
}

.meta-info {
    font-family: 'Inter', sans-serif;
    color: #868e96;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.post-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.post-content {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #212529;
    /* text-align: center; Removed to favor standard reading flow for magazine style */
}

.summary {
    font-family: 'Playfair Display', serif;
    font-size: 2.0rem;
    line-height: 1.6;
    color: #495057;
    text-align: center;
    font-style: italic;
    margin: 0 auto 3rem;
    max-width: 90%;
    border: none;
    padding: 0;
}

.admin-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-action {
    padding: 0 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: #ced4da;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.btn-action:hover {
    color: #495057;
}

.content-body img {
    display: block;
    margin: 3rem auto;
    max-width: 60%;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Back to List Button - Webzine Style - Enlarged */
.btn-back {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 4.5rem auto 0;
    /* More top margin */
    padding: 2.0rem 6rem;
    /* Increased vertical padding */
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    background-color: #212529;
    /* Black */
    color: #ffffff !important;
    /* Force white text */
    font-weight: 700;
    /* Bolder */
    font-size: 1.3rem;
    /* Larger font */
    text-transform: uppercase;
    letter-spacing: 3px;
    /* Wider spacing */
    border: 1px solid #212529;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
}

.btn-back:hover {
    background-color: #343a40;
    /* Darker Gray */
    border-color: #343a40;
    transform: translateY(-4px);
    /* Higher float */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    color: #ffffff !important;
}

/* Enforce 640x480 Center for YouTube Iframes */
.video-wrapper,
.video-preview-container {
    display: block;
    text-align: center;
    margin: 20px auto;
    width: 100%;
}

.video-wrapper iframe,
.video-preview-container iframe {
    width: 640px !important;
    height: 480px !important;
    max-width: 100%;
}

/* Specific style for TOAST UI Editor html-block iframes */
iframe.html-block {
    display: block !important;
    margin: 30px auto !important;
    width: 640px !important;
    height: 480px !important;
    max-width: 100%;
    border: none;
}

/* Magazine Style Table - Enhanced Visibility */
.post-content table,
.content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    border: 1px solid #dee2e6;
    font-family: 'Inter', sans-serif;
}

.post-content th,
.content-body th {
    background-color: #e9ecef;
    /* Darker header bg */
    font-weight: 700;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    /* Full grid border */
    color: #495057;
}

.post-content td,
.content-body td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    /* Full grid border */
    color: #212529;
    vertical-align: middle;
    line-height: 1.5;
}

/* Zebra Striping */
.post-content tr:nth-child(even),
.content-body tr:nth-child(even) {
    background-color: #f8f9fa;
}

.post-content tr:last-child td,
.content-body tr:last-child td {
    border-bottom: 1px solid #dee2e6;
    /* Restore bottom border */
}

/* Mobile responsive table adjustment */
@media (max-width: 768px) {

    .post-content th,
    .post-content td,
    .content-body th,
    .content-body td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}