/**
 * Single Post Styles
 */

/* Post Article Container */
.single-post-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Entry Header */
.entry-header {
    background: linear-gradient(135deg, #2e7d32 0%, #4caf50 20%, #66bb6a 100%);
    color: white;
    padding: 80px 0 60px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.entry-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 15s ease-in-out infinite;
}

.entry-header-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Categories */
.entry-categories {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    margin: 0 5px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Entry Title */
.entry-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Entry Meta */
.entry-meta {
    font-size: 1rem;
    opacity: 0.95;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.entry-meta a {
    color: white;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.5);
    transition: text-decoration-color 0.3s ease;
}

.entry-meta a:hover {
    text-decoration-color: white;
}

/* Post Thumbnail */
.post-thumbnail {
    margin: -60px auto 40px;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Content */
.entry-content-inner {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

/* Typography Improvements */
.entry-content h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: #2e7d32;
    position: relative;
    padding-left: 20px;
}

.entry-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2e7d32, #66bb6a);
    border-radius: 2px;
}

.entry-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: #333;
}

.entry-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #555;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content .intro-paragraph {
    font-size: 1.3rem;
    line-height: 1.7;
    font-weight: 400;
    color: #555;
    margin-bottom: 2rem;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid #4caf50;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

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

.entry-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

/* Pull Quotes */
.wp-block-pullquote {
    border-top: 4px solid #4caf50;
    border-bottom: 4px solid #4caf50;
    padding: 2rem 0;
    margin: 3rem 0;
    text-align: center;
}

.wp-block-pullquote blockquote {
    border: none;
    background: transparent;
    padding: 0;
}

.wp-block-pullquote p {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2e7d32;
}

/* Tables */
.wp-block-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.wp-block-table table {
    min-width: 100%;
    border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
}

.wp-block-table th {
    background: #f5f5f5;
    font-weight: 600;
    text-align: left;
}

.is-style-stripes tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

/* Links */
.entry-content a {
    color: #2e7d32;
    text-decoration: underline;
    text-decoration-color: rgba(46,125,50,0.3);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    text-decoration-color: #2e7d32;
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Columns */
.wp-block-columns {
    margin: 2rem 0;
    gap: 2rem;
}

/* Buttons */
.wp-block-buttons {
    margin: 3rem 0;
}

.wp-block-button__link {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Entry Footer */
.entry-footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
}

.entry-footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

/* Tags */
.entry-tags {
    margin-bottom: 30px;
}

.tags-label {
    font-weight: 600;
    margin-right: 10px;
    color: #666;
}

.tag-link {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin: 2px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: #2e7d32;
    color: white;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-weight: 600;
    color: #666;
}

.share-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.share-twitter {
    background: #1da1f2;
    color: white;
}

.share-twitter:hover {
    background: #0d8bd9;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

.share-facebook:hover {
    background: #0e5fc1;
}

/* Author Bio */
.author-bio {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 720px;
}

.author-bio-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid #4caf50;
}

.author-name {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #333;
}

.author-description {
    color: #666;
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    margin: 60px auto;
    max-width: 720px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.nav-previous,
.nav-next {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #4caf50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #333;
}

.post-navigation a {
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    background: #f8f9fa;
    padding: 60px 40px;
    margin: 60px -20px 0;
}

.related-posts-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.related-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.related-post-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-title {
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
}

.related-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #2e7d32;
}

.related-post-meta {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Comments */
#comments {
    max-width: 720px;
    margin: 60px auto;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content-inner {
        font-size: 1.05rem;
    }
    
    .entry-content h2 {
        font-size: 1.8rem;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
    
    .author-bio-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
    
    .entry-meta {
        font-size: 0.9rem;
    }
    
    .related-posts {
        padding: 40px 20px;
        margin: 40px -20px 0;
    }
}