/* Estilos para posts individuais */

.single-post .hero {
    background-color: var(--primary);
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.single-post .hero .container {
    max-width: 800px;
    margin: 0 auto;
}

.post-category {
    margin-bottom: 1rem;
}

.post-category a {
    background-color: var(--secondary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.post-category a:hover {
    background-color: var(--secondary-dark);
}

.post-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.post-meta span {
    margin: 0 1rem;
    display: inline-flex;
    align-items: center;
}

.post-meta i {
    margin-right: 0.5rem;
}

/* Conteúdo do Post */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    max-height: 500px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.post-text {
    line-height: 1.8;
    color: #333;
}

.post-text p {
    margin-bottom: 1.5rem;
}

.post-text h2,
.post-text h3,
.post-text h4 {
    margin: 2rem 0 1rem;
    color: var(--primary);
}

/* Footer do Post */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-tags {
    margin-bottom: 2rem;
}

.tags-title {
    font-weight: bold;
    margin-right: 1rem;
}

.tag-link {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background-color: var(--primary);
    color: #fff;
}

/* Botões de Compartilhamento e Like */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.post-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-title {
    font-weight: bold;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 20px;
    background-color: #f5f5f5;
}

.like-button i {
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.like-button:hover i {
    transform: scale(1.2);
}

.like-button.liked {
    color: #e31b23;
    background-color: #ffe6e8;
}

.like-button.liked i {
    animation: likeAnimation 0.3s ease-in-out;
}

.likes-count {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

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

.share-button.twitter {
    background-color: #000;
}

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

/* Botão de Copiar Link */
.copy-link-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 20px;
    background-color: #f5f5f5;
    position: relative;
}

.copy-link-button:hover {
    background-color: #e9e9e9;
}

.copy-link-button i {
    transition: transform 0.3s ease;
}

.copy-link-button:hover i {
    transform: scale(1.1);
}

.copy-feedback {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.copy-link-button.copied .copy-feedback {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.copy-link-button.copied {
    background-color: #e8f5e9;
    color: #4CAF50;
}

/* Posts Relacionados */
.related-posts {
    margin-top: 4rem;
    margin-bottom: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.related-posts h2 {
    text-align: left;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 1.75rem;
    position: relative;
    padding-left: 1rem;
}

.related-posts h2:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--primary);
    border-radius: 2px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-thumbnail {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-thumbnail img {
    transform: scale(1.05);
}

.related-post h3 {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-post h3 a {
    color: var(--primary);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-post h3 a:hover {
    color: var(--secondary);
}

.related-excerpt {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* Responsividade */
@media (max-width: 768px) {
    .single-post .hero {
        padding: 3rem 0;
    }

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

@media (max-width: 576px) {
    .post-meta span {
        display: block;
        margin: 0.5rem 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .post-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .post-actions-right {
        justify-content: center;
        margin-top: 1rem;
    }

    .share-buttons {
        justify-content: center;
    }

    .related-posts h2 {
        font-size: 1.5rem;
    }
} 