:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #4b8ef1;
    --text-primary: #2a2a2a;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background-light: #fafbfc;
    --border-light: #e5e7eb;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-light);
    color: var(--text-primary);
    line-height: 1.7;
}

.post-hero {
    background: linear-gradient(135deg, rgba(75, 142, 241, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    padding: 140px 0 80px;
    position: relative;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-meta-top {
    display: flex;
    justify-content: flex-start;
}

.post-meta-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tag {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.category-tag:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.post-date,
.reading-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.post-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

/* Style for actual avatar images */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.author-details h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-primary);
}

.post-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 2.5rem 0 1rem 0;
    color: var(--text-primary);
}

.post-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--text-primary);
}

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

.post-content .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(75, 142, 241, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
}

.post-content blockquote {
    background: white;
    border-left: 5px solid var(--accent-color);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 15px 15px 0;
    box-shadow: var(--shadow-soft);
    font-style: italic;
    font-size: 1.15rem;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.post-content blockquote p {
    margin: 0;
    padding-left: 2rem;
}

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

.post-content li {
    margin-bottom: 0.8rem;
}

.post-content ul li::marker {
    color: var(--accent-color);
}

.post-content ol li::marker {
    color: var(--accent-color);
    font-weight: 600;
}

.info-box {
    background: linear-gradient(135deg, rgba(75, 142, 241, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    border: 1px solid rgba(75, 142, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.info-box h4 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box h4::before {
    content: "💡";
    font-size: 1.2rem;
}

.tags-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.share-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    background: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.share-btn.twitter {
    color: #000000;
    border-color: #000000;
}

.share-btn.twitter:hover {
    background: #000000;
    color: white;
}

.share-btn.linkedin {
    color: #0077b5;
    border-color: #0077b5;
}

.share-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-btn.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

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

.share-btn.whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.related-posts {
    margin: 4rem 0;
}

.related-posts h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: inherit;
}

.related-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.newsletter-cta {
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 4rem 0;
}

.newsletter-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 16px 32px;
    background: white;
    color: var(--accent-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
     POST IMAGE STYLES
     ========================================================================== */

/* Standard Post Images */
.post-image {
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInImage 0.8s ease-in-out forwards;
}

.post-image img:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px) scale(1.01);
}

/* Image Captions */
.image-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
    text-align: center;
    padding: 0 1rem;
}

/* Image loading animation */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced image hover effects */
.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(75, 142, 241, 0.1), rgba(102, 126, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
}

.post-image:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.2rem;
    }

    .post-excerpt {
        font-size: 1.1rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-content h2 {
        font-size: 1.8rem;
    }

    .post-content h3 {
        font-size: 1.5rem;
    }

    .post-content blockquote {
        margin: 2rem -1rem;
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .post-content blockquote::before {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }

    .post-content blockquote p {
        padding-left: 1.5rem;
    }

    .share-buttons {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .author-details {
        width: 100%;
    }

    /* Mobile Image Styles */
    .post-image {
        margin: 2rem 0;
    }

    .post-image img {
        border-radius: 15px;
    }
}

@media (min-width: 769px) {
    .post-meta {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .post-meta-top,
    .post-meta-bottom {
        display: contents;
    }

    .author-info {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .post-hero {
        padding-bottom: 30px !important;
    }

    .post-image {
        margin: 1.5rem 0;
    }

    .table-of-contents {
        padding: 1.2rem !important;
    }

    .post-content {
        margin-top: 1rem;
        padding: 0px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}