/* True Pinterest-Style Single Post Layout */

.fts-single-container {
    max-width: var(--container-width);
    margin: 40px auto;
    padding: 0 20px;
}

.fts-single-split-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

/* Left Side: Image (Sticky) */
.fts-single-image-col {
    flex: 0 0 40%;
    max-width: 40%;
    position: sticky;
    top: 40px;
    box-sizing: border-box;
}

.fts-single-sticky-wrapper {
    display: flex;
    flex-direction: column;
}

.fts-single-main-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Action Bar (Under Image) */
.fts-single-action-bar {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.fts-action-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #efefef;
    border-radius: 24px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
    flex: 1;
}

.fts-action-pill:hover {
    background: #e2e2e2;
}

/* Buy Button */
.fts-single-buy-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.fts-buy-frame-btn {
    width: 100%;
    background: #e60023; /* Pinterest Red */
    color: #fff;
    border: none;
    padding: 16px 20px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease;
}

.fts-buy-frame-btn:hover {
    background: #ad081b;
}

.fts-single-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.fts-single-description p {
    margin-bottom: 15px;
}

.fts-single-description p:last-child {
    margin-bottom: 0;
}

.fts-single-description a {
    color: #e60023;
    text-decoration: underline;
}

.fts-single-description h2, 
.fts-single-description h3 {
    color: #111;
    margin: 20px 0 10px 0;
}

/* Right Side: Details & Scrolling Grid */
.fts-single-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fts-single-main-title {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.fts-single-related-section {
    width: 100%;
}

.fts-single-related-section .finetoshine-bento-grid {
    padding-top: 0 !important;
}

/* Responsive Design */
@media (max-width: 900px) {
    .fts-single-split-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .fts-single-container {
        padding: 0 10px;
        margin: 15px auto;
    }

    .fts-single-image-col {
        flex: 1 1 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        width: 100%;
        box-shadow: none;
        padding: 0;
    }

    .fts-single-main-img {
        max-height: none;
        margin-bottom: 0;
    }
    
    .fts-single-buy-section {
        padding: 20px;
        margin: 0;
    }

    .fts-single-details-col {
        padding: 0;
        background: transparent;
    }

    .fts-single-main-title {
        font-size: 24px;
    }
}

/* Custom Gradient Download Button for Inline Images */
.fts-gradient-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4A00E0 0%, #8E2DE2 100%);
    color: #ffffff !important;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
}
.fts-gradient-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 0, 224, 0.4);
    color: #ffffff !important;
}
.fts-gradient-download-btn svg {
    margin-right: 8px;
}

/* Extracted Gallery Styles */

            .fts-native-gallery {
                position: relative;
                margin-bottom: 30px;
            }
            .fts-native-gallery .onsale {
                position: absolute;
                top: 15px;
                left: 15px;
                background-color: #e53e3e;
                color: #fff;
                padding: 6px 12px;
                border-radius: 4px;
                font-size: 13px;
                font-weight: 600;
                z-index: 10;
                box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            }
            .fts-main-image {
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 4px 15px rgba(0,0,0,0.05);
                margin-bottom: 15px;
            }
            .fts-main-image img {
                width: 100%;
                height: auto;
                display: block;
            }
            .fts-thumbnails {
                display: flex;
                gap: 10px;
                overflow-x: auto;
                padding-bottom: 5px;
                scrollbar-width: none; /* Firefox */
            }
            .fts-thumbnails::-webkit-scrollbar {
                display: none; /* Chrome/Safari */
            }
            .fts-thumbnails img {
                width: 80px;
                height: 80px;
                object-fit: cover;
                border-radius: 8px;
                cursor: pointer;
                border: 2px solid transparent;
                transition: all 0.2s;
            }
            .fts-thumbnails img:hover {
                border-color: #2b6cb0;
                transform: translateY(-2px);
            }
        
/* Extracted Gallery Styles */

.wmp-infinite-related-section {
    margin-top: -30px !important;
    padding-top: 0 !important;
    margin-bottom: 60px;
}
.wmp-home-title {
    text-align: center;
    font-family: serif;
    font-size: 22px;
    color: #333;
    margin: 15px 0 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}
@media (min-width: 768px) {
    .wmp-home-title {
        font-size: 28px;
        margin: 20px 0 20px;
        gap: 20px;
    }
}
.wmp-home-title::before, .wmp-home-title::after {
    content: '';
    height: 1px;
    background: #D0C0B0;
    flex-grow: 1;
    max-width: 60px;
}
@media (min-width: 768px) {
    .wmp-home-title::before, .wmp-home-title::after {
        max-width: 120px;
    }
}
@keyframes wmp-spin {
    100% { transform: rotate(360deg); }
}
.wmp-spinner {
    animation: wmp-spin 1s linear infinite;
    opacity: 0.5;
}

/* --------------------------------------
   Single Post Card Layout Updates
-------------------------------------- */
.fts-single-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.fts-image-container {
    position: relative;
    width: 100%;
}

.fts-single-blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(30px) brightness(0.85);
    transform: scale(1.2);
    z-index: 0;
}

.fts-single-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 70vh;
    position: relative;
    z-index: 1;
}

.fts-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 10;
    transition: background 0.2s ease;
}

.fts-back-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.fts-single-card-content {
    padding: 20px;
}

.fts-single-card-content .fts-single-main-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #111;
    line-height: 1.3;
}

.fts-single-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: nowrap;
}

.fts-profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    min-width: 0;
}

.fts-profile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.fts-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fts-profile-name {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    max-width: 10ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    display: inline-block;
}

.fts-follow-btn {
    background: linear-gradient(135deg, #4facfe 0%, #8E2DE2 100%);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.fts-follow-btn:hover {
    box-shadow: 0 4px 15px rgba(142, 45, 226, 0.4);
    transform: translateY(-1px);
}

.fts-follow-btn.fts-following {
    background: #f0f2f5;
    color: #444;
}

.fts-follow-btn.fts-following:hover {
    background: #e4e6e9;
}

.fts-icon-only-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0;
    margin-bottom: 0;
    flex-shrink: 0;
}

.fts-action-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.fts-action-icon:hover {
    color: #111;
    transform: scale(1.05);
}

.fts-action-icon svg {
    width: 26px;
    height: 26px;
}

/* Mobile Tweaks for Meta Row */
@media (max-width: 768px) {
    .fts-single-meta-row {
        gap: 8px;
    }
    .fts-profile-avatar {
        width: 32px;
        height: 32px;
    }
    .fts-profile-name {
        font-size: 13px;
        max-width: 8ch;
    }
    .fts-follow-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    .fts-icon-only-actions {
        gap: 10px;
    }
    .fts-action-icon svg {
        width: 20px;
        height: 20px;
    }
    .fts-profile-info {
        gap: 6px;
    }
}
