/* Blog CSS */
:root {
    --primary-color: #3DDC84; /* 안드로이드 녹색 */
    --secondary-color: #083042;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Post meta section styling */
.post-meta, .blog-card-meta {
    display: flex;
    align-items: baseline; /* Align text baselines */
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}

.post-date, .blog-date {
    margin-right: 15px;
    line-height: normal;
}

.post-views, .blog-views {
    padding-left: 15px;
    border-left: 1px solid #ddd;
    display: flex;
    align-items: center;
    line-height: normal;
}

/* Only show eye icon in single post view */
.post-views::before {
    content: '👁️';
    margin-right: 5px;
}

/* Blog list specific styles */
.blog-card-meta {
    margin-bottom: 10px;
    font-size: 0.85rem;
}

/* Post content specific styles */
.post-content {
    line-height: 1.8;
}

.post-content h1, 
.post-content h2, 
.post-content h3, 
.post-content h4, 
.post-content h5, 
.post-content h6 {
    color: var(--secondary-color);
    margin: 1em 0 0.5em;
}

.post-content p {
    margin-bottom: 1em;
    white-space: pre-line; /* This helps maintain line breaks */
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}

.post-content pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

.post-content code {
    font-family: 'Fira Code', Consolas, monospace;
}

.post-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin-left: 0;
    color: #555;
}

.post-content ul, 
.post-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.post-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    table-layout: auto;
    overflow-x: auto;
    display: block;
}

.post-content th, 
.post-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    min-width: 100px;
}

.post-content th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.post-content tr:nth-child(even) {
    background-color: #f9f9f9;
}

.post-content tr {
    border-top: 1px solid #ddd;
}

/* Table alignment classes */
.post-content table .text-left {
    text-align: left;
}

.post-content table .text-center {
    text-align: center;
}

.post-content table .text-right {
    text-align: right;
}

/* Preview container styles */
.preview-container {
    white-space: pre-line; /* This helps maintain line breaks in preview */
}

.preview-container p,
.preview-container h1,
.preview-container h2,
.preview-container h3,
.preview-container h4,
.preview-container h5,
.preview-container h6,
.preview-container blockquote,
.preview-container ul,
.preview-container ol,
.preview-container pre {
    margin-bottom: 1em;
}