/**
 * Clayelle Post Redesign - Complete New Design
 * Split header, Serif fonts, Terrakotta colors, Modern layout
 */

/* ============================================
   GOOGLE FONTS - Playfair Display for Headings
   ============================================ */
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	font-weight: 400;
	font-style: normal;
	src: local('Playfair Display Regular'), local('PlayfairDisplay-Regular'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYgEM86xQ.woff2) format('woff2'), url(//clayelle.com/wp-content/uploads/sgf-css/nuFiD-vYSZviVYUb_rj3ij__anPXDTzYhg.woff) format('woff');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --clay-serif-font: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --clay-terracotta: #c4a484;
    --clay-terracotta-dark: #a68968;
    --clay-terracotta-light: #d4b494;
    --clay-warm-bg: #faf8f5;
    --clay-text-dark: #2d2d2d;
    --clay-text-muted: #6b7280;
}

/* ============================================
   HIDE OLD EKSELL ELEMENTS ON SINGLE POSTS
   ============================================ */
.single-post .featured-media,
.single-post .entry-header,
.single-post hr.color-accent,
.single-post .entry-meta-header {
    display: none !important;
}

/* Remove H2 counter */
.single-post .entry-content {
    counter-reset: none !important;
}

.single-post .entry-content h2 {
    counter-increment: none !important;
}

.single-post .entry-content h2::before {
    content: none !important;
    display: none !important;
}

/* ============================================
   SPLIT HEADER LAYOUT
   ============================================ */
.clay-post-header {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: var(--clay-warm-bg);
}

.clay-post-header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 500px;
}

/* Left: Featured Image */
.clay-header-image {
    position: relative;
    overflow: hidden;
}

.clay-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right: Content */
.clay-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: var(--clay-warm-bg);
}

/* Category Badge */
.clay-category-badge {
    display: inline-block;
    background: var(--clay-terracotta);
    color: #fff !important;
    font-family: var(--clay-body-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    margin-bottom: 24px;
    transition: background 0.2s ease;
    width: fit-content;
}

.clay-category-badge:hover {
    background: var(--clay-terracotta-dark);
    color: #fff !important;
}

/* Post Title - Serif Font */
.clay-post-title {
    font-family: var(--clay-serif-font) !important;
    font-size: 42px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.2 !important;
    color: var(--clay-text-dark) !important;
    margin: 0 0 20px 0 !important;
    letter-spacing: -0.02em;
}

/* Post Excerpt */
.clay-post-excerpt {
    font-family: var(--clay-body-font);
    font-size: 18px;
    font-style: italic;
    line-height: 1.6;
    color: var(--clay-text-muted);
    margin: 0 0 30px 0;
    max-width: 500px;
}

/* Post Meta */
.clay-post-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.clay-meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.clay-author-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--clay-terracotta, #c4a484);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--clay-serif-font);
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.clay-author-name {
    font-family: var(--clay-body-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--clay-text-dark);
}

.clay-meta-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.clay-meta-date,
.clay-meta-reading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--clay-body-font);
    font-size: 13px;
    color: var(--clay-text-muted);
}

.clay-meta-date svg,
.clay-meta-reading svg {
    opacity: 0.6;
}

/* ============================================
   CONTENT AREA - Wider, Left-aligned
   ============================================ */
.single-post.clay-redesign .post-inner {
    max-width: 800px !important;
    margin: 60px auto !important;
    padding: 0 30px !important;
}

.single-post.clay-redesign .entry-content {
    max-width: 100% !important;
}

/* Typography in Content */
.single-post.clay-redesign .entry-content h2 {
    font-family: var(--clay-serif-font) !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    color: var(--clay-text-dark) !important;
    margin: 48px 0 24px 0 !important;
    line-height: 1.3 !important;
}

.single-post.clay-redesign .entry-content h3 {
    font-family: var(--clay-serif-font) !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    color: var(--clay-terracotta-dark) !important;
    margin: 36px 0 16px 0 !important;
}

.single-post.clay-redesign .entry-content h4 {
    font-family: var(--clay-body-font) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--clay-text-dark) !important;
    margin: 28px 0 12px 0 !important;
}

.single-post.clay-redesign .entry-content p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--clay-text-dark);
    margin-bottom: 24px;
}

/* Remove italic from first paragraphs */
.single-post.clay-redesign .entry-content > p:first-child,
.single-post.clay-redesign .entry-content > p:first-child + p {
    font-style: normal !important;
    font-size: 17px !important;
    color: var(--clay-text-dark) !important;
}

/* Images in content - can extend */
.single-post.clay-redesign .entry-content img {
    border-radius: 8px;
    margin: 32px 0;
}

.single-post.clay-redesign .entry-content figure {
    margin: 40px 0;
}

.single-post.clay-redesign .entry-content figcaption {
    font-size: 14px;
    color: var(--clay-text-muted);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
}

/* Blockquotes */
.single-post.clay-redesign .entry-content blockquote {
    border-left: 4px solid var(--clay-terracotta);
    padding: 20px 30px;
    margin: 40px 0;
    background: var(--clay-warm-bg);
    border-radius: 0 8px 8px 0;
}

.single-post.clay-redesign .entry-content blockquote p {
    font-family: var(--clay-serif-font);
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

/* Lists */
.single-post.clay-redesign .entry-content ul,
.single-post.clay-redesign .entry-content ol {
    margin: 24px 0;
    padding-left: 24px;
}

.single-post.clay-redesign .entry-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* ============================================
   ACCORDION STYLING UPDATE
   ============================================ */
.single-post.clay-redesign .fb-accordion-icon {
    background: var(--clay-terracotta) !important;
}

.single-post.clay-redesign .fb-accordion::after {
    background-color: var(--clay-terracotta) !important;
}

.single-post.clay-redesign .fb-accordion-title {
    font-family: var(--clay-body-font) !important;
    font-weight: 600 !important;
}

/* ============================================
   RELATED POSTS - Horizontal Slider Style
   ============================================ */
.single-post.clay-redesign .related-posts-section {
    background: var(--clay-warm-bg);
    padding: 60px 30px 60px 30px;
    margin: 60px 0 0 0;
    max-width: 100% !important;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.single-post.clay-redesign .related-posts-section > p:first-child,
.single-post.clay-redesign .yarpp-related-title {
    font-family: var(--clay-serif-font) !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    color: var(--clay-text-dark) !important;
}

.single-post.clay-redesign .yarpp-thumbnails-horizontal {
    display: flex !important;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 20px 20px 20px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100% - 40px);
    margin: 0 auto;
    box-sizing: border-box;
}

.single-post.clay-redesign .yarpp-thumbnails-horizontal::after {
    content: '';
    flex: 0 0 1px;
    min-width: 1px;
}

.single-post.clay-redesign .yarpp-thumbnails-horizontal .yarpp-thumbnail {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post.clay-redesign .yarpp-thumbnails-horizontal .yarpp-thumbnail:last-child {
    margin-right: 20px;
}

.single-post.clay-redesign .yarpp-thumbnails-horizontal .yarpp-thumbnail:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.single-post.clay-redesign .yarpp-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.single-post.clay-redesign .yarpp-thumbnail-title {
    padding: 16px;
    font-family: var(--clay-body-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--clay-text-dark) !important;
}

/* Override: the `clay-redesign` class is on the <article>, not on <body> */
.single-post .clay-redesign .related-posts-section {
    background: var(--clay-warm-bg) !important;
    padding: 60px 30px 60px 30px !important;
    margin: 60px 0 0 0 !important;
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

.single-post .clay-redesign .related-posts-section .yarpp-related-title {
    font-family: var(--clay-serif-font) !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    color: var(--clay-text-dark) !important;
}

.single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 24px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 10px 20px 20px 20px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    max-width: calc(100% - 40px) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal::after {
    content: '';
    flex: 0 0 1px;
    min-width: 1px;
}

.single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal .yarpp-thumbnail {
    flex: 0 0 280px !important;
    scroll-snap-align: start;
}

.single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal .yarpp-thumbnail:last-child {
    margin-right: 20px !important;
}

/* Undo claytheme/style.css rules that hide thumbnails with nth-child on smaller screens */
.single-post .related-posts-section .yarpp-thumbnails-horizontal a.yarpp-thumbnail:nth-child(n+2),
.single-post .related-posts-section .yarpp-thumbnails-horizontal a.yarpp-thumbnail:nth-child(n+3),
.single-post .related-posts-section .yarpp-thumbnails-horizontal a.yarpp-thumbnail:nth-child(n+5) {
    display: flex !important;
}

/* Force slider behavior even if theme sets grid for related posts */
.single-post .related-posts-section .yarpp-thumbnails-horizontal {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

@media (max-width: 400px) {
    .single-post .clay-redesign .related-posts-section {
        padding: 50px 0 50px 0 !important;
    }

    .single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal {
        padding: 10px 15px 20px 15px !important;
        gap: 16px !important;
        max-width: calc(100% - 30px) !important;
    }

    .single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal .yarpp-thumbnail {
        flex: 0 0 200px !important;
    }

    .single-post .clay-redesign .related-posts-section .yarpp-thumbnails-horizontal .yarpp-thumbnail:last-child {
        margin-right: 15px !important;
    }

    .single-post .clay-redesign .related-posts-section .yarpp-thumbnail img {
        height: 140px !important;
    }

    .single-post .clay-redesign .related-posts-section .yarpp-thumbnail-title {
        padding: 12px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   COMMENTS SECTION
   ============================================ */
.single-post.clay-redesign .comments-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .clay-post-header-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .clay-header-image {
        height: 300px;
    }
    
    .clay-header-content {
        padding: 40px 30px;
    }
    
    .clay-post-title {
        font-size: 32px !important;
    }
    
    .clay-post-excerpt {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .clay-header-image {
        height: 250px;
    }
    
    .clay-header-content {
        padding: 30px 20px;
    }
    
    .clay-post-title {
        font-size: 28px !important;
    }
    
    .clay-category-badge {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .clay-meta-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .single-post.clay-redesign .post-inner {
        padding: 0 20px !important;
        margin: 40px auto !important;
    }
    
    .single-post.clay-redesign .entry-content h2 {
        font-size: 26px !important;
    }
    
    .single-post.clay-redesign .entry-content h3 {
        font-size: 20px !important;
    }
    
    .single-post.clay-redesign .yarpp-thumbnails-horizontal .yarpp-thumbnail {
        flex: 0 0 240px;
    }
}

/* Extra small phones (< 400px) */
@media (max-width: 400px) {
    .single-post.clay-redesign .yarpp-thumbnails-horizontal {
        padding: 10px 15px 20px 15px !important;
        gap: 16px;
    }
    
    .single-post.clay-redesign .yarpp-thumbnails-horizontal .yarpp-thumbnail {
        flex: 0 0 200px;
    }
    
    .single-post.clay-redesign .yarpp-thumbnails-horizontal .yarpp-thumbnail:last-child {
        margin-right: 15px;
    }
    
    .single-post.clay-redesign .yarpp-thumbnail img {
        height: 140px;
    }
    
    .single-post.clay-redesign .yarpp-thumbnail-title {
        padding: 12px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .clay-post-header {
        background: none;
    }
    
    .clay-header-image {
        display: none;
    }
    
    .clay-header-content {
        padding: 20px 0;
    }
}
