/* totem-portfolio.css - Estilos para a versão Web Responsiva */

#portfolio-screen {
    width: 100vw;
    height: 100vh;
    background-color: #0f111a;
    color: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.portfolio-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-title {
    margin: 0 0 0 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.portfolio-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 60vw;
    padding-left: 15vw;
}

/* Hero Section (Capa) */
.portfolio-hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #1a1d2d;
}

.hero-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

#portfolio-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.btn-play-hero {
    position: absolute;
    background: #e62117;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 33, 23, 0.5);
    transition: transform 0.2s, background 0.2s;
}

.btn-play-hero:hover {
    transform: scale(1.05);
    background: #ff3329;
}

.btn-play-hero svg {
    width: 24px;
    height: 24px;
}

/* Gallery Sections */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 2px solid #e62117;
    padding-bottom: 5px;
    color: #e0e0e0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 32px;
    padding: 12px 0;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.gallery-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Image Viewer (Zoom) */
#image-viewer-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-viewer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: black;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-close-viewer:hover {
    background: rgba(255,255,255,0.2);
}

#viewer-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* Responsividade Média/Grande */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .portfolio-title {
        font-size: 2rem;
    }
}
