/* ============================================
   GALERIA DO CANAL - Design igual ao Painel
   v2.0 - Dezembro 2024
   ============================================ */

/* === VARIÁVEIS CSS === */
.gallery-channel-page {
    --card-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PERFIL DO STREAMER
   ============================================ */
.streamer-profile {
    margin-bottom: 2rem;
    position: relative;
    min-height: 280px;
}

.streamer-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 16px;
    z-index: 0;
}

.streamer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(to top, rgba(17, 18, 24, 0.98), transparent);
    pointer-events: none;
}

.streamer-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    overflow: visible;
    transition: all 0.3s ease;
}

.streamer-banner + .streamer-header {
    backdrop-filter: blur(10px);
}

body:not(.light-mode) .streamer-banner + .streamer-header {
    background: rgba(30, 31, 38, 0.95);
}

body.light-mode .streamer-banner + .streamer-header {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.streamer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.streamer-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.streamer-avatar {
    position: relative;
    flex-shrink: 0;
}

.streamer-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        linear-gradient(135deg, var(--primary-color), var(--secondary-color)) border-box;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.streamer-avatar:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(138, 43, 226, 0.5);
}

.status-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #444;
    border: 3px solid var(--card-bg);
    transition: all 0.3s ease;
}

.status-indicator.online {
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(66, 184, 131, 0.3), 0 0 12px rgba(66, 184, 131, 0.6);
    animation: pulse-online 2s ease-in-out infinite;
}

@keyframes pulse-online {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(66, 184, 131, 0.3), 0 0 12px rgba(66, 184, 131, 0.6);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(66, 184, 131, 0.2), 0 0 20px rgba(66, 184, 131, 0.8);
    }
}

.streamer-info {
    flex-grow: 1;
}

.streamer-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.streamer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 90%;
    line-height: 1.7;
    font-size: 1rem;
}

.streamer-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   STATS CARDS ROW - Design igual ao Painel
   ============================================ */
.stats-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .stats-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-cards-row {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    padding-bottom: 1.25rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.stat-card-total::after {
    background: linear-gradient(90deg, #8A2BE2, #a855f7);
}

.stat-card-likes::after {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.stat-card-views::after {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon i {
    font-size: 1.25rem;
}

.stat-card-icon.bg-purple {
    background: rgba(138, 43, 226, 0.1);
}
.stat-card-icon.bg-purple i {
    color: #8A2BE2;
}

.stat-card-icon.bg-rose {
    background: rgba(244, 63, 94, 0.1);
}
.stat-card-icon.bg-rose i {
    color: #f43f5e;
}

.stat-card-icon.bg-blue {
    background: rgba(59, 130, 246, 0.1);
}
.stat-card-icon.bg-blue i {
    color: #3b82f6;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.stat-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-card-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
}

/* ============================================
   CONTROLES DA GALERIA - Design Moderno
   ============================================ */
.gallery-controls-wrapper {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.gallery-filters-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
    min-width: 250px;
}

.search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    pointer-events: none;
    color: var(--primary-color);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(138, 43, 226, 0.08);
    border: 2px solid rgba(138, 43, 226, 0.2);
    color: var(--text-color);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.15);
    background: rgba(138, 43, 226, 0.12);
}

.filters-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Botões de filtro de tipo */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    background: rgba(138, 43, 226, 0.08);
    padding: 0.375rem;
    border-radius: 12px;
    border: 1px solid rgba(138, 43, 226, 0.15);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.7;
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn:hover {
    opacity: 1;
    background: rgba(138, 43, 226, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

/* Responsivo para filtros */
@media (max-width: 768px) {
    .filter-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
    }
}

.filter-select {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    appearance: none;
    background-color: rgba(138, 43, 226, 0.08);
    border: 2px solid rgba(138, 43, 226, 0.2);
    color: var(--text-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238A2BE2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 150px;
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--primary-color);
    background-color: rgba(138, 43, 226, 0.12);
    outline: none;
}

/* ============================================
   BADGES DE TIPO DE IMAGEM
   ============================================ */
.image-type-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.badge-gif {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.badge-swap {
    background: linear-gradient(135deg, #4ecdc4, #44b3aa);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
}

/* ============================================
   SCROLL INFINITO
   ============================================ */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-muted);
}

.infinite-scroll-loader .loader-spinner {
    font-size: 2rem;
    color: var(--primary-color);
}

.infinite-scroll-loader span {
    font-size: 0.9rem;
}

.infinite-scroll-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.infinite-scroll-end i {
    font-size: 1.25rem;
    color: #10b981;
}

/* Animação de entrada para novas imagens */
.gallery-item.fade-in {
    animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Itens filtrados */
.gallery-item.filtered-out {
    display: none !important;
}

/* ============================================
   GRID DE IMAGENS - Design Moderno
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
}

.gallery-image-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--card-bg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-image-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateY(-4px);
}

.image-thumbnail-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    background: var(--bg-darker, var(--bg-secondary));
}

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

.gallery-image-card:hover .image-thumbnail-container img {
    transform: scale(1.05);
}

/* Hover Overlay gradient */
.image-thumbnail-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.gallery-image-card:hover .image-thumbnail-container::after {
    opacity: 1;
}

/* Image Info Section */
.image-info {
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.image-info .image-prompt {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.image-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-meta-row .image-date,
.image-meta-row .image-requester {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.image-meta-row .image-date i,
.image-meta-row .image-requester i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.image-meta-row .image-requester {
    color: #9147ff;
    font-weight: 500;
}

/* Image Actions */
.image-actions {
    margin-top: auto;
    padding-top: 0.5rem;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Botão de Like - Design com animação */
.btn-like-channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-like-channel:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #f43f5e;
    transform: scale(1.05);
}

.btn-like-channel.liked {
    background: rgba(244, 63, 94, 0.25);
    border-color: #f43f5e;
    color: #f43f5e;
}

.btn-like-channel.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

.btn-like-channel i {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

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

.btn-like-channel .likes-count {
    font-weight: 600;
}

/* Animação de like */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Botão de Preview */
.btn-preview-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.btn-preview-channel:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.btn-preview-channel i {
    font-size: 1.1rem;
}

/* ============================================
   PAGINAÇÃO
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    font-weight: 500;
}

.page-link:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.empty-gallery h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.empty-gallery p {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ============================================
   MODAL - Design GaleriaManager
   ============================================ */
.gallery-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.gallery-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/* Navigation Arrows */
.gallery-modal-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

@media (min-width: 768px) {
    .gallery-modal-nav {
        display: flex;
    }
}

.gallery-modal-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.gallery-modal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-modal-nav i {
    font-size: 1.5rem;
}

.gallery-modal-nav-prev {
    left: 1rem;
}

.gallery-modal-nav-next {
    right: 1rem;
}

/* Modal Content */
.gallery-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    height: 85vh;
    max-height: 85vh;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

@media (min-width: 1200px) {
    .gallery-modal-content {
        width: 80vw;
        max-width: 1100px;
        height: 80vh;
    }
}

@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95vw;
        height: 90vh;
        max-height: 90vh;
        border-radius: 12px;
    }
}

/* Top Bar */
.gallery-modal-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.gallery-modal-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gallery-modal-pagination {
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.gallery-modal-title {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.gallery-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.gallery-modal-close i {
    font-size: 1.25rem;
}

/* Image Wrapper */
.gallery-modal-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.gallery-modal-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-modal-image-wrapper .loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
}

/* Info Toggle Button */
.gallery-modal-info-toggle {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 15;
}

.gallery-modal-info-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

.gallery-modal-info-toggle.active {
    background: white;
    color: black;
}

.gallery-modal-info-toggle i {
    font-size: 1rem;
}

/* Details Panel */
.gallery-modal-details {
    position: absolute;
    bottom: 4rem;
    left: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    max-height: 50vh;
    overflow-y: auto;
}

.gallery-modal-details.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Details Grid */
.gallery-modal-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .gallery-modal-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-modal-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    font-size: 1.15rem;
}

.detail-icon.bg-blue {
    background: rgba(59, 130, 246, 0.2);
}
.detail-icon.bg-blue i {
    color: #60a5fa;
}

.detail-icon.bg-rose {
    background: rgba(244, 63, 94, 0.2);
}
.detail-icon.bg-rose i {
    color: #fb7185;
}

.detail-icon.bg-purple {
    background: rgba(168, 85, 247, 0.2);
}
.detail-icon.bg-purple i {
    color: #c084fc;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.detail-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.detail-value {
    font-size: 0.85rem;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prompt Section */
.gallery-modal-prompt-section {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.prompt-box {
    flex: 1;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    min-width: 0;
}

.prompt-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-bottom: 0.375rem;
}

.prompt-box .prompt-text {
    font-size: 0.9rem;
    color: white;
    line-height: 1.5;
    word-break: break-word;
    margin: 0;
}

.prompt-copy-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    align-self: flex-start;
}

.prompt-copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.prompt-copy-btn.copied {
    background: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.prompt-copy-btn i {
    font-size: 1.15rem;
}

/* Actions */
.gallery-modal-actions {
    display: flex;
    gap: 0.5rem;
}

.gallery-modal-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: none;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-modal-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.gallery-modal-action-btn i {
    font-size: 1rem;
}

/* Like Button no Modal */
.btn-like-modal {
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-like-modal:hover {
    background: rgba(244, 63, 94, 0.3);
}

.btn-like-modal.liked {
    background: rgba(244, 63, 94, 0.4);
    border-color: #f43f5e;
    color: #fb7185;
}

.btn-like-modal.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

/* Keyboard Hint */
.gallery-modal-keyboard-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--card-bg);
}

@media (min-width: 768px) {
    .gallery-modal-keyboard-hint {
        display: flex;
    }
}

.gallery-modal-keyboard-hint span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-modal-keyboard-hint kbd {
    padding: 0.25rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    border: 1px solid var(--border-color);
}

/* ============================================
   MENSAGEM DE NENHUM RESULTADO
   ============================================ */
.no-results-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    grid-column: 1 / -1;
}

.no-results-message i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.no-results-message p {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .streamer-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .streamer-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .streamer-description {
        max-width: 100%;
    }
    
    .gallery-controls-wrapper {
        padding: 1rem;
    }
    
    .gallery-filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
        min-width: auto;
    }
    
    .filters-group {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-modal-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-cards-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-modal-content {
        height: 95vh;
        border-radius: 8px;
    }
    
    .gallery-modal-details {
        bottom: 3.5rem;
        padding: 1rem;
    }
    
    .gallery-modal-details-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .gallery-modal-info-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Mobile Navigation for Modal */
@media (max-width: 767px) {
    .gallery-modal-image-wrapper img {
        max-height: 50vh;
    }
    
    .gallery-modal-details {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin: 0;
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        transform: none;
        opacity: 1;
        pointer-events: auto;
        display: none;
        max-height: none;
    }
    
    .gallery-modal-details.visible {
        display: block;
    }
    
    .gallery-modal-info-toggle {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        border-radius: 0;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }
}

/* ============================================
   ANIMAÇÕES DE CORAÇÕES FLUTUANTES
   ============================================ */

/* Container para corações flutuantes */
.floating-hearts-container {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Coração flutuante individual */
.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatUp 1.5s ease-out forwards;
    pointer-events: none;
    filter: drop-shadow(0 0 8px currentColor);
    z-index: 10000;
}

.floating-heart.size-small {
    font-size: 1rem;
}

.floating-heart.size-medium {
    font-size: 1.5rem;
}

.floating-heart.size-large {
    font-size: 2rem;
}

/* Animação principal de subida */
@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: translateY(-30px) scale(1.2) rotate(-5deg);
    }
    40% {
        transform: translateY(-80px) scale(1) rotate(5deg);
    }
    60% {
        transform: translateY(-140px) scale(0.9) rotate(-3deg);
    }
    80% {
        opacity: 0.6;
        transform: translateY(-200px) scale(0.7) rotate(3deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-280px) scale(0.5) rotate(0deg);
    }
}

/* Variação de animação com movimento lateral */
.floating-heart.drift-left {
    animation: floatUpLeft 1.5s ease-out forwards;
}

.floating-heart.drift-right {
    animation: floatUpRight 1.5s ease-out forwards;
}

@keyframes floatUpLeft {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: translate(-15px, -40px) scale(1.1) rotate(-10deg);
    }
    50% {
        transform: translate(-25px, -100px) scale(1) rotate(5deg);
    }
    75% {
        opacity: 0.5;
        transform: translate(-20px, -180px) scale(0.8) rotate(-5deg);
    }
    100% {
        opacity: 0;
        transform: translate(-30px, -260px) scale(0.4) rotate(0deg);
    }
}

@keyframes floatUpRight {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0.5) rotate(0deg);
    }
    25% {
        opacity: 1;
        transform: translate(15px, -40px) scale(1.1) rotate(10deg);
    }
    50% {
        transform: translate(25px, -100px) scale(1) rotate(-5deg);
    }
    75% {
        opacity: 0.5;
        transform: translate(20px, -180px) scale(0.8) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translate(30px, -260px) scale(0.4) rotate(0deg);
    }
}

/* Animação de pulso no botão de like */
.like-btn.animating {
    animation: likeButtonPulse 0.4s ease-out;
}

@keyframes likeButtonPulse {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Efeito de brilho no ícone */
.like-btn.liked i {
    animation: heartGlow 0.5s ease-out;
}

@keyframes heartGlow {
    0% {
        filter: drop-shadow(0 0 0px #ff4757);
    }
    50% {
        filter: drop-shadow(0 0 15px #ff4757) drop-shadow(0 0 30px #ff6b7a);
    }
    100% {
        filter: drop-shadow(0 0 5px #ff4757);
    }
}

/* Burst de partículas (círculos) */
.like-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    pointer-events: none;
    z-index: 10;
}

.like-burst::before,
.like-burst::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    animation: burstExpand 0.5s ease-out forwards;
}

.like-burst::before {
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff4757;
}

.like-burst::after {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid #ff6b7a;
    animation-delay: 0.1s;
}

@keyframes burstExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Partículas de estrelas/pontos */
.like-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 11;
}

.like-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff4757;
    border-radius: 50%;
    animation: particleExplode 0.6s ease-out forwards;
}

.like-particle:nth-child(1) { --angle: 0deg; --distance: 40px; }
.like-particle:nth-child(2) { --angle: 45deg; --distance: 35px; background: #ff6b7a; }
.like-particle:nth-child(3) { --angle: 90deg; --distance: 40px; }
.like-particle:nth-child(4) { --angle: 135deg; --distance: 35px; background: #ff8a94; }
.like-particle:nth-child(5) { --angle: 180deg; --distance: 40px; }
.like-particle:nth-child(6) { --angle: 225deg; --distance: 35px; background: #ff6b7a; }
.like-particle:nth-child(7) { --angle: 270deg; --distance: 40px; }
.like-particle:nth-child(8) { --angle: 315deg; --distance: 35px; background: #ff8a94; }

@keyframes particleExplode {
    0% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--distance))) scale(0);
        opacity: 0;
    }
}

/* Emoji de coração com animação especial */
.heart-emoji {
    display: inline-block;
    animation: heartPop 0.3s ease-out;
}

@keyframes heartPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.4);
    }
    100% {
        transform: scale(1);
    }
}
