/**
 * Posts Archive & Single Styles
 * Styles cho trang danh mục và chi tiết tin
 *
 * @package Flatsome Child
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --post-primary: #4ECDC4;
    --post-primary-dark: #3DBDB5;
    --post-secondary: #FF6B6B;
    --post-accent: #FFE66D;
    
    --post-text: #2D3748;
    --post-text-light: #718096;
    --post-text-muted: #A0AEC0;
    
    --post-bg: #FFFFFF;
    --post-bg-light: #F7FAFC;
    --post-bg-alt: #EDF2F7;
    
    --post-border: #E2E8F0;
    --post-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --post-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --post-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --post-radius: 12px;
    --post-radius-lg: 16px;
    --post-transition: all 0.3s ease;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
.posts-archive,
.single-post {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: var(--post-text);
    line-height: 1.7;
}

/* ==========================================================================
   Archive Header
   ========================================================================== */
.archive-header {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #FFA500 0%, #fcc96b 100%);
    overflow: hidden;
}

.archive-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.archive-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.archive-header__shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.archive-header__shapes .shape--1 {
    width: 200px;
    height: 200px;
    top: -50px;
    left: -50px;
}

.archive-header__shapes .shape--2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: 10%;
}

.archive-header__shapes .shape--3 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 5%;
}

.archive-header__content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.archive-header__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.archive-header__breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--post-transition);
}

.archive-header__breadcrumb a:hover {
    color: white;
}

.archive-header__breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.archive-header__breadcrumb .current {
    color: white;
    font-weight: 600;
}

.archive-header__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.archive-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.archive-header__description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 20px;
}

.archive-header__meta .post-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================================================
   Archive Layout
   ========================================================================== */
.posts-archive__wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 60px 0;
}

.posts-archive__main {
    min-width: 0;
}

.posts-archive__sidebar {
    position: relative;
}

/* ==========================================================================
   Posts Filter
   ========================================================================== */
.posts-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--post-bg);
    border-radius: var(--post-radius);
    box-shadow: var(--post-shadow);
}

.posts-filter__categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: var(--post-bg-light);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--post-text-light);
    cursor: pointer;
    transition: var(--post-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--post-primary);
    color: white;
}

.filter-btn .count {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

.posts-filter__view {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 38px;
    height: 38px;
    background: var(--post-bg-light);
    border: none;
    border-radius: 8px;
    color: var(--post-text-light);
    cursor: pointer;
    transition: var(--post-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover,
.view-btn.active {
    background: var(--post-primary);
    color: white;
}

/* ==========================================================================
   Posts Grid
   ========================================================================== */
.posts-grid {
    display: grid;
    gap: 30px;
}

.posts-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.posts-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

.posts-grid--list {
    grid-template-columns: 1fr;
}

/* ==========================================================================
   Post Card
   ========================================================================== */
.post-card {
    background: var(--post-bg);
    border-radius: var(--post-radius-lg);
    overflow: hidden;
    box-shadow: var(--post-shadow);
    transition: var(--post-transition);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--post-shadow-xl);
}

.post-card__thumbnail {
    position: relative;
    overflow: hidden;
}

.post-card__image-link {
    display: block;
}

.post-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--post-transition);
}

.post-card:hover .post-card__image {
    transform: scale(1.1);
}

.post-card__placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--post-primary), var(--post-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.post-card__category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFA500;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    /* transition: var(--post-transition); */
}

.post-card__category:hover {
    background: #FFA500;
    color: white !important;
}

.post-card__content {
    padding: 25px;
}

.post-card__meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.post-card__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--post-text-muted);
}

.post-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card__title a {
    color: var(--post-text);
    transition: var(--post-transition);
}

.post-card__title a:hover {
    color: var(--post-primary);
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: var(--post-text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFA500;
    transition: var(--post-transition);
}

.post-card__link:hover {
    color: var(--post-primary-dark);
    gap: 10px;
}

/* List View */
.posts-grid--list .post-card {
    display: grid;
    grid-template-columns: 280px 1fr;
}

.posts-grid--list .post-card__image {
    height: 100%;
    min-height: 180px;
}

.posts-grid--list .post-card__placeholder {
    height: 100%;
    min-height: 180px;
}

/* ==========================================================================
   Post Card Featured
   ========================================================================== */
.post-card-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--post-bg);
    border-radius: var(--post-radius-lg);
    overflow: hidden;
    box-shadow: var(--post-shadow-lg);
    margin-bottom: 40px;
}

.post-card-featured__thumbnail {
    position: relative;
    overflow: hidden;
}

.post-card-featured__image-link {
    display: block;
    height: 100%;
}

.post-card-featured__image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    transition: var(--post-transition);
}

.post-card-featured:hover .post-card-featured__image {
    transform: scale(1.05);
}

.post-card-featured__placeholder {
    width: 100%;
    height: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, var(--post-primary), var(--post-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.post-card-featured__badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFA500;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-featured__content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-card-featured__category {
    display: inline-block;
    background: #FFA500;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--post-transition);
    width: fit-content;
}

.post-card-featured__category:hover {
    background: #d18b0c;
    color: white !important;
}

.post-card-featured__title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-card-featured__title a {
    color: var(--post-text);
    transition: var(--post-transition);
}

.post-card-featured__title a:hover {
    color: var(--post-primary);
}

.post-card-featured__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.post-card-featured__meta .meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-card-featured__meta .meta-author img {
    border-radius: 50%;
}

.post-card-featured__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #FFA500;
}

.post-card-featured__excerpt {
    font-size: 1rem;
    color: var(--post-text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.post-card-featured__link {
    width: fit-content;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
}
.post-card-featured__link:hover{
  color: #fff !important;
}
/* ==========================================================================
   Pagination
   ========================================================================== */
.posts-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.posts-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.posts-pagination .page-numbers li a,
.posts-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: var(--post-bg);
    border: 2px solid var(--post-border);
    border-radius: 8px;
    font-weight: 600;
    color: var(--post-text-light);
    transition: var(--post-transition);
    gap: 8px;
}

.posts-pagination .page-numbers li a:hover,
.posts-pagination .page-numbers li span.current {
    background: var(--post-primary);
    border-color: var(--post-primary);
    color: white;
}

/* ==========================================================================
   Posts Empty
   ========================================================================== */
.posts-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--post-bg);
    border-radius: var(--post-radius-lg);
}

.posts-empty__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: var(--post-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--post-text-muted);
}

.posts-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.posts-empty p {
    color: var(--post-text-light);
    margin-bottom: 25px;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.posts-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--post-bg);
    border-radius: var(--post-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--post-shadow);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--post-bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #FFA500;
}

/* Search Widget */
.search-form__inner {
    display: flex;
    /* border: 2px solid var(--post-border); */
    /* border-radius: 22px; */
    overflow: hidden;
}

.search-form__input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-form__button {
    width: 50px;
    background: #FFA500;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--post-transition);
}

.search-form__button:hover {
    background: var(--post-primary-dark);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-post-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--post-bg-light);
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item__link {
    display: flex;
    gap: 15px;
    color: var(--post-text);
}

.recent-post-item__thumbnail {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-item__placeholder {
    width: 100%;
    height: 100%;
    background: var(--post-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--post-text-muted);
}

.recent-post-item__content {
    flex: 1;
    min-width: 0;
}

.recent-post-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
    transition: var(--post-transition);
}

.recent-post-item__link:hover .recent-post-item__title {
    color: var(--post-primary);
}

.recent-post-item__date {
    font-size: 0.8rem;
    color: var(--post-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-item__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--post-bg-light);
    border-radius: 8px;
    color: var(--post-text);
    transition: var(--post-transition);
}

.category-item__link:hover {
    background: var(--post-primary);
    color: white;
}

.category-item__count {
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 10px;
    border-radius: 10px;
}

/* Tags Widget */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    display: inline-block;
    padding: 6px 15px;
    background: var(--post-bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--post-text-light);
    transition: var(--post-transition);
}

.tag-cloud-item:hover {
    background: var(--post-primary);
    color: white;
}

/* CTA Widget */
.cta-widget {
    padding: 0;
    overflow: hidden;
}

.cta-widget__inner {
    background: linear-gradient(135deg, #FFA500 0%, #ecb247 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.cta-widget__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.cta-widget__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.cta-widget__text {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.cta-widget .btn-white {
    background: white;
    color: var(--post-primary);
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--post-transition);
}

.cta-widget .btn-white:hover {
    background: var(--post-bg-light);
}

/* ==========================================================================
   Single Post
   ========================================================================== */

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--post-bg-alt);
    z-index: 9999;
}

.reading-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--post-primary), var(--post-secondary));
    transition: width 0.1s ease;
}

/* Single Post Header */
.single-post__header {
    padding: 60px 0 40px;
    background: var(--post-bg-light);
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-post__breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.single-post__breadcrumb a {
    color: var(--post-text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--post-transition);
}

.single-post__breadcrumb a:hover {
    color: var(--post-primary);
}

.single-post__breadcrumb .separator {
    color: var(--post-text-muted);
    font-size: 0.7rem;
}

.single-post__breadcrumb .current {
    color: var(--post-text-light);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.single-post__category {
    display: inline-block;
    background: #FFA500;
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    transition: var(--post-transition);
}

.single-post__category:hover {
    background: #FFA500;
    color: white !important;
}

.single-post__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--post-text);
}

.single-post__excerpt {
    font-size: 1.2rem;
    color: var(--post-text-light);
    line-height: 1.7;
    margin-bottom: 30px;
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.meta-author img {
    border-radius: 50%;
}

.meta-author__info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--post-text);
}

.author-role {
    font-size: 0.85rem;
    color: var(--post-text-muted);
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: var(--post-border);
}

.meta-date,
.meta-reading-time,
.meta-comments {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--post-text-light);
    font-size: 0.95rem;
}

/* Featured Image */
.single-post__featured-image {
    margin: 40px 0;
}

.featured-image__wrapper {
    position: relative;
    border-radius: var(--post-radius-lg);
    overflow: hidden;
    box-shadow: var(--post-shadow-xl);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Single Post Layout */
.single-post__layout {
    display: grid;
    grid-template-columns: 80px 1fr 280px;
    gap: 40px;
    padding: 40px 0;
}

/* Floating Share */
.single-post__share-floating {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.share-floating__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--post-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-bottom: 5px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: var(--post-transition);
    border: none;
    cursor: pointer;
}

.share-btn--facebook {
    background: #1877F2;
}

.share-btn--zalo {
    background: #0068FF;
    font-size: 0.7rem;
    font-weight: 700;
}

.share-btn--twitter {
    background: #1DA1F2;
}

.share-btn--copy {
    background: var(--post-text-light);
}

.share-btn:hover {
    transform: scale(1.1);
}

/* Post Content */
.single-post__content {
    min-width: 0;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--post-text);
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 2px solid var(--post-bg-light);
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 30px 0 15px;
}

.post-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: var(--post-bg-light);
    border-left: 4px solid var(--post-primary);
    border-radius: 0 var(--post-radius) var(--post-radius) 0;
    font-style: italic;
    color: var(--post-text-light);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--post-radius);
    margin: 20px 0;
}

.post-content a {
    color: var(--post-primary);
    text-decoration: underline;
}

.post-content a:hover {
    color: var(--post-primary-dark);
}

/* Tags */
.single-post__tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--post-bg-light);
    flex-wrap: wrap;
}

.tags-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--post-text);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 6px 15px;
    background: var(--post-bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--post-text-light);
    transition: var(--post-transition);
}

.tag-item:hover {
    background: var(--post-primary);
    color: white;
}

/* Share Box */
.single-post__share-box {
    margin-top: 40px;
    padding: 25px;
    background: var(--post-bg-light);
    border-radius: var(--post-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.share-box__label {
    font-weight: 600;
    color: var(--post-text);
}

.share-box__buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-box__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--post-transition);
}

.share-box__btn--facebook {
    background: #1877F2;
}

.share-box__btn--zalo {
    background: #0068FF;
}

.share-box__btn--twitter {
    background: #1DA1F2;
}

.share-box__btn--copy {
    background: var(--post-text-light);
}

.share-box__btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    margin-top: 40px;
    padding: 30px;
    background: var(--post-bg-light);
    border-radius: var(--post-radius-lg);
    display: flex;
    gap: 25px;
}

.author-box__avatar .author-avatar {
    border-radius: 50%;
}

.author-box__content {
    flex: 1;
}

.author-box__header {
    margin-bottom: 12px;
}

.author-box__name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.author-box__name a {
    color: var(--post-text);
    transition: var(--post-transition);
}

.author-box__name a:hover {
    color: var(--post-primary);
}

.author-box__role {
    font-size: 0.85rem;
    color: var(--post-text-muted);
}

.author-box__bio {
    font-size: 0.95rem;
    color: var(--post-text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.author-box__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.author-box__posts-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--post-primary);
    transition: var(--post-transition);
}

.author-box__posts-link:hover {
    color: var(--post-primary-dark);
}

.author-box__social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--post-transition);
}

.social-link--facebook { background: #1877F2; }
.social-link--twitter { background: #1DA1F2; }
.social-link--linkedin { background: #0A66C2; }

.social-link:hover {
    transform: scale(1.1);
}

/* Post Navigation */
.post-navigation {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-navigation__prev,
.post-navigation__next {
    min-width: 0;
}

.post-navigation__link {
    display: block;
    padding: 20px;
    background: var(--post-bg-light);
    border-radius: var(--post-radius);
    color: var(--post-text);
    transition: var(--post-transition);
}

.post-navigation__link:hover {
    background: var(--post-bg-alt);
    color: var(--post-text);
}

.post-navigation__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--post-text-muted);
    margin-bottom: 10px;
}

.post-navigation__next .post-navigation__label {
    justify-content: flex-end;
}

.post-navigation__content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-navigation__next .post-navigation__content {
    flex-direction: row-reverse;
    text-align: right;
}

.post-navigation__thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.post-navigation__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-navigation__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Single Post Sidebar */
.single-post__sidebar {
    position: relative;
}

.single-post__sidebar .posts-sidebar {
    position: sticky;
    top: 100px;
}

/* TOC Widget */
.toc-widget {
    display: none;
}

.toc-widget.has-toc {
    display: block;
}

.toc-nav {
    max-height: 300px;
    overflow-y: auto;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 8px;
}

.toc-nav a {
    display: block;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--post-text-light);
    border-left: 2px solid var(--post-border);
    transition: var(--post-transition);
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--post-primary);
    border-left-color: var(--post-primary);
    background: var(--post-bg-light);
}

.toc-nav li.toc-h3 a {
    padding-left: 25px;
    font-size: 0.85rem;
}

/* Related Posts */
.related-posts {
    padding: 60px 0;
    background: var(--post-bg-light);
}

.related-posts__header {
    text-align: center;
    margin-bottom: 40px;
}

.related-posts__title {
    font-size: 1.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #FFA500;
}

.related-posts__title i {
    color: #FFA500;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-post-card {
    background: var(--post-bg);
    border-radius: var(--post-radius);
    overflow: hidden;
    box-shadow: var(--post-shadow);
    transition: var(--post-transition);
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--post-shadow-lg);
}

.related-post-card__thumbnail {
    position: relative;
    overflow: hidden;
}

.related-post-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--post-transition);
}

.related-post-card:hover .related-post-card__image {
    transform: scale(1.05);
}

.related-post-card__placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--post-primary), var(--post-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.related-post-card__category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--post-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-post-card__content {
    padding: 20px;
}

.related-post-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-post-card__title a {
    color: var(--post-text);
    transition: var(--post-transition);
}

.related-post-card__title a:hover {
    color: var(--post-primary);
}

.related-post-card__meta .meta-date {
    font-size: 0.85rem;
    color: var(--post-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Single Post CTA */
.single-post__cta {
    padding: 60px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #f3a921 0%, #FFA500 100%);
    border-radius: var(--post-radius-lg);
    color: white;
}

.cta-box__icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.cta-box__content {
    flex: 1;
}

.cta-box__content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.cta-box__content p {
    opacity: 0.95;
    margin: 0;
}

.cta-box .btn-primary {
    background: white;
    color: var(--post-primary);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--post-transition);
    flex-shrink: 0;
    border: none;
}

.cta-box .btn-primary:hover {
    background: var(--post-bg-light);
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .posts-archive__wrapper {
        grid-template-columns: 1fr;
    }
    
    .posts-archive__sidebar {
        display: none;
    }
    
    .single-post__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .single-post__share-floating {
        display: none;
    }
    
    .single-post__sidebar {
        order: -1;
    }
    
    .single-post__sidebar .posts-sidebar {
        position: static;
    }
    
    .toc-widget {
        margin-bottom: 20px;
    }
    
    .toc-nav {
        max-height: 200px;
    }
    
    .post-card-featured {
        grid-template-columns: 1fr;
    }
    
    .post-card-featured__image {
        min-height: 250px;
    }
    
    .related-posts__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .archive-header {
        padding: 60px 0 40px;
    }
    
    .archive-header__title {
        font-size: 1.8rem;
    }
    
    .archive-header__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .posts-filter {
        flex-direction: column;
        gap: 15px;
    }
    
    .posts-filter__categories {
        width: 100%;
        justify-content: center;
    }
    
    .posts-grid--2col,
    .posts-grid--3col {
        grid-template-columns: 1fr;
    }
    
    .posts-grid--list .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-card__image,
    .post-card__placeholder {
        height: 200px;
    }
    
    .single-post__title {
        font-size: 1.8rem;
    }
    
    .single-post__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .meta-divider {
        display: none;
    }
    
    .single-post__share-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-box__footer {
        justify-content: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-navigation__next .post-navigation__content {
        flex-direction: row;
        text-align: left;
    }
    
    .post-navigation__next .post-navigation__label {
        justify-content: flex-start;
    }
    
    .related-posts__grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-box__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .archive-header__breadcrumb {
        display: none;
    }
    
    .single-post__breadcrumb {
        display: none;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .share-box__buttons {
        justify-content: center;
    }
    
    .share-box__btn span {
        display: none;
    }
    
    .share-box__btn {
        width: 45px;
        height: 45px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
}

/* ==========================================================================
   Copy Link Notification
   ========================================================================== */
.copy-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--post-text);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copy-notification i {
    color: #4ECDC4;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .reading-progress,
    .single-post__share-floating,
    .single-post__share-box,
    .single-post__sidebar,
    .post-navigation,
    .related-posts,
    .single-post__cta {
        display: none !important;
    }
    
    .single-post__layout {
        grid-template-columns: 1fr;
    }
}
