/**
 * ESTILO DA GALERIA FIEL - @TRIXX.OF
 * Local: /modules/gallery/gallery-style.css
 */

.gal-wrapper {
    background: var(--bg-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Header Topo */
.gal-header-top {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
}

.icon-close {
    color: var(--text-white);
    font-size: 20px;
    text-decoration: none;
    margin-right: 20px;
}

.header-menus {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: space-around;
}

.menu-item {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-item.active {
    color: var(--text-white);
}

/* Abas */
.gal-tabs {
    display: flex;
    justify-content: space-around;
    height: 40px;
    border-bottom: 2px solid var(--bg-cards);
}

.tab-item {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: bold;
    width: 50%;
    position: relative;
    cursor: pointer;
}

.tab-item.active {
    color: var(--accent); /* Cor VIP */
}

.tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent); /* Linha VIP */
}

/* Grid */
.media-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    overflow-y: auto;
    padding-bottom: 80px; /* Espaço para a barra inferior */
}

.media-item {
    aspect-ratio: 1/1;
    background: var(--bg-cards);
    position: relative;
    cursor: pointer;
}

.media-item video, .media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Círculo de Seleção (Canto Superior Direito) */
.select-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--text-white);
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    color: transparent;
}

.media-item.selected .select-badge {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main); /* Número escuro para dar contraste no neon */
}

/* Tempo do vídeo (Canto Inferior Direito) */
.video-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Barra Inferior Fixa */
.gal-bottom-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.hd-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: bold;
}

.checkbox-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.btn-add {
    background: var(--accent);
    color: var(--bg-main);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.btn-add.disabled {
    background: var(--bg-inputs);
    color: var(--text-gray);
    pointer-events: none;
}