/* Custom Single Post Styling - Luxury Boutique Aesthetic */

:root {
    --gold-primary: #c29941;
    --gold-dark: #a67f33;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f9f9f9;
}

/* Hero Section */
.single-post-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.single-post-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px !important;
}

.hero-cat-tag {
    display: inline-block;
    background: var(--gold-primary);
    color: #fff;
    padding: 6px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.single-post-hero h1 {
    font-family: 'Playfair Display', serif !important;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    color: #fff;
}

.post-meta-hero {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
}

.post-meta-hero span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Content Area */
.post-layout-wrapper {
    padding: 80px 0;
    background: #fff;
}

.post-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    padding: 0;
}

.post-main-content {
    min-width: 0;
}

.entry-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.entry-content p {
    font-size: 16px;
    margin-bottom: 25px;
}

.entry-content h2, .entry-content h3 {
    font-family: 'Playfair Display', serif !important;
    color: var(--brand-navy);
    margin: 40px 0 20px;
}

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

.entry-content blockquote {
    padding: 40px;
    margin: 40px 0;
    background: #fdfaf3;
    border-left: 4px solid var(--gold-primary);
    font-style: italic;
    font-size: 20px;
    color: #555;
}

/* Sidebar Styling */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.post-sidebar .widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 25px;
    position: relative;
}

/* Search Widget */
.sidebar-search-wrap .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.sidebar-search-wrap input.search-field {
    width: 100% !important;
    height: 50px !important;
    background: #f7f7f7 !important;
    border: 1px solid #eee !important;
    border-radius: 50px !important;
    padding: 0 50px 0 25px !important;
    font-size: 15px !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

.sidebar-search-wrap input.search-field:focus {
    background: #fff !important;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 5px 15px rgba(194, 153, 65, 0.1) !important;
}

.sidebar-search-wrap button {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: var(--gold-primary) !important;
    font-size: 20px !important;
    cursor: pointer !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.3s !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-search-wrap button:hover {
    opacity: 0.7;
}

/* Latest Posts List */
.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-post-item:hover {
    padding-left: 5px;
}

.sp-thumb {
    width: 65px;
    height: 65px;
    border-radius: 50%; /* Circle thumbnails in sidebar as per some luxury designs */
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-post-item:hover .sp-thumb img {
    transform: scale(1.15);
}

.sp-info h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #333;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-post-item:hover .sp-info h4 {
    color: var(--gold-primary);
}

.sp-info .sp-date {
    font-size: 12px;
    color: #999;
}

/* Category List */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cat-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f2f2f2;
}

.sidebar-cat-list li:last-child {
    border-bottom: none;
}

.sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-cat-list li a .count {
    color: #bbb;
    font-weight: 400;
}

.sidebar-cat-list li a:hover {
    color: var(--gold-primary);
    transform: translateX(5px);
}

/* Sidebar CTA */
.sidebar-gold-cta {
    background: var(--gold-primary);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.sidebar-gold-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    margin-bottom: 15px;
}

.sidebar-gold-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.sidebar-gold-cta .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1.5px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-gold-cta .btn-outline:hover {
    background: #fff;
    color: var(--gold-primary);
}

/* Author Box */
.post-author-box {
    margin-top: 80px;
    padding: 40px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 8px;
}

.author-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.author-socials {
    display: flex;
    gap: 15px;
}

.author-socials a {
    color: #999;
    font-size: 16px;
    transition: color 0.3s;
}

.author-socials a:hover {
    color: var(--gold-primary);
}

/* Related Posts */
.related-posts-section {
    padding: 80px 0;
    background: #fffaf5;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head .sub-title {
    display: block;
    color: var(--gold-primary);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.rc-thumb {
    height: 220px;
    overflow: hidden;
}

.rc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-card:hover .rc-thumb img {
    transform: scale(1.08);
}

.rc-info {
    padding: 25px;
}

.rc-info .cat {
    display: block;
    font-size: 11px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rc-info h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.rc-info h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.rc-info h3 a:hover {
    color: var(--gold-primary);
}

/* Comments Section Refined */
.post-comments-area {
    margin-top: 80px;
    max-width: 100% !important;
}

#comments.comments-area {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.comment-reply-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
    color: var(--text-dark);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comment-form-flex {
    display: flex;
    gap: 30px;
}

.comment-form-author, .comment-form-email {
    flex: 1;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.comment-form input[type="text"], 
.comment-form input[type="email"], 
.comment-form textarea {
    width: 100%;
    padding: 15px 25px;
    background: #fbf9f4; /* Light cream/off-white */
    border: 1px solid #e8e3d9;
    border-radius: 12px;
    font-size: 15px;
    color: #444;
    transition: all 0.3s ease;
    outline: none;
}

.comment-form input:focus, 
.comment-form textarea:focus {
    background: #fff;
    border-color: var(--gold-primary);
    box-shadow: 0 5px 15px rgba(194,153,65,0.08);
}

.comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

.form-submit-wrap {
    margin-top: 10px;
}

.comment-form .submit.btn-gold {
    background: var(--gold-primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 45px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.comment-form .submit.btn-gold:hover {
    background: var(--gold-dark) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 15px rgba(194,153,65,0.2) !important;
}

@media (max-width: 768px) {
    #comments.comments-area {
        padding: 40px 25px;
    }
    
    .comment-form-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .comment-reply-title {
        font-size: 26px !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .post-container {
        grid-template-columns: 1fr;
    }
    
    .single-post-hero h1 {
        font-size: 42px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post-hero h1 {
        font-size: 32px;
    }
    
    .post-author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form {
        grid-template-columns: 1fr;
    }
    
    .comment-form-comment, .form-submit {
        grid-column: span 1;
    }
}

@media (max-width: 430px) {
    html, body {
        overflow-x: hidden;
    }

    .single-post-hero {
        height: auto;
        min-height: 280px;
        padding: 56px 0 44px;
        background-attachment: scroll;
    }

    .single-post-hero .container {
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .hero-cat-tag {
        padding: 5px 14px;
        font-size: 10px;
        letter-spacing: 1.5px;
        margin-bottom: 16px;
    }

    .single-post-hero h1 {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 14px;
        word-break: break-word;
    }

    .post-meta-hero {
        flex-wrap: wrap;
        gap: 10px 14px;
        font-size: 12px;
        line-height: 1.4;
    }

    .post-layout-wrapper {
        padding: 32px 0 24px;
        overflow-x: hidden;
    }

    .container-post,
    .post-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .post-main-content,
    .post-sidebar,
    .related-posts-section,
    .post-comments-area {
        min-width: 0;
    }

    .entry-content {
        font-size: 15px;
        line-height: 1.75;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .entry-content p {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .entry-content h2,
    .entry-content h3 {
        margin: 28px 0 14px;
        line-height: 1.3;
        word-break: break-word;
    }

    .entry-content h2 {
        font-size: 22px;
    }

    .entry-content h3 {
        font-size: 19px;
    }

    .entry-content blockquote {
        padding: 20px 16px;
        margin: 24px 0;
        font-size: 17px;
        line-height: 1.6;
    }

    .entry-content img,
    .entry-content iframe,
    .entry-content video,
    .entry-content table {
        max-width: 100% !important;
    }

    .post-sidebar {
        gap: 28px;
        margin-top: 28px;
    }

    .post-sidebar .widget-title {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .sidebar-search-wrap input.search-field {
        height: 46px !important;
        padding: 0 46px 0 18px !important;
        font-size: 14px !important;
    }

    .sidebar-search-wrap button {
        width: 36px !important;
        height: 36px !important;
        font-size: 18px !important;
    }

    .sidebar-posts-list {
        gap: 16px;
    }

    .sidebar-post-item {
        gap: 12px;
    }

    .sp-thumb {
        width: 56px;
        height: 56px;
    }

    .sp-info h4 {
        font-size: 13px;
        line-height: 1.35;
    }

    .sidebar-cat-list li {
        padding: 12px 0;
    }

    .sidebar-cat-list li a {
        font-size: 13px;
        gap: 10px;
    }

    .post-author-box {
        margin-top: 44px;
        padding: 24px 18px;
        gap: 18px;
    }

    .author-image {
        width: 76px;
        height: 76px;
    }

    .author-info h3 {
        font-size: 18px;
    }

    .author-bio {
        font-size: 13px;
    }

    .related-posts-section {
        padding: 48px 0;
    }

    .section-head {
        margin-bottom: 28px;
    }

    .section-head h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 16px;
    }

    .rc-thumb {
        height: 180px;
    }

    .rc-info {
        padding: 18px;
    }

    .rc-info h3 {
        font-size: 16px;
        line-height: 1.45;
        word-break: break-word;
    }

    .post-comments-area {
        margin-top: 44px;
    }

    #comments.comments-area {
        padding: 26px 18px;
        border-radius: 16px;
    }

    .comment-reply-title {
        font-size: 22px !important;
        line-height: 1.25;
        margin-bottom: 22px !important;
    }

    .comment-form {
        gap: 18px;
    }

    .comment-form label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form textarea {
        padding: 13px 16px;
        font-size: 14px;
        border-radius: 10px;
        box-sizing: border-box;
    }

    .comment-form textarea {
        min-height: 140px;
    }

    .comment-form .submit.btn-gold {
        width: 100%;
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
}
