/* ==========================================
   PlayAh Blog UI Enhancement - Single Post
   ========================================== */

/* ---- SINGLE POST CONTAINER ---- */
.single-post .site-main,
.single-post .entry-content,
.single-post article {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 20px;
    box-sizing: border-box;
}

.playah-post-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- BREADCRUMBS ---- */
.playah-breadcrumbs {
    max-width: 820px;
    margin: 16px auto 20px;
    padding: 0 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}
.playah-breadcrumbs a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}
.playah-breadcrumbs a:hover {
    color: #000;
}
.playah-breadcrumbs .sep {
    margin: 0 8px;
    color: #ccc;
}
.playah-breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

/* ---- FEATURED IMAGE ---- */
.playah-featured-image {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.playah-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

/* ---- CATEGORY BADGES ---- */
.playah-cat-badges {
    margin-bottom: 12px;
}
.playah-cat-badge {
    display: inline-block;
    background: #000;
    color: #fff !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none !important;
    margin-right: 6px;
    transition: background 0.2s;
}
.playah-cat-badge:hover {
    background: #333;
}

/* ---- POST META BAR ---- */
.playah-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}
.playah-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ---- POST TITLE ---- */
.single-post .entry-title,
.single-post h1 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #111 !important;
    margin-bottom: 16px !important;
    letter-spacing: -0.02em;
}

/* ---- CONTENT TYPOGRAPHY ---- */
.single-post .entry-content p,
.single-post article p {
    font-size: 16.5px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.2em;
}

.single-post .entry-content h2,
.single-post article h2 {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-top: 2.2em !important;
    margin-bottom: 0.7em !important;
    padding-bottom: 10px;
    border-bottom: 3px solid #000;
    line-height: 1.35;
}

.single-post .entry-content h3,
.single-post article h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-top: 1.8em !important;
    margin-bottom: 0.5em !important;
    line-height: 1.4;
}

.single-post .entry-content h4,
.single-post article h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.4em !important;
}

/* ---- LISTS ---- */
.single-post .entry-content ul,
.single-post .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.single-post .entry-content li {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
    margin-bottom: 0.4em;
}

/* ---- BLOCKQUOTE ---- */
.single-post .entry-content blockquote {
    border-left: 4px solid #000;
    background: #f9f9f9;
    padding: 16px 20px;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* ---- IMAGES INSIDE CONTENT ---- */
.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* ---- STRONG / BOLD ---- */
.single-post .entry-content strong,
.single-post .entry-content b {
    color: #111;
    font-weight: 700;
}

/* ---- LINKS ---- */
.single-post .entry-content a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.single-post .entry-content a:hover {
    text-decoration-color: #000;
}

/* ==========================================
   TABLE OF CONTENTS
   ========================================== */
.playah-toc {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0;
    margin: 28px 0 32px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.playah-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
}

.playah-toc-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.01em;
}

.playah-toc-toggle {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}
.playah-toc-toggle:hover {
    background: #eee;
    color: #333;
}
.playah-toc-toggle svg {
    transition: transform 0.3s;
}

.playah-toc.collapsed .playah-toc-list {
    display: none;
}
.playah-toc.collapsed .playah-toc-toggle svg {
    transform: rotate(-90deg);
}
.playah-toc.collapsed .playah-toc-header {
    border-bottom: none;
}

.playah-toc-list {
    padding: 12px 20px 16px;
}

.playah-toc-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.playah-toc-list li {
    margin: 0 !important;
    padding: 0 !important;
}

.playah-toc-list li a {
    display: block;
    padding: 7px 12px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 6px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.playah-toc-list li a:hover {
    background: #eee;
    color: #111;
    border-left-color: #000;
}

.playah-toc-list li a.active {
    background: #000;
    color: #fff;
    font-weight: 600;
    border-left-color: transparent;
}

.playah-toc-list li.toc-sub a {
    padding-left: 28px;
    font-size: 13px;
    color: #666;
}

/* ==========================================
   RELATED POSTS
   ========================================== */
.playah-related-posts {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #eee;
}

.playah-related-posts .related-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.playah-related-posts .related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.playah-related-posts .related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.25s ease;
}
.playah-related-posts .related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.playah-related-posts .related-thumb {
    height: 160px;
    overflow: hidden;
    background: #f0f0f0;
}
.playah-related-posts .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    margin: 0 !important;
}

.playah-related-posts .related-info {
    padding: 14px 16px;
}
.playah-related-posts .related-info h4 {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #222 !important;
    line-height: 1.45 !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.playah-related-posts .related-date {
    font-size: 12px;
    color: #999;
}

/* ==========================================
   BLOG ARCHIVE / LISTING PAGE
   ========================================== */
.playah-blog-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.playah-blog-main {
    flex: 1;
    min-width: 0;
}

.playah-blog-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ---- BLOG CARD GRID ---- */
.playah-blog-grid {
    display: grid;
    gap: 24px;
}
.playah-blog-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.playah-blog-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.playah-blog-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.playah-blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.25s ease;
}
.playah-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.playah-blog-card .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.playah-blog-card .card-thumbnail {
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}
.playah-blog-card .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.playah-blog-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.playah-blog-card .playah-card-no-thumb {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
}

.playah-blog-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.playah-blog-card .card-category {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.playah-blog-card .card-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playah-blog-card .card-excerpt {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playah-blog-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.playah-blog-card .card-date {
    font-size: 12px;
    color: #999;
}
.playah-blog-card .card-read-more {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    transition: opacity 0.2s;
}
.playah-blog-card:hover .card-read-more {
    opacity: 0.7;
}

/* ---- SIDEBAR WIDGETS ---- */
.playah-blog-sidebar .sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.playah-blog-sidebar .sidebar-widget-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.playah-blog-sidebar .sidebar-categories {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.playah-blog-sidebar .sidebar-categories li {
    margin: 0 !important;
    padding: 0 !important;
}
.playah-blog-sidebar .sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #444;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.playah-blog-sidebar .sidebar-categories li a:hover {
    background: #f5f5f5;
    color: #000;
}
.playah-blog-sidebar .sidebar-categories li a span {
    color: #aaa;
    font-size: 13px;
}

/* Popular/Recent posts in sidebar */
.playah-blog-sidebar .sidebar-popular {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.playah-blog-sidebar .sidebar-popular li {
    margin: 0 !important;
    padding: 0 !important;
}
.playah-blog-sidebar .sidebar-popular li a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.2s;
}
.playah-blog-sidebar .sidebar-popular li:last-child a {
    border-bottom: none;
}
.playah-blog-sidebar .sidebar-popular li a:hover {
    opacity: 0.8;
}
.playah-blog-sidebar .popular-thumb {
    width: 64px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.playah-blog-sidebar .popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.playah-blog-sidebar .popular-info {
    flex: 1;
    min-width: 0;
}
.playah-blog-sidebar .popular-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.playah-blog-sidebar .popular-date {
    font-size: 12px;
    color: #aaa;
}

/* ---- PAGINATION ---- */
.playah-pagination {
    margin-top: 32px;
    text-align: center;
}
.playah-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    list-style: none !important;
    padding: 0 !important;
}
.playah-pagination li {
    margin: 0 !important;
}
.playah-pagination a,
.playah-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
}
.playah-pagination a:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}
.playah-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .playah-blog-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .playah-blog-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .single-post .site-main,
    .single-post .entry-content,
    .single-post article {
        padding: 0 16px;
    }
    
    .single-post .entry-title,
    .single-post h1 {
        font-size: 1.6rem !important;
    }
    
    .single-post .entry-content h2,
    .single-post article h2 {
        font-size: 1.3rem !important;
    }
    
    .playah-post-meta {
        flex-direction: column;
        gap: 6px;
    }
    
    .playah-related-posts .related-grid {
        grid-template-columns: 1fr;
    }
    
    .playah-blog-layout {
        flex-direction: column;
    }
    
    .playah-blog-sidebar {
        width: 100%;
    }
    
    .playah-blog-grid.cols-3,
    .playah-blog-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .playah-blog-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .playah-blog-grid.cols-3,
    .playah-blog-grid.cols-4,
    .playah-blog-grid.cols-2 {
        grid-template-columns: 1fr;
    }
    
    .playah-blog-card .card-thumbnail {
        height: 160px;
    }
}
