/**
 * Single Blog Post Styles
 * Synergy Health Theme
 */

/* ========================================
   SINGLE POST HERO
   ======================================== */

.single-post-hero {
    min-height: 500px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-post-hero .hero-content-wrapper {
    width: 100%;
}

.single-post-hero .hero-content {
    text-align: center;
    padding: 80px 40px;
}

.single-post-hero .hero-eyebrow,
.single-post-hero .hero-heading,
.single-post-hero .hero-subheading {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.single-post-hero .hero-eyebrow {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--white);
    opacity: 1;
    margin-bottom: 40px;
}

.single-post-hero .hero-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
    max-width: 1100px;
    margin-bottom: 0;
}

.single-post-hero .hero-subheading {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--white);
    opacity: 0.9;
    margin-top: 30px;
    margin-bottom: 0;
}

/* ========================================
   FEATURED IMAGE
   ======================================== */

.single-post-featured-image-container {
    width: 100%;
    padding: 20px 20px 0;
    background: var(--white);
}

.single-post-featured-image-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.single-post-featured-image {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    display: block;
    object-fit: cover;
}

/* ========================================
   POST CONTENT
   ======================================== */

.single-post-content {
    width: 100%;
    background: var(--white);
    padding: 0 20px 80px;
}

.single-post-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Override the global hide rule for single post content */
.single-post-content .entry-content {
    display: block !important;
}

.single-post-content .entry-content p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 24px;
}

.single-post-content .entry-content h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--nav-color);
    margin-top: 48px;
    margin-bottom: 24px;
}

.single-post-content .entry-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post-content .entry-content h4 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--nav-color);
    margin-top: 32px;
    margin-bottom: 16px;
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 24px;
    padding-left: 32px;
}

.single-post-content .entry-content li {
    margin-bottom: 12px;
}

.single-post-content .entry-content a {
    color: var(--teal);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content .entry-content a:hover {
    color: var(--secondary-green);
}

.single-post-content .entry-content blockquote {
    font-family: var(--font-heading);
    font-size: 24px;
    font-style: italic;
    color: var(--nav-color);
    border-left: 4px solid var(--teal);
    padding: 24px 32px;
    margin: 40px 0;
    background: var(--gray-light);
}

.single-post-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px 0;
}

.single-post-content .entry-content .wp-block-image {
    margin: 32px 0;
}

/* ========================================
   SHARE BUTTONS SECTION
   ======================================== */

.single-post-share-section {
    width: 900px;
    margin: 0 auto;
    padding: 20px 20px 60px 0;
    background: var(--white);
    display: flex;
    align-items: center;
}

.single-post-share-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    width: 100%;
    background: var(--teal);
    padding: 24px 40px;
    border-radius: var(--radius-lg);
}

.share-label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
}

.share-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.share-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.share-button:hover {
    background: var(--white);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-button:active {
    transform: translateY(0);
}

.share-button:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

.share-button svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   RELATED POSTS SECTION
   ======================================== */

.related-posts-section {
    padding: 80px 20px;
    background: var(--light-green);
}

.related-posts-section .blog-section-heading {
    margin-bottom: 50px;
}

/* ========================================
   PAGE LINKS (FOR MULTI-PAGE POSTS)
   ======================================== */

.page-links {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-light);
    font-family: var(--font-body);
    font-size: 16px;
}

.page-links a {
    display: inline-block;
    padding: 8px 16px;
    margin: 4px;
    background: var(--teal);
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.page-links a:hover {
    background: var(--secondary-green);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .related-posts-section {
        padding: 60px 20px;
    }

    .single-post-hero .hero-heading {
        font-size: 56px;
    }

    .single-post-hero .hero-content {
        padding: 70px 32px;
    }

    .single-post-featured-image-container {
        padding: 50px 20px 0;
    }

    .single-post-content {
        padding: 0 20px 60px;
    }

    .single-post-content .entry-content p,
    .single-post-content .entry-content ul,
    .single-post-content .entry-content ol {
        font-size: 17px;
    }

    .single-post-content .entry-content h2 {
        font-size: 32px;
        margin-top: 40px;
    }

    .single-post-content .entry-content h3 {
        font-size: 24px;
        margin-top: 32px;
    }

    .share-label {
        font-size: 18px;
    }

    .share-button {
        width: 46px;
        height: 46px;
    }

    .share-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .related-posts-section {
        padding: 50px 16px;
    }

    .single-post-hero {
        min-height: 450px;
    }

    .single-post-hero .hero-content {
        padding: 60px 24px;
    }

    .single-post-hero .hero-eyebrow {
        font-size: 14px;
        letter-spacing: 2px;
        margin-bottom: 28px;
    }

    .single-post-hero .hero-heading {
        font-size: 48px;
        line-height: 1.15;
    }

    .single-post-hero .hero-subheading {
        font-size: 18px;
        margin-top: 24px;
    }

    .single-post-featured-image-container {
        padding: 40px 16px 0;
    }

    .single-post-content {
        padding: 0 16px 50px;
    }

    .single-post-content .entry-content p,
    .single-post-content .entry-content ul,
    .single-post-content .entry-content ol {
        font-size: 16px;
        line-height: 1.7;
    }

    .single-post-content .entry-content h2 {
        font-size: 28px;
        margin-top: 36px;
        margin-bottom: 20px;
    }

    .single-post-content .entry-content h3 {
        font-size: 22px;
        margin-top: 28px;
        margin-bottom: 16px;
    }

    .single-post-content .entry-content h4 {
        font-size: 20px;
        margin-top: 24px;
    }

    .single-post-content .entry-content blockquote {
        font-size: 20px;
        padding: 20px 24px;
        margin: 32px 0;
    }

    .single-post-share-section {
        padding: 50px 20px;
    }

    .single-post-share-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 24px 28px;
        justify-content: center;
    }

    .share-label {
        font-size: 18px;
    }

    .share-buttons {
        gap: 14px;
    }

    .share-button {
        width: 46px;
        height: 46px;
    }

    .share-button svg {
        width: 18px;
        height: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .related-posts-section {
        padding: 40px 16px;
    }

    .single-post-hero {
        min-height: 400px;
    }

    .single-post-hero .hero-content {
        padding: 50px 20px;
    }

    .single-post-hero .hero-eyebrow {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 24px;
    }

    .single-post-hero .hero-heading {
        font-size: 36px;
        line-height: 1.2;
    }

    .single-post-hero .hero-subheading {
        font-size: 14px;
        margin-top: 20px;
    }

    .single-post-content .entry-content h2 {
        font-size: 24px;
    }

    .single-post-content .entry-content h3 {
        font-size: 20px;
    }

    .single-post-content .entry-content blockquote {
        font-size: 18px;
        padding: 16px 20px;
    }

    .single-post-share-container {
        padding: 20px 20px;
    }

    .share-label {
        font-size: 16px;
    }

    .share-buttons {
        gap: 12px;
    }

    .share-button {
        width: 42px;
        height: 42px;
    }

    .share-button svg {
        width: 16px;
        height: 16px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .share-button {
        transition: none;
    }
    
    .share-button:hover {
        transform: none;
    }
}
