/* Global CSS para todas as telas Show */

/* ========================================
   SPINNER CIRCLE ANIMATION
   ======================================== */
@keyframes spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-circle {
    animation: spinner-rotate 1.2s linear infinite;
    transform-origin: center;
}

/* ========================================
   SHIMMER ANIMATION
   ======================================== */
.animate-shimmer {
    background-size: 200% 100%;
    animation: shimmer-move 2s linear infinite;
}

@keyframes shimmer-move {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   BOTÕES SOBRE IMAGEM ORIGINAL
   ======================================== */

.original-image-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.original-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.original-image-btn-primary {
    background: white;
    color: #374151;
}

.original-image-btn-download {
    background: #16a34a;
    color: white;
    text-decoration: none;
}

.original-image-btn i {
    font-size: 1.125rem;
    color: inherit;
}

.original-image-btn-download i {
    color: white;
}

/* ========================================
   FULLSCREEN MODAL - BADGES DE CENA
   ======================================== */

.fullscreen-scene-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(236, 72, 153, 0.25);
    color: #ec4899;
    backdrop-filter: blur(4px);
    font-weight: 600;
}

.fullscreen-scene-badge i {
    font-size: 1rem;
}

.fullscreen-preserved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    font-size: 0.85rem;
    font-weight: 600;
}

.fullscreen-preserved-badge i {
    font-size: 0.75rem;
}

/* ========================================
   STICKY HEADER (SHOW PAGES)
   ======================================== */

#scene-sticky-header,
#lookalike-sticky-header,
.show-sticky-header {
    position: fixed;
    z-index: 39;
    background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.08) 0%,
        rgba(9, 9, 11, 0.97) 50%,
        rgba(236, 72, 153, 0.05) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.15);
    box-shadow:
        0 4px 20px rgba(236, 72, 153, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
    display: block;
}

.sticky-header-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-header-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    min-width: 0;
}

.sticky-header-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.sticky-header-icon {
    color: #ec4899;
    font-size: 1.25rem;
}

.sticky-header-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.sticky-header-date {
    font-size: 0.9rem;
    opacity: 0.6;
}

.sticky-scene-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.sticky-scene-badge i {
    font-size: 0.85rem;
}

.sticky-preserved-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.sticky-preserved-badge i {
    font-size: 0.7rem;
}

.sticky-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.sticky-free-badge i {
    font-size: 0.7rem;
}

.sticky-custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.25);
}

.sticky-custom-badge i {
    font-size: 0.7rem;
}

/* ========================================
   BOTÃO FAVORITO - FULLSCREEN
   ======================================== */

.fullscreen-fav-btn {
    position: fixed;
    top: 1.5rem;
    right: 9.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ef4444;
    border: 2px solid #ef4444;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 0;
    line-height: 0;
    font-size: 1.5rem;
}

.fullscreen-fav-btn i {
    color: #ef4444;
    transition: color 0.2s;
}

.fullscreen-fav-btn.is-favorited {
    background: #ef4444;
    color: white !important;
    border-color: #ef4444;
}

.fullscreen-fav-btn.is-favorited i {
    color: white !important;
}

.fullscreen-fav-btn:hover {
    transform: scale(1.05);
}

/* ========================================
   BOTÃO FAVORITO - CARD
   ======================================== */

.card-actions-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.card-action-fullscreen {
    background: white;
    color: #374151;
}

.card-action-fullscreen:hover {
    background: #f3f4f6;
}

.card-action-download {
    background: #16a34a;
    color: white;
    text-decoration: none;
}

.card-action-download:hover {
    background: #15803d;
}

.card-action-favorite {
    background: rgba(255, 255, 255, 0.9);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.card-action-favorite i {
    color: #ef4444;
    transition: color 0.2s;
}

.card-action-favorite.favorited {
    background: #ef4444;
    color: white;
    border: none;
    opacity: 1 !important;
}

.card-action-favorite.favorited i {
    color: white !important;
}

.card-action-favorite:hover {
    transform: scale(1.05);
}

.card-action-icon {
    font-size: 1.125rem;
}

.card-action-download .card-action-icon {
    color: white;
}

.card-action-favorite .card-action-icon {
    color: #ef4444;
}

.card-action-favorite.favorited .card-action-icon {
    color: white !important;
}

.card-action-btn.hide-on-normal {
    opacity: 0;
    transition: opacity 0.3s;
}

.group:hover .card-action-btn.hide-on-normal {
    opacity: 1;
}

a.card-action-btn {
    display: inline-flex;
}

/* ========================================
   UTILITIES
   ======================================== */

[x-cloak] {
    display: none !important;
}

/* Sticky header respeita a sidebar */
@media (min-width: 1024px) {
    .fixed.top-0[x-show="isSticky"] {
        margin-left: 16rem !important;
    }
}

/* === Usar Imagem Button (show pages) === */
.show-use-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}
.show-use-image-btn:hover {
    background: rgba(99, 102, 241, 0.85);
}
