/* Modern Post Title Styles */

/* Main Post Titles */
.post-title,
.entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #1a1a1a;
    position: relative;
    transition: all 0.3s ease;
}

/* Import Google Font for elegant titles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');

/* Post titles on archive pages */
.post-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

/* Single post titles */
.single .post-title,
.page .post-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

/* Gradient underline effect */
.post-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
    transition: width 0.3s ease;
}

/* Hover effect for archive titles */
.post:hover .post-title::after {
    width: 100px;
}

/* Link styles */
.post-title a,
.entry-title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(120deg, #3498db 0%, #3498db 100%);
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.post-title a:hover,
.entry-title a:hover {
    color: #2c3e50;
    background-size: 100% 2px;
}

/* Widget post titles */
.widget .post-title,
.widget-category-posts .post-title {
    font-size: 1.1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
}

.widget .post-title::after,
.widget-category-posts .post-title::after {
    display: none;
}

/* Small widget post titles */
.widget-category-posts .small-post .post-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.widget-category-posts .big-post .post-title {
    font-size: 1.25rem;
}

/* Related posts titles */
.related-posts-columns .entry-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.related-posts-columns .entry-title:hover {
    color: #3498db;
}

/* Post meta styling */
.postmeta,
.entry-meta {
    font-size: 0.875rem;
    color: #6c757d;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Post excerpt styling */
.entry-summary,
.entry p:first-of-type {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4a4a4a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 1.5rem;
}

/* Category badges */
.cat-links {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.cat-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    color: #495057;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.cat-links a:hover {
    background: #3498db;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.75rem;
    }
    
    .single .post-title,
    .page .post-title {
        font-size: 2.25rem;
    }
    
    .widget .post-title {
        font-size: 1rem;
    }
    
    .entry-summary,
    .entry p:first-of-type {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.5rem;
    }
    
    .single .post-title,
    .page .post-title {
        font-size: 1.875rem;
    }
}

/* Dark mode support */
body.dark-mode .post-title,
body.dark-mode .entry-title {
    color: #f0f0f0;
}

body.dark-mode .post-title a:hover,
body.dark-mode .entry-title a:hover {
    color: #64b5f6;
}

body.dark-mode .entry-summary,
body.dark-mode .entry p:first-of-type {
    color: #b0b0b0;
}

body.dark-mode .cat-links a {
    background: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .cat-links a:hover {
    background: #3498db;
    color: #fff;
}

/* Animation on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-title {
    animation: fadeInUp 0.6s ease-out;
}

/* Special styling for featured posts */
.sticky .post-title {
    font-size: 2.5rem;
}

.sticky .post-title::before {
    content: '★ ';
    color: #f39c12;
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Read More Link Styling */
.read-more-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.25rem;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.read-more-link:hover {
    color: #2980b9;
}

.read-more-link:hover::after {
    width: 100%;
}

/* Continue reading button style */
.more-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #3498db 0%, #2ecc71 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.more-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    color: #fff;
}