/* Post Page Styles */

/* Post Hero Section */
.post-hero {
    padding: 60px 0 40px;
    background-color: var(--light-color);
    border-bottom: 1px solid #eee;
}

.post-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post-hero h1 {
    font-size: 2.8rem;
    color: var(--dark-color);
    margin: 15px 0;
    max-width: 800px;
}

.post-hero img {
    max-width: 100%;
    height: auto;
    margin-top: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.post-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Post Content Section */
.post-content {
    padding: 60px 0;
}

.post-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

/* Post Body */
.post-body {
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-body .lead {
    font-size: 1.3rem;
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 500;
}

.post-body h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.post-body h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.post-body h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin: 25px 0 15px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul, 
.post-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body li {
    margin-bottom: 10px;
}

.post-body ul li {
    list-style-type: disc;
}

.post-body ol li {
    list-style-type: decimal;
}

.post-body strong {
    color: var(--dark-color);
    font-weight: 600;
}

/* Post Images */
.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.post-image figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
}

/* Special Content Blocks */
.breed-list,
.info-grid,
.plant-grid,
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.breed-item,
.info-item,
.plant-item,
.season {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.breed-item:hover,
.info-item:hover,
.plant-item:hover,
.season:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.breed-item h4,
.info-item h4,
.plant-item h4,
.season h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.option-comparison,
.behavior-signs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.option,
.sign {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.option h3,
.sign h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

/* Tip and Alert Boxes */
.tip-box,
.alert-box {
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tip-box {
    background-color: rgba(107, 142, 35, 0.1);
    border-left: 4px solid var(--secondary-color);
}

.alert-box {
    background-color: rgba(230, 76, 60, 0.1);
    border-left: 4px solid var(--accent-color);
}

.tip-box h4,
.alert-box h4 {
    margin-top: 0;
    color: var(--secondary-color);
}

.alert-box h4 {
    color: var(--accent-color);
}

/* Process Steps */
.process-steps {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 25px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.process-steps h4 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.process-steps ol {
    padding-left: 20px;
}

.process-steps li {
    margin-bottom: 10px;
    padding-left: 5px;
}

/* Tables */
.nutrient-table-container {
    overflow-x: auto;
    margin: 30px 0;
}

.nutrient-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nutrient-table th,
.nutrient-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.nutrient-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.nutrient-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 25px;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.author-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.author-info p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-section {
    margin-bottom: 40px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    margin-top: 0;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    font-size: 1.3rem;
}

.related-posts li {
    margin-bottom: 15px;
}

.related-posts li:last-child {
    margin-bottom: 0;
}

.related-posts a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
}

.related-posts a:hover {
    color: var(--primary-color);
}

.related-posts img {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.related-posts span {
    font-size: 0.95rem;
    line-height: 1.4;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: var(--text-color);
    transition: var(--transition);
}

.category-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar-section.cta-box {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 25px;
}

.sidebar-section.cta-box h3 {
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.sidebar-section.cta-box p {
    margin-bottom: 20px;
}

.sidebar-section.cta-box .btn {
    background-color: white;
    color: var(--primary-color);
}

.sidebar-section.cta-box .btn:hover {
    background-color: var(--light-color);
    transform: translateY(-2px);
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    background-color: var(--light-color);
}

.comments {
    margin-bottom: 50px;
}

.comment {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment.reply {
    margin-left: 80px;
    border-left: 3px solid var(--primary-color);
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.comment-date {
    color: #888;
    font-size: 0.9rem;
}

.comment-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.reply-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.reply-link:hover {
    text-decoration: underline;
}

.comment-form h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(240, 167, 56, 0.2);
}

.comment-form button {
    margin-top: 10px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content .btn {
    background-color: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cta-content .btn:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .post-hero h1 {
        font-size: 2.4rem;
    }
    
    .post-content .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .post-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 40px 0 30px;
    }
    
    .post-hero h1 {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .breed-list,
    .info-grid,
    .option-comparison,
    .behavior-signs,
    .plant-grid,
    .season-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .comment {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
}

@media (max-width: 576px) {
    .post-body {
        font-size: 1rem;
    }
    
    .post-body .lead {
        font-size: 1.1rem;
    }
    
    .post-body h2 {
        font-size: 1.5rem;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
} 