/* Estilos para as funcionalidades do Plugin Quirilo Manager */

/* 1. Bloco de Produtos da Amazon */
.amazon-products {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--side-nav-border);
}
.amazon-products h3.widget-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
}
.amazon-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}
.amazon-product-item a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    background: none;
}
.amazon-product-item a:hover {
    opacity: 0.8;
}
.amazon-product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    border-radius: 5px;
    border: 1px solid var(--side-nav-border);
}
.amazon-product-item span {
    font-size: 14px;
    display: block;
    line-height: 1.4;
}
.sidebar .amazon-products {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.sidebar .amazon-products h3.widget-title {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--side-nav-border);
}

/* 2. Seção de Comentários (Disqus) */
.comments-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--side-nav-border);
}
.full-width-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    color: var(--color-background);
    background-color: var(--color-text);
    border: 2px solid var(--color-text);
}
.full-width-btn:hover {
    color: var(--color-text);
    background-color: transparent;
    border-color: var(--color-text);
}
body.dark-mode .full-width-btn {
    color: var(--color-background);
    background-color: var(--color-text);
    border: 2px solid var(--color-text);
}
body.dark-mode .full-width-btn:hover {
    color: var(--color-text);
    background-color: transparent;
    border-color: var(--color-text);
}
#comments-wrapper {
    margin-top: 30px;
}

/* 3. Barra de Tags da Homepage */
.homepage-tag-bar {
    max-width: 1000px;
    margin: 30px auto 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}
.homepage-tag-bar .section-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 0;
}
.homepage-tag-bar-inner {
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
}
.homepage-tag-item {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--side-nav-border);
    border-radius: 20px;
    white-space: nowrap;
    color: var(--color-text);
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    flex-shrink: 0;
}
.homepage-tag-item:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
    opacity: 1;
}

/* 4. Balões Flutuantes */
.floating-action-buttons {
    position: fixed;
    bottom: 25px;
    right: 15px;
    z-index: 998;
    display: flex;
    flex-direction: column-reverse;
    gap: 15px;
    align-items: center;
}
.floating-btn {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform .2s ease-in-out;
    border: none;
    cursor: pointer;
}
.floating-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}
.floating-btn-close {
    background-color: #6c757d;
    font-size: 28px;
    line-height: 1;
    font-weight: bold;
}
#floating-comment-btn {
    text-decoration: none;
}
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: #d93025;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-background);
}
.floating-posts-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
}
.floating-posts-modal {
    position: absolute;
    top: 50%;
    right: calc(100% + 15px);
    width: 300px;
    background-color: var(--color-background);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--side-nav-border);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    transform-origin: center right;
    z-index: 2;
    transform: translateY(-50%);
}
.floating-posts-modal.is-visible {
    opacity: 1;
    visibility: visible;
}
a.floating-post-item {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}
a.floating-post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
}
.floating-post-item .floating-post-thumb {
    width: 100%;
    background-color: #333;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.floating-post-item .floating-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.floating-post-item .floating-post-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 15px;
    margin: 0;
}
.floating-post-item .floating-post-title span {
    color: white;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
@media (min-width: 769px) {
    .floating-action-buttons {
        bottom: 40px;
        right: 20px;
    }
    .floating-btn {
        width: 56px;
        height: 56px;
    }
}
@media (max-width: 480px) {
    .floating-posts-modal {
        left: 15px;
        right: auto;
        width: calc(100vw - 95px);
        max-width: 300px;
        bottom: calc(100% + 15px);
        top: auto;
        transform: none;
        transform-origin: bottom left;
    }
}