/**
 * Single Post Styles
 *
 * @package AC_Valve_Alliance
 */

/* Main Container */
.acv-single-post {
    background-color: #fff;
}

.acv-sp {
    max-width: 1600px;
    margin: 0 auto;
}

/* H1 Styling for Single Posts */
.acv-single-post h1 {
    font-size: 4.5rem;
    line-height: 4.4rem;
    font-weight: 400;
}

/* Breadcrumb styling for single posts - uses global styles from style.css */

/* ============================================
   Hero Header (uses ACF block structure)
   ============================================ */
.acv-sp-hero-block {
    /* Uses .acv-lpht-block styles from large_page_header_with_text.css */
}

/* Add teal overlay to hero image */
.acv-sp-hero-block .acv-lpht-media-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #00779b;
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Blog-specific meta styling within the hero */
.acv-sp-hero-block .acv-sp-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0;
}

.acv-sp-hero-meta-line {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}

/* ============================================
   Audio Player Section
   ============================================ */
.acv-sp-audio {
    background: #02242b;
    padding: 20px 28px;
    margin: 0 0 30px;
    max-width: 650px;
    border-radius: 14px;
}

.acv-sp-audio-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}

.acv-sp-audio-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    padding-right: 20px;
}

.acv-sp-audio-label {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 300;
}

.acv-sp-audio-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.acv-sp-audio-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.4;
    white-space: unset !important;
    max-width: unset !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.acv-sp-audio-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
}

.acv-sp-audio-play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--acv-btn-primary-bg, #ee7f2d);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.acv-sp-audio-play:hover {
    transform: scale(1.05);
}

.acv-sp-audio-play i {
    color: #ffffff;
    font-size: 18px;
    margin-left: 3px;
}

.acv-sp-audio-play.playing i {
    margin-left: 0;
}

.acv-sp-audio-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 55px;
}

.acv-sp-audio-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-family: monospace;
    min-width: 50px;
}

.acv-sp-audio-time:last-child {
    text-align: right;
}

.acv-sp-audio-bar {
    flex: 1;
    height: 12px;
    background-color: rgb(255 255 255 / 42%);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.acv-sp-audio-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #ffffff !important;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.acv-sp-audio-right {
    display: flex;
    align-items: center;
}

/* ============================================
   Main Content Wrapper
   ============================================ */
.acv-sp-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 150px;
    padding: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

/* ============================================
   Left Column: Content
   ============================================ */
.acv-sp-content {
    min-width: 0;
}

/* Share Bar */
.acv-sp-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.acv-sp-share-label {
    color: #154e5c;
    font-size: 16px;
}

.acv-sp-share-icons {
    display: flex;
    gap: 12px;
}

.acv-sp-share-link {
    width: 52px;
    height: 52px;
    border-radius: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937 !important;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.acv-sp-share-link:hover {
    background-color: var(--acv-btn-primary-bg, #ee7f2d);
    transform: scale(1.1);
    color: #ffffff !important;
}

.acv-sp-share-link i {
    font-size: 28px;
}

.acv-sp-share-sidebar {
    background: none;
    border-radius: 0px;
    padding: 20px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
}

.acv-sp-share-sidebar .acv-sp-share-icons {
    gap: 10px;
}

/* Top Title & Description */
.acv-sp-top-title {
    font-size: 2.5rem;
    line-height: 1.4;
    color: #000000;
    font-weight: 400;
    margin-bottom: 20px;
}

.acv-sp-top-description {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.acv-sp-top-description p {
    margin: 0 0 12px;
}

.acv-sp-top-description p:last-child {
    margin-bottom: 0;
}

/* Post Body */
.acv-sp-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.acv-sp-body h2 {
    font-size: 32px;
    color: #0D4F5D;
    margin: 40px 0 20px;
    font-weight: 300;
}

.acv-sp-body h3 {
    font-size: 1.5rem;
    color: #000000;
    margin: 30px 0 15px;
    font-weight: 400;
}

.acv-sp-body h4 {
    font-size: 1.2rem;
    color: #000000;
    margin: 30px 0 15px;
    font-weight: 400;
}

.acv-sp-body p {
    margin-bottom: 0;
}

.acv-sp-body ul,
.acv-sp-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.acv-sp-body li {
    margin-bottom: 10px;
}

.acv-sp-body a {
    color: var(--acvalve-primary-color, #ed8936);
    text-decoration: underline;
}

.acv-sp-body a:hover {
    color: var(--acvalve-primary-color-dark, #dd7826);
}

.acv-sp-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.acv-sp-body blockquote {
    border-left: 4px solid var(--acvalve-primary-color, #ed8936);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6b7280;
}

/* Tags */
.acv-sp-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.acv-sp-tags a {
    color: var(--acvalve-primary-color, #ed8936);
    text-decoration: none;
}

.acv-sp-tags a:hover {
    text-decoration: underline;
}

/* ============================================
   Right Column: Sidebar
   ============================================ */
.acv-sp-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* Author Box */
.acv-sp-author {
    margin-bottom: 30px;
    border-radius: 0;
    overflow: hidden;
}

.acv-sp-author-header {
    background-color: #00657E;
    padding: 20px 24px;
}

.acv-sp-author-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.acv-sp-author-content {
    background-color: #f3f4f6;
    padding: 24px;
}

.acv-sp-author-image {
    margin-bottom: 20px;
}

.acv-sp-author-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 0;
}

.acv-sp-author-name {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 5px;
    color: #1f2937;
}

.acv-sp-author-role {
    font-size: 14px;
    color: var(--acvalve-primary-color, #ed8936);
    margin: -6px 0 15px;
}

.acv-sp-author-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.acv-sp-author-bio p {
    margin: 0 0 10px;
}

.acv-sp-author-bio p:last-child {
    margin-bottom: 0;
}

/* Contact Box */
.acv-sp-contact {
    background-color: #f3f4f6;
    border-radius: 0;
    padding: 30px;
    margin-top: -29px;
}

.acv-sp-contact-title {
    font-size: 25px;
    font-weight: 400;
    margin: 0 0 20px;
    color: #000000;
}

/* Contact Form Styles */
.acv-sp-contact-form .acv-sp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.acv-sp-contact-form .acv-sp-form-field {
    margin-bottom: 15px;
}

.acv-sp-contact-form input,
.acv-sp-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acv-sp-contact-form input:focus,
.acv-sp-contact-form textarea:focus {
    outline: none;
    border-color: var(--acvalve-primary-color, #ed8936);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

.acv-sp-contact-form input::placeholder,
.acv-sp-contact-form textarea::placeholder {
    color: #9ca3af;
}

.acv-sp-contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.acv-sp-form-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--acv-btn-primary-bg, #ee7f2d);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.acv-sp-form-submit:hover {
    transform: translateY(-1px);
}

/* Style WPForms or other form plugins in sidebar */
.acv-sp-contact .wpforms-container,
.acv-sp-contact .wpcf7 {
    margin: 0;
}

.acv-sp-contact .wpforms-field,
.acv-sp-contact .wpcf7-form-control-wrap {
    margin-bottom: 15px;
}

/* Gravity Forms styles moved to /css/gravity-forms.css */

/* ============================================
   Post Navigation
   ============================================ */
.acv-sp + .post-navigation,
.acv-sp + nav.navigation {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 40px;
    border-top: 1px solid #e5e7eb;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1200px) {
    .acv-sp-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 40px;
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .acv-sp-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .acv-sp-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .acv-sp-audio-container {
        flex-wrap: wrap;
    }
    
    .acv-sp-audio-right {
        width: 100%;
        margin-top: 10px;
    }
    
    .acv-sp-audio-title {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .acv-sp-audio {
        padding: 15px 20px;
    }
    
    .acv-sp-audio-left {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .acv-sp-audio-progress {
        width: 100%;
        max-width: 100%;
        order: 3;
    }
    
    .acv-sp-wrapper {
        padding: 20px;
    }
    
    .acv-sp-sidebar {
        grid-template-columns: 1fr;
    }
    
    .acv-sp-top-title {
        font-size: 20px;
    }
    
    .acv-sp-top-description {
        font-size: 14px;
    }
    
    .acv-sp-body h2 {
        font-size: 24px;
    }
    
    .acv-sp-body h3 {
        font-size: 20px;
    }
    
    .acv-sp-contact-form .acv-sp-form-row {
        grid-template-columns: 1fr;
    }
    
    .acv-sp-nav-inner {
        flex-direction: column;
        gap: 30px;
    }
    
    .acv-sp-nav-prev,
    .acv-sp-nav-next {
        width: 100%;
    }
    
    .acv-sp-nav-next .acv-sp-nav-link {
        justify-content: flex-start;
    }
    
    .acv-sp-nav-next .acv-sp-nav-text {
        text-align: left;
    }
    
    .acv-sp-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .acv-sp-audio-badge {
        min-width: auto;
    }
    
    .acv-sp-share-icons {
        gap: 8px;
    }
    
    .acv-sp-share-link {
        width: 32px;
        height: 32px;
    }
    
    .acv-sp-share-link i {
        font-size: 12px;
    }
}

/* ============================================
   Post Navigation
   ============================================ */
.acv-sp-nav {
    max-width: 1530px;
    margin: 0 auto;
    padding: 60px 40px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.acv-sp-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.acv-sp-nav-prev,
.acv-sp-nav-next {
    flex: 1;
    max-width: 45%;
}

.acv-sp-nav-next {
    text-align: right;
}

.acv-sp-nav-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.acv-sp-nav-next .acv-sp-nav-link {
    justify-content: flex-end;
}

.acv-sp-nav-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #ed8936;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.acv-sp-nav-arrow i {
    color: var(--acv-btn-primary-bg, #ee7f2d);
    font-size: 16px;
    transition: color 0.3s ease;
}

.acv-sp-nav-link:hover .acv-sp-nav-arrow {
    background-color: var(--acv-btn-primary-bg, #ee7f2d);
}

.acv-sp-nav-link:hover .acv-sp-nav-arrow i {
    color: #ffffff;
}

.acv-sp-nav-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.acv-sp-nav-next .acv-sp-nav-text {
    text-align: right;
}

.acv-sp-nav-label {
    font-size: 14px;
    color: #ed8936;
    font-weight: 500;
}

.acv-sp-nav-title {
    font-size: 18px;
    color: #0d4f5c;
    font-weight: 500;
    line-height: 1.4;
}

.acv-sp-nav-link:hover .acv-sp-nav-title {
    color: #ed8936;
}

/* ============================================
   You May Also Like
   ============================================ */
.acv-sp-related {
    padding: 80px 40px;
}

.acv-sp-related-inner {
    max-width: 1530px;
    margin: 0 auto;
}

.acv-sp-related-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #000000;
    margin: 0 0 50px;
}

.acv-sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.acv-sp-related-card {
    background: #ffffff;
    overflow: hidden;
}

.acv-sp-related-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.acv-sp-related-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: #e5e7eb;
}

.acv-sp-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.acv-sp-related-card-link:hover .acv-sp-related-card-image img {
    transform: scale(1.05);
}

.acv-sp-related-card-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
}

.acv-sp-related-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 25px;
}

.acv-sp-related-card-category {
    display: block;
    font-size: 13px;
    color: #0d6b7a;
    margin-bottom: 10px;
    font-weight: 500;
}

.acv-sp-related-card-title {
font-size: 1.5rem;
    font-weight: 400;
    color: #0d6b7a;
    margin: 0 0 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.acv-sp-related-card-link:hover .acv-sp-related-card-title {
    color: #0d6b7a;
}

.acv-sp-related-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ee7f2d;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.acv-sp-related-card-link:hover .acv-sp-related-card-more {
    gap: 12px;
    color: #d96f1f;
}

.acv-sp-related-card-more i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.acv-sp-related-card-link:hover .acv-sp-related-card-more i {
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .acv-sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .acv-sp-nav {
        padding: 40px 20px;
    }
    
    .acv-sp-nav-title {
        font-size: 16px;
    }
    
    .acv-sp-related {
        padding: 50px 20px;
    }
    
    .acv-sp-related-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .acv-sp-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Large Call to Action (Footer CTA)
   ============================================ */
.acv-sp-cta-block {
    width: 100%;
    color: #ffffff;
    padding: 110px 155px;
    background-color: var(--acv-large-cta-color, #ee7f2d);
    margin: 0;
}

.acv-sp-cta-inner {
    width: 100%;
    max-width: 1542px;
    margin: 0 auto;
}

.acv-sp-cta-title {
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.acv-sp-cta-actions {
    margin-top: 30px;
}

.acv-sp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 34px;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--acv-large-cta-color, #ee7f2d);
    font-weight: 400;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.acv-sp-cta-button:hover,
.acv-sp-cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    color: var(--acv-large-cta-color, #ee7f2d);
}

/* CTA Scroll Animations */
.acv-sp-cta-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.acv-sp-cta-inner.acv-sp-cta-visible .acv-sp-cta-title {
    opacity: 1;
    transform: translateY(0);
}

.acv-sp-cta-actions {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
}

.acv-sp-cta-inner.acv-sp-cta-visible .acv-sp-cta-actions {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .acv-sp-cta-block {
        padding: 50px 40px;
    }
}

@media (max-width: 600px) {
    .acv-sp-cta-block {
        padding: 40px 20px;
    }

    .acv-sp-cta-title {
        font-size: 2.4rem;
    }

    .acv-sp-cta-actions {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .acv-sp-cta-title,
    .acv-sp-cta-actions {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
