/**
 * Single Post Styles
 * 
 * Modern, clean styling for single blog posts with comprehensive
 * WordPress block editor support
 *
 * @package TravelSuggest
 * @since 1.0.0
 */

/* ========================================
   SINGLE POST LAYOUT
   ======================================== */

/* Main content wrapper for single posts */
body.single-post .site-content {
    background: #ffffff;
}

body.single-post .content-sidebar-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

body.single-post .main-content {
    max-width: 100%;
    padding: 0;
}

/* Article container */
body.single-post article.post {
    background: #ffffff;
    border-bottom: none;
}

/* ========================================
   BREADCRUMBS ALIGNMENT
   ======================================== */

/* Align breadcrumbs with content */
body.single-post .ts-breadcrumbs {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    padding: 1.5rem 1.5rem 0;
}

/* ========================================
   ENTRY HEADER
   ======================================== */

body.single-post .entry-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 3rem 1.5rem 0;
    text-align: center;
}

body.single-post .entry-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    text-align:left;
}

/* Desktop title alignment */
@media (min-width: 768px) {
    body.single-post .entry-header {
        text-align: center;
    }
}

/* Entry Meta */
body.single-post .entry-meta {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9375rem;
    color: hsl(215.4, 16.3%, 46.9%);
    margin-bottom: 1.5rem;
}

body.single-post .entry-meta > * {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.single-post .entry-meta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

body.single-post .entry-meta a {
    color: hsl(215.4, 16.3%, 46.9%);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.single-post .entry-meta a:hover {
    color: #f97316;
}

/* Save Button - removed from header, now in share section */

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

body.single-post .post-thumbnail {
    max-width: 1200px;
    margin: 0 auto 3rem;
    border-radius: 0;
    overflow: hidden;
}

body.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

/* ========================================
   ENTRY CONTENT
   ======================================== */

body.single-post .entry-content {
    max-width: 720px;
    /* margin: 0 auto; */
    padding: 0 1.5rem 3rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: hsl(215.4, 16.3%, 26.9%);
}

/* Paragraphs */
body.single-post .entry-content p {
    /* margin: 0 0 1.5rem 0; */
}

body.single-post .entry-content p:last-child {
    margin-bottom: 0;
}

/* Headings */
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6 {
    font-weight: 700;
    line-height: 1.3;
    color: hsl(222.2, 84%, 4.9%);
    margin: 2.5rem 0 1rem 0;
    letter-spacing: -0.01em;
}

body.single-post .entry-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
}

body.single-post .entry-content h3 {
    font-size: 1.5rem;
}

body.single-post .entry-content h4 {
    font-size: 1.25rem;
}

body.single-post .entry-content h5 {
    font-size: 1.125rem;
}

body.single-post .entry-content h6 {
    font-size: 1rem;
}

/* Links */
body.single-post .entry-content a {
    color: #f97316;
    text-decoration: underline;
    text-decoration-color: rgba(249, 115, 22, 0.3);
    text-underline-offset: 3px;
    transition: all 0.15s ease;
}

body.single-post .entry-content a:hover {
    text-decoration-color: #f97316;
    color: #ea580c;
}

/* Lists */
body.single-post .entry-content ul,
body.single-post .entry-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.75rem;
}

body.single-post .entry-content ul {
    list-style-type: disc;
}

body.single-post .entry-content ol {
    list-style-type: decimal;
}

body.single-post .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

body.single-post .entry-content li:last-child {
    margin-bottom: 0;
}

body.single-post .entry-content ul ul,
body.single-post .entry-content ol ol,
body.single-post .entry-content ul ol,
body.single-post .entry-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
body.single-post .entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: hsl(0, 0%, 98%);
    border-left: 4px solid #f97316;
    border-radius: 0 8px 8px 0;
    font-size: 1.125rem;
    font-style: italic;
    color: hsl(215.4, 16.3%, 36.9%);
}

body.single-post .entry-content blockquote p {
    margin-bottom: 0.75rem;
}

body.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}

body.single-post .entry-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-style: normal;
    color: hsl(215.4, 16.3%, 46.9%);
}

body.single-post .entry-content blockquote cite::before {
    content: "— ";
}

/* Code Blocks */
body.single-post .entry-content code {
    padding: 0.2em 0.4em;
    background: hsl(0, 0%, 96%);
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
    color: #e11d48;
}

body.single-post .entry-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: hsl(222.2, 84%, 4.9%);
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.6;
}

body.single-post .entry-content pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 0.9375rem;
}

/* Images */
body.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

body.single-post .entry-content figure {
    margin: 2rem 0;
}

body.single-post .entry-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    color: hsl(215.4, 16.3%, 46.9%);
    text-align: center;
    font-style: italic;
}

/* Image Alignments */
body.single-post .entry-content .alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%;
}

body.single-post .entry-content .alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
}

body.single-post .entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

body.single-post .entry-content .alignfull,
body.single-post .entry-content .alignwide {
    max-width: 100vw;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.single-post .entry-content .alignwide {
    max-width: 1200px;
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

/* Tables */
body.single-post .entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.9375rem;
}

body.single-post .entry-content thead {
    background: hsl(0, 0%, 98%);
}

body.single-post .entry-content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: hsl(222.2, 84%, 4.9%);
    border-bottom: 2px solid hsl(214.3, 31.8%, 91.4%);
}

body.single-post .entry-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%);
    color: hsl(215.4, 16.3%, 26.9%);
}

body.single-post .entry-content tbody tr:last-child td {
    border-bottom: none;
}

body.single-post .entry-content tbody tr:hover {
    background: hsl(0, 0%, 99%);
}

/* Horizontal Rule */
body.single-post .entry-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid hsl(214.3, 31.8%, 91.4%);
}

/* ========================================
   WORDPRESS BLOCK EDITOR BLOCKS
   ======================================== */

/* Pull Quote */
body.single-post .entry-content .wp-block-pullquote {
    margin: 3rem 0;
    padding: 2rem;
    border-top: 4px solid #f97316;
    border-bottom: 4px solid #f97316;
    border-left: none;
    border-right: none;
    background: transparent;
    text-align: center;
}

body.single-post .entry-content .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(222.2, 84%, 4.9%);
}

body.single-post .entry-content .wp-block-pullquote cite {
    margin-top: 1rem;
    font-size: 1rem;
    color: hsl(215.4, 16.3%, 46.9%);
}

/* Buttons */
body.single-post .entry-content .wp-block-button {
    margin: 1.5rem 0;
}

body.single-post .entry-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body.single-post .entry-content .wp-block-button__link:hover {
    background: #ea580c;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3),
                0 2px 4px -1px rgba(249, 115, 22, 0.2);
    transform: translateY(-1px);
}

/* Galleries */
body.single-post .entry-content .wp-block-gallery {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

body.single-post .entry-content .wp-block-gallery .blocks-gallery-item {
    margin: 0;
}

body.single-post .entry-content .wp-block-gallery img {
    margin: 0;
    border-radius: 6px;
}

/* Embeds (YouTube, Twitter, etc.) */
body.single-post .entry-content .wp-block-embed {
    margin: 2rem 0;
}

body.single-post .entry-content .wp-block-embed iframe,
body.single-post .entry-content .wp-block-embed video {
    max-width: 100%;
    border-radius: 8px;
}

/* Columns */
body.single-post .entry-content .wp-block-columns {
    margin: 2rem 0;
    gap: 2rem;
}

/* Separator */
body.single-post .entry-content .wp-block-separator {
    margin: 3rem auto;
    border: none;
    border-top: 1px solid hsl(214.3, 31.8%, 91.4%);
}

body.single-post .entry-content .wp-block-separator.is-style-wide {
    max-width: 100%;
}

body.single-post .entry-content .wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
}

body.single-post .entry-content .wp-block-separator.is-style-dots::before {
    content: "···";
    color: hsl(215.4, 16.3%, 46.9%);
    font-size: 1.5rem;
    letter-spacing: 1rem;
}

/* Cover Block */
body.single-post .entry-content .wp-block-cover {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Group Block */
body.single-post .entry-content .wp-block-group {
    margin: 2rem 0;
}

/* ========================================
   SOCIAL SHARE
   ======================================== */

body.single-post .ts-social-share {
    max-width: 720px;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
    background: hsl(0, 0%, 98%);
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 12px;
}

body.single-post .ts-social-share__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 1rem 0;
}

body.single-post .ts-social-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

body.single-post .ts-social-share__button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 8px;
    color: hsl(215.4, 16.3%, 46.9%);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.single-post .ts-social-share__button:hover {
    background: hsl(0, 0%, 96%);
    border-color: #f97316;
    color: #f97316;
    transform: translateY(-1px);
}

body.single-post .ts-social-share__button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

body.single-post .ts-social-share__button--facebook:hover {
    border-color: #1877f2;
    color: #1877f2;
}

body.single-post .ts-social-share__button--twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2;
}

body.single-post .ts-social-share__button--linkedin:hover {
    border-color: #0a66c2;
    color: #0a66c2;
}

body.single-post .ts-social-share__button--email:hover {
    border-color: #ea580c;
    color: #ea580c;
}

/* Save Button in Share Section */
body.single-post .ts-social-share__button--save {
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    color: hsl(215.4, 16.3%, 46.9%);
}

body.single-post .ts-social-share__button--save:hover {
    background: hsl(0, 0%, 96%);
    border-color: #f97316;
    color: #f97316;
}

body.single-post .ts-social-share__button--save.is-saved {
    background: rgba(249, 115, 22, 0.08);
    border-color: #f97316;
    color: #f97316;
}

body.single-post .ts-social-share__button--save.is-saved:hover {
    background: rgba(249, 115, 22, 0.12);
}

/* ========================================
   POST NAVIGATION
   ======================================== */

body.single-post .ts-post-navigation {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 0.5rem;
}

body.single-post .ts-post-navigation__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

body.single-post .ts-post-navigation__item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

body.single-post .ts-post-navigation__item:hover {
    border-color: #f97316;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

body.single-post .ts-post-navigation__item--empty {
    background: transparent;
    border: none;
}

body.single-post .ts-post-navigation__image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

body.single-post .ts-post-navigation__content {
    flex: 1;
    min-width: 0;
}

body.single-post .ts-post-navigation__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(215.4, 16.3%, 46.9%);
    margin-bottom: 0.5rem;
}

body.single-post .ts-post-navigation__label svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

body.single-post .ts-post-navigation__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.single-post .ts-post-navigation__item:hover .ts-post-navigation__title {
    color: #f97316;
}

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

body.single-post .ts-related-posts {
    max-width: 1200px;
    margin: 5rem auto 4rem;
    /* padding: 3rem 1.5rem 0; */
    border-top: 1px solid hsl(214.3, 31.8%, 91.4%);
}

body.single-post .ts-related-posts__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 2.5rem 0;
    text-align: left;
}

body.single-post .ts-related-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

body.single-post .ts-related-post {
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

body.single-post .ts-related-post:hover {
    border-color: #f97316;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

body.single-post .ts-related-post__image-link {
    display: block;
    text-decoration: none;
}

body.single-post .ts-related-post__image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

body.single-post .ts-related-post__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: rgba(249, 115, 22, 0.95);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

body.single-post .ts-related-post__content {
    padding: 1.5rem;
}

body.single-post .ts-related-post__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

body.single-post .ts-related-post__title a {
    color: hsl(222.2, 84%, 4.9%);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.single-post .ts-related-post__title a:hover {
    color: #f97316;
}

body.single-post .ts-related-post__excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: hsl(215.4, 16.3%, 46.9%);
    margin: 0 0 1rem 0;
}

body.single-post .ts-related-post__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: hsl(215.4, 16.3%, 56.9%);
}

body.single-post .ts-related-post__date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

body.single-post .ts-related-post__date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========================================
   COMMENTS
   ======================================== */

body.single-post .comments-area {
    max-width: 720px;
    margin: 4rem auto 0;
    padding: 0 1.5rem 3rem;
}

body.single-post .comments-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 2rem 0;
}

body.single-post .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

body.single-post .comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsl(214.3, 31.8%, 91.4%);
}

body.single-post .comment:last-child {
    border-bottom: none;
}

body.single-post .comment-body {
    display: flex;
    gap: 1rem;
}

body.single-post .comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

body.single-post .comment-content-wrap {
    flex: 1;
    min-width: 0;
}

body.single-post .comment-meta {
    margin-bottom: 0.75rem;
}

body.single-post .comment-author {
    font-weight: 600;
    color: hsl(222.2, 84%, 4.9%);
}

body.single-post .comment-metadata {
    font-size: 0.875rem;
    color: hsl(215.4, 16.3%, 56.9%);
}

body.single-post .comment-metadata a {
    color: hsl(215.4, 16.3%, 56.9%);
    text-decoration: none;
}

body.single-post .comment-metadata a:hover {
    color: #f97316;
}

body.single-post .comment-content {
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(215.4, 16.3%, 26.9%);
}

body.single-post .comment-content p {
    margin: 0 0 0.75rem 0;
}

body.single-post .comment-content p:last-child {
    margin-bottom: 0;
}

body.single-post .reply {
    margin-top: 0.75rem;
}

body.single-post .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: hsl(0, 0%, 98%);
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 6px;
    color: hsl(215.4, 16.3%, 46.9%);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

body.single-post .comment-reply-link:hover {
    background: #ffffff;
    border-color: #f97316;
    color: #f97316;
}

/* Nested Comments */
body.single-post .children {
    list-style: none;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

/* Comment Form */
body.single-post .comment-respond {
    margin-top: 3rem;
    padding: 2rem;
    background: hsl(0, 0%, 98%);
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 12px;
}

body.single-post .comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(222.2, 84%, 4.9%);
    margin: 0 0 1.5rem 0;
}

body.single-post .comment-form label {
    display: block;
    font-weight: 500;
    color: hsl(222.2, 84%, 4.9%);
    margin-bottom: 0.5rem;
}

body.single-post .comment-form input[type="text"],
body.single-post .comment-form input[type="email"],
body.single-post .comment-form input[type="url"],
body.single-post .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid hsl(214.3, 31.8%, 91.4%);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: hsl(215.4, 16.3%, 26.9%);
    transition: all 0.15s ease;
}

body.single-post .comment-form input[type="text"]:focus,
body.single-post .comment-form input[type="email"]:focus,
body.single-post .comment-form input[type="url"]:focus,
body.single-post .comment-form textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

body.single-post .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

body.single-post .form-submit {
    margin-top: 1rem;
}

body.single-post .comment-form .submit {
    padding: 0.75rem 1.5rem;
    background: #f97316;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

body.single-post .comment-form .submit:hover {
    background: #ea580c;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3),
                0 2px 4px -1px rgba(249, 115, 22, 0.2);
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    body.single-post .entry-header {
        /* padding: 2rem 1.25rem 0; */
    }

    body.single-post .entry-title {
        font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    }

    body.single-post .entry-content {
        /* padding: 0 1.25rem 2.5rem; */
        font-size: 1.0625rem;
    }

    body.single-post .entry-content h2 {
        font-size: 1.75rem;
    }

    body.single-post .entry-content h3 {
        font-size: 1.375rem;
    }

    body.single-post .ts-related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    body.single-post .ts-post-navigation__inner {
        gap: 1.25rem;
    }

    body.single-post .ts-post-navigation__image {
        width: 80px;
        height: 80px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    body.single-post .ts-breadcrumbs {
        padding: 1.25rem 1.25rem 0;
    }

    body.single-post .entry-header {
        /* padding: 2rem 1.25rem 0; */
        padding: 1.5rem 1.25rem 0;
        margin-bottom: 2rem;
        text-align: left;
    }

    body.single-post .entry-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
        margin-bottom: 1.25rem;
        line-height: 1.25;
    }

    body.single-post .entry-meta {
        font-size: 0.9375rem;
        gap: 0.875rem;
        justify-content: flex-start;
    }

    body.single-post .post-thumbnail {
        margin-bottom: 2rem;
    }

    body.single-post .post-thumbnail img {
        max-height: 400px;
    }

    body.single-post .entry-content {
        padding: 0 1.25rem 2rem;
        font-size: 1.0625rem;
        line-height: 1.75;
    }

    body.single-post .entry-content h2 {
        font-size: 1.75rem;
        margin-top: 2.5rem;
        line-height: 1.3;
    }

    body.single-post .entry-content h3 {
        font-size: 1.5rem;
        line-height: 1.35;
    }

    body.single-post .entry-content h4 {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    body.single-post .entry-content h5,
    body.single-post .entry-content h6 {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    body.single-post .entry-content blockquote {
        margin: 1.5rem 0;
        padding: 1rem 1rem 1rem 1.25rem;
        font-size: 1rem;
    }

    body.single-post .entry-content pre {
        margin: 1.5rem -1rem;
        padding: 1rem;
        border-radius: 0;
    }

    body.single-post .entry-content .alignleft,
    body.single-post .entry-content .alignright {
        float: none;
        margin: 1.5rem 0;
        max-width: 100%;
    }

    body.single-post .entry-content .alignwide {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }

    body.single-post .entry-content table {
        font-size: 0.875rem;
    }

    body.single-post .entry-content th,
    body.single-post .entry-content td {
        padding: 0.5rem 0.75rem;
    }

    /* Social Share */
    body.single-post .ts-social-share {
        margin: 2.5rem auto;
        padding: 1.75rem 1.25rem;
    }

    body.single-post .ts-social-share__title {
        font-size: 1.125rem;
        margin-bottom: 1.25rem;
        text-align: left;
    }

    body.single-post .ts-social-share__buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
        justify-content: flex-start;
    }

    body.single-post .ts-social-share__button {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
        flex: 0 0 auto;
        min-width: auto;
        justify-content: center;
    }

    body.single-post .ts-social-share__button span {
        display: none;
    }

    body.single-post .ts-social-share__button svg {
        width: 20px;
        height: 20px;
    }

    /* Post Navigation */
    body.single-post .ts-post-navigation {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    body.single-post .ts-post-navigation__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    body.single-post .ts-post-navigation__item {
        padding: 1rem;
    }

    body.single-post .ts-post-navigation__image {
        width: 70px;
        height: 70px;
    }

    body.single-post .ts-post-navigation__label {
        font-size: 0.8125rem;
    }

    body.single-post .ts-post-navigation__title {
        font-size: 0.9375rem;
    }

    /* Related Posts */
    body.single-post .ts-related-posts {
        margin: 4rem auto 3rem;
        padding: 2.5rem 1rem 0;
    }

    body.single-post .ts-related-posts__title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    body.single-post .ts-related-posts__grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    body.single-post .ts-related-post__image {
        height: 180px;
    }

    body.single-post .ts-related-post__content {
        padding: 1.25rem;
    }

    body.single-post .ts-related-post__title {
        font-size: 1rem;
    }

    body.single-post .ts-related-post__excerpt {
        font-size: 0.875rem;
    }

    /* Comments */
    body.single-post .comments-area {
        margin: 3rem auto 0;
        padding: 0 1rem 2rem;
    }

    body.single-post .comments-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    body.single-post .comment {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    body.single-post .comment-body {
        gap: 0.75rem;
    }

    body.single-post .comment-author .avatar {
        width: 40px;
        height: 40px;
    }

    body.single-post .children {
        padding-left: 1rem;
        margin-top: 1rem;
    }

    body.single-post .comment-respond {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    body.single-post .comment-reply-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }

    body.single-post .comment-form input[type="text"],
    body.single-post .comment-form input[type="email"],
    body.single-post .comment-form input[type="url"],
    body.single-post .comment-form textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }

    body.single-post .comment-form textarea {
        min-height: 120px;
    }

    body.single-post .comment-form .submit {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    body.single-post .ts-breadcrumbs {
        padding: 1rem 1rem 0;
    }

    body.single-post .entry-header {
        /* padding: 1.5rem 1rem 0; */
        padding: 1.25rem 1rem 0;
        text-align: left;
    }

    body.single-post .entry-title {
        font-size: clamp(1.875rem, 6.5vw, 2.5rem);
    }

    body.single-post .entry-meta {
        justify-content: flex-start;
    }

    body.single-post .entry-content {
        padding: 0 1rem 2rem;
        font-size: 1rem;
    }

    body.single-post .entry-content h2 {
        font-size: 1.625rem;
    }

    body.single-post .entry-content h3 {
        font-size: 1.375rem;
    }

    body.single-post .entry-content .wp-block-pullquote blockquote {
        font-size: 1.25rem;
    }

    body.single-post .ts-social-share {
        padding: 1.5rem 1rem;
    }

    body.single-post .ts-social-share__title {
        text-align: left;
    }

    body.single-post .ts-social-share__buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    body.single-post .ts-social-share__button {
        padding: 0.625rem 0.5rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    body.single-post .ts-social-share__button span {
        display: none;
    }

    body.single-post .ts-social-share__button svg {
        width: 18px;
        height: 18px;
    }

    body.single-post .ts-post-navigation__item {
        flex-direction: column;
        text-align: center;
    }

    body.single-post .ts-post-navigation__image {
        width: 100%;
        height: 150px;
    }

    body.single-post .ts-related-post__image {
        height: 160px;
    }
}

/* Print Styles */
@media print {
    body.single-post .ts-social-share,
    body.single-post .ts-post-navigation,
    body.single-post .ts-related-posts,
    body.single-post .comments-area {
        display: none;
    }

    body.single-post .entry-content {
        max-width: 100%;
        font-size: 12pt;
        line-height: 1.6;
    }

    body.single-post .entry-content a {
        text-decoration: underline;
        color: #000;
    }

    body.single-post .entry-content a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}

