/* ===== POST STYLES ===== */

/* Post Header */
.post-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 8rem 0 4rem;
}

.post-header__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb__separator {
    opacity: 0.6;
}

.breadcrumb__current {
    opacity: 0.8;
}

.post-header__category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.post-header__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.post-header__excerpt {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.post-header__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-author__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.post-author__info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.post-author__name {
    font-size: 1.1rem;
    font-weight: 600;
}

.post-author__title {
    font-size: 0.875rem;
    opacity: 0.8;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.post-meta__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Post Content */
.post-content {
    padding: 5rem 0;
}

.post-content__container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-article {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-featured-image {
    height: 400px;
    overflow: hidden;
}

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

.post-content__body {
    padding: 3rem;
    line-height: 1.8;
}

.post-intro {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--container-color);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.post-content__body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--title-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.post-content__body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--title-color);
    margin: 2.5rem 0 1rem;
}

.post-content__body p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.post-content__body ul,
.post-content__body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content__body li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.post-highlight {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.post-highlight i {
    color: #f39c12;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.post-highlight p {
    margin: 0;
}

.post-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 3rem 0;
}

.post-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.post-cta p {
    color: white;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.post-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.post-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-table th,
.post-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.post-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.post-table tr:hover {
    background: var(--container-color);
}

.post-conclusion {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    border-left: 4px solid var(--primary-color);
}

.post-conclusion h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Post Tags */
.post-tags {
    padding: 2rem 3rem;
    border-top: 1px solid #e5e7eb;
}

.post-tags h4 {
    margin-bottom: 1rem;
    color: var(--title-color);
}

.tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--container-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Social Share */
.post-share {
    padding: 2rem 3rem;
    border-top: 1px solid #e5e7eb;
}

.post-share h4 {
    margin-bottom: 1rem;
    color: var(--title-color);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

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

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

.share-btn--linkedin {
    background: #0077b5;
}

.share-btn--whatsapp {
    background: #25d366;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Author Card */
.author-card {
    text-align: center;
}

.author-card__img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
}

.author-card__name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.author-card__title {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.author-card__credentials {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.author-card__bio {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.author-card__social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.author-card__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-card__social a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Related Posts */
.related-posts__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.related-post {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post__img {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

.related-post__content {
    flex: 1;
}

.related-post__title a {
    color: var(--title-color);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
}

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

.related-post__date {
    font-size: 0.875rem;
    color: var(--text-color-light);
    margin-top: 0.5rem;
    display: block;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-card__title {
    color: white;
    margin-bottom: 1rem;
}

.cta-card__text {
    color: white;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .post-content__container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        order: -1;
    }
    
    .sidebar-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .post-header {
        padding: 6rem 0 3rem;
    }
    
    .post-header__title {
        font-size: 2.5rem;
    }
    
    .post-header__meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .post-meta {
        justify-content: center;
    }
    
    .post-content__body {
        padding: 2rem;
    }
    
    .post-content__body h2 {
        font-size: 1.75rem;
    }
    
    .post-content__body h3 {
        font-size: 1.25rem;
    }
    
    .post-tags,
    .post-share {
        padding: 1.5rem 2rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-post {
        flex-direction: column;
        text-align: center;
    }
    
    .related-post__img {
        width: 100%;
        height: 200px;
        align-self: center;
    }
}

@media screen and (max-width: 480px) {
    .post-header__title {
        font-size: 2rem;
    }
    
    .post-header__excerpt {
        font-size: 1.1rem;
    }
    
    .post-content__body {
        padding: 1.5rem;
    }
    
    .post-content__body h2 {
        font-size: 1.5rem;
    }
    
    .post-highlight {
        flex-direction: column;
        text-align: center;
    }
    
    .post-cta {
        padding: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

