/* Single Post Styling */

/* Main wrapper for single post content */
.single-post-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 176px 96px 176px;
    padding: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Article content styling */
.entry-content {
    color: #1f2937;
    line-height: 1.6;
}

/* Heading styles */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #040D81;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.entry-content h1 {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    margin-top: 0;
}

.entry-content h2 {
    font-size: clamp(0.8rem, 2vw, 1.4rem);
}

.entry-content h3 {
    font-size: clamp(0.7rem, 1.75vw, 1.1rem);
}

.entry-content h4 {
    font-size: clamp(0.6rem, 1.5vw, 0.9rem);
}

.entry-content h5 {
    font-size: clamp(0.55rem, 1.25vw, 0.75rem);
}

.entry-content h6 {
    font-size: clamp(0.5rem, 1vw, 0.65rem);
}

/* Paragraph styling */
.entry-content p {
    font-size: clamp(0.8rem, 1.76vw, 1.0rem);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* List styling */
.entry-content ul,
.entry-content ol {
    margin-left: 16px;
    margin-bottom: 16px;
    padding-left: 16px;
}

.entry-content li {
    margin-bottom: 8px;
    font-size: clamp(0.8rem, 1.76vw, 1.0rem);
    line-height: 1.6;
}

.entry-content ul li {
    list-style-type: disc;
}

.entry-content ol li {
    list-style-type: decimal;
}

/* Link styling - matching v2 components */
.entry-content a {
    color: #22C55E;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.entry-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #22C55E;
    transition: width 250ms ease;
}

.entry-content a:hover::after {
    width: 100%;
}

/* Emphasis styling */
.entry-content strong,
.entry-content b {
    font-weight: 600;
    color: #1f2937;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

/* Blockquote styling */
.entry-content blockquote {
    border-left: 4px solid #22C55E;
    margin: 24px 0;
    padding: 16px 24px;
    background-color: #f9fafb;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

/* Code styling */
.entry-content code {
    background-color: #f3f4f6;
    color: #e11d48;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Image styling */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-content figure {
    margin: 24px 0;
    text-align: center;
}

.entry-content figcaption {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 8px;
    font-style: italic;
}

/* Table styling */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.entry-content th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #040D81;
}

.entry-content tr:last-child td {
    border-bottom: none;
}

/* Meta information styling */
.entry-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.entry-meta .posted-on {
    margin-right: 16px;
}

.entry-meta .byline {
    color: #9ca3af;
}

/* Tags styling */
.entry-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.entry-tags {
    font-size: 0.9rem;
    color: #6b7280;
}

.entry-tags .tags-title {
    font-weight: 600;
    margin-right: 8px;
}

.entry-tags a {
    color: #22C55E;
    text-decoration: none;
    margin-right: 8px;
    padding: 4px 8px;
    background-color: #f0fdf4;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.entry-tags a:hover {
    background-color: #dcfce7;
}

/* Page links (pagination) */
.page-links {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.page-links a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

.page-links .current {
    background-color: #22C55E;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1399px) {
    .single-post-wrapper {
        margin: 0 96px 96px 96px;
    }
}

@media (max-width: 1199px) {
    .single-post-wrapper {
        margin: 0 48px 64px 48px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .single-post-wrapper {
        margin: 0 16px 32px 16px;
        padding: 24px;
        border-radius: 8px;
    }

    .entry-content h1 {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }

    .entry-content h2 {
        font-size: clamp(0.75rem, 3vw, 1rem);
    }

    .entry-content h3 {
        font-size: clamp(0.65rem, 2.5vw, 0.85rem);
    }

    .entry-content blockquote {
        margin: 16px 0;
        padding: 12px 16px;
    }

    .entry-content table {
        font-size: 0.9rem;
    }

    .entry-content th,
    .entry-content td {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .single-post-wrapper {
        margin: 0 8px 16px 8px;
        padding: 16px;
    }

    .entry-content ul,
    .entry-content ol {
        margin-left: 12px;
        padding-left: 12px;
    }
}
