/* ========================
 * BLOG (index) Style 
 * ======================== */
.blog-card {
    transition: transform 0.3s;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.blog-content-preview {
    max-height: 80px;
    overflow: hidden;
    position: relative;
}
.blog-content-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--bs-card-bg));
}

/* ========================
 * POST (individuals) Style 
 * ======================== */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.post-content ul, .post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}
.post-content ul li, .post-content ol li {
    margin-bottom: 0.25rem;
}
.post-content .checklist {
    list-style: none;
    padding-left: 0;
}
.post-content .checklist li {
    padding-left: 1.5rem;
    position: relative;
}
.post-content .checklist li::before {
    content: '☐';
    position: absolute;
    left: 0;
}
.post-content .checklist li.checked::before {
    content: '☑';
}
.post-content blockquote {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    background: var(--bs-secondary-bg);
    padding: 1rem;
    border-radius: 4px;
}
.post-content blockquote p {
    margin-bottom: 0.5rem;
}
.featured-image {
    max-height: 550px;
    object-fit: cover;
    width: 100%;
}

/* Estilos para SimpleImage */
.post-content .image-tool {
    margin: 1.5rem 0;
    text-align: center;
}
.post-content .image-tool img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.post-content .image-tool .image-caption {
    margin-top: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    font-style: italic;
}
.post-content .image-tool .image-caption a {
    color: var(--bs-primary);
    text-decoration: none;
}
.post-content .image-tool .image-caption a:hover {
    text-decoration: underline;
}

/* Estilos para Embed */
.post-content .embed-tool {
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: var(--bs-secondary-bg);
}
.post-content .embed-tool iframe,
.post-content .embed-tool video,
.post-content .embed-tool embed,
.post-content .embed-tool object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.post-content .embed-tool .embed-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: 1.2rem;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}
.post-content .embed-tool .embed-placeholder i {
    font-size: 3rem;
}
.post-content .embed-tool .embed-caption {
    margin-top: 0.5rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

/* Estilos específicos para cada tipo de embed */
.post-content .embed-tool.embed-instagram {
    padding-bottom: 120%;
}
.post-content .embed-tool.embed-twitter {
    padding-bottom: 80%;
}
.post-content .embed-tool.embed-facebook {
    padding-bottom: 80%;
}
.post-content .embed-tool.embed-pinterest {
    padding-bottom: 120%;
}
.post-content .embed-tool.embed-imgur {
    padding-bottom: 75%;
}

/* Editor.JS Delimiter */
.ce-delimiter {
    line-height: 1.6;
    text-align: center;
    width: 100%;
    margin: 2em 0;
}

.ce-delimiter::before {
    content: "***";
    letter-spacing: 0.3em;
    font-size: 2rem;
    color: #707684;
}

/* Responsividade */
@media (max-width: 768px) {
    .post-content .embed-tool.embed-instagram {
        padding-bottom: 150%;
    }
    .post-content .embed-tool.embed-pinterest {
        padding-bottom: 150%;
    }
}

/* Progress Bar of Individual post page */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px; 
  background-color: var(--bs-primary);
  width: 0%;
  z-index: 9999;
  animation: grow-progress linear;
  animation-timeline: scroll();
}

@keyframes grow-progress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* ============================================
 * FLOATING SHARE BUTTON
 * ============================================ */
.floating-share {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.share-btn i {
    transition: transform 0.3s ease;
}

.share-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    bottom: 70px;
    right: 0;
    min-width: 160px;
}

.share-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.share-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.share-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

/* Cores das redes sociais */
.share-item.whatsapp {
    color: #25D366;
}
.share-item.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-item.telegram {
    color: #0088cc;
}
.share-item.telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.share-item.facebook {
    color: #1877f2;
}
.share-item.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-item.twitter {
    color: #777;
}
.share-item.twitter:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

.share-item.linkedin {
    color: #0a66c2;
}
.share-item.linkedin:hover {
    background: #0a66c2;
    color: white;
    border-color: #0a66c2;
}

.share-item.reddit {
    color: #ff4500;
}
.share-item.reddit:hover {
    background: #ff4500;
    color: white;
    border-color: #ff4500;
}

.share-item.email {
    color: #ea4335;
}
.share-item.email:hover {
    background: #ea4335;
    color: white;
    border-color: #ea4335;
}

.share-item.copy {
    color: #6c757d;
}
.share-item.copy:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

/* Responsividade */
@media (max-width: 768px) {
    .floating-share {
        bottom: 20px;
        right: 20px;
    }
    
    .share-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .share-menu {
        min-width: 140px;
        bottom: 60px;
    }
    
    .share-item {
        font-size: 13px;
        padding: 8px 14px;
    }
}

/* Modo escuro - ajustes */
[data-bs-theme="dark"] .share-item {
    background: var(--bs-secondary-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .share-item:hover {
    background: var(--bs-primary);
    color: white;
}

[data-bs-theme="dark"] .share-item.twitter:hover {
    background: #333;
    color: white;
}