/* Estilos personalizados para VirgoGames */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Estilos para el header */
.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Estilos para el carrusel mejorado */
.carousel-item {
    height: 500px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease-in-out;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Estilos para el carrusel personalizado */
.custom-carousel {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    height: 600px; /* Increased from 500px */
}

/* Adjust the carousel item height to match */
.carousel-item {
    height: 600px; /* Increased from 500px */
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease-in-out;
}

/* Ensure thumbnails container has enough space */
.thumbnails-container {
    max-height: 300px; /* Increased if needed */
    overflow-y: auto;
}

/* Estilos para el contenedor de miniaturas - versión unificada */
.thumbnails-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.custom-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.indicator-btn {
    width: 50px;
    height: 35px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    background: none;
    flex: 0 0 auto;
    margin-bottom: 5px;
}

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

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

.indicator-btn.active {
    border-color: #0d6efd;
    transform: scale(1.1);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Estilos para el contenedor de miniaturas */
.thumbnails-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.custom-indicators {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
    align-items: center;
}

.indicator-btn {
    width: 50px;
    height: 35px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    background: none;
    flex-shrink: 0;
    margin-bottom: 5px;
    display: inline-block;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .thumbnails-container {
        padding: 10px;
        max-width: 100%;
    }
    
    .custom-indicators {
        gap: 5px;
        max-height: 200px;
    }
    
    .indicator-btn {
        width: 40px;
        height: 30px;
    }
}

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

.indicator-btn.active {
    border-color: #0d6efd;
    transform: scale(1.1);
}

/* For mobile devices, make thumbnails smaller */
@media (max-width: 768px) {
    .thumbnails-container {
        padding: 10px;
    }
    
    .custom-indicators {
        gap: 5px;
    }
    
    .indicator-btn {
        width: 40px;
        height: 30px;
    }
}

.indicator-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.indicator-btn.active {
    border-color: #0d6efd;
}

.image-counter {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Estilos para el modo de pantalla completa */
/* Fullscreen mode styles */
.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    font-size: 24px;
}

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

.fullscreen-close:hover, .fullscreen-nav:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.fullscreen-close:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Fullscreen navigation controls */
.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    font-size: 24px;
}

.fullscreen-nav:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.fullscreen-prev {
    left: 30px;
}

.fullscreen-next {
    right: 30px;
}

/* Responsive adjustments for fullscreen navigation */
@media (max-width: 768px) {
    .fullscreen-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .fullscreen-prev {
        left: 15px;
    }
    
    .fullscreen-next {
        right: 15px;
    }
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .fullscreen-btn {
        bottom: 10px;
        right: 10px;
    }
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.fullscreen-btn:hover {
    opacity: 1;
}

/* Estilos para el modal de pantalla completa */
.fullscreen-modal-img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

.modal-fullscreen .modal-header {
    border-bottom: none;
    padding: 0.5rem 1rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1050;
}

.modal-fullscreen .btn-close {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 0.5rem;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }
    
    .fullscreen-btn {
        bottom: 10px;
        right: 10px;
    }
}

/* Estilos para las tarjetas */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Estilos para las miniaturas de la galería */
.img-thumbnail {
    transition: opacity 0.3s ease;
}

.img-thumbnail:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* Footer adjustments to remove white space */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-bottom: 0 !important;
}

footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 30px;
    max-width: 800px;
    margin: 0 auto;
}

footer h5, footer p, footer a {
    font-size: 12px;
    margin: 0;
    padding: 0;
    display: inline-block;
}

footer .col-md-4 {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

/* Add this to ensure the footer stays at the bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Estilos para la galería dinámica */
.gallery-preview {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.gallery-card {
    height: 100%;
}

.gallery-title {
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}

/* Horizontal JuicyAds banner styles */
.juicy-ads-horizontal-container {
    width: 100%;
    text-align: center;
    margin: 10px auto;
    max-width: 728px;
    overflow: visible;
    padding: 10px;
    box-sizing: border-box;
}

/* Make horizontal ad responsive */
@media (max-width: 768px) {
    .juicy-ads-horizontal-container {
        max-width: 300px;
        padding: 10px;
        margin: 10px auto;
    }
    
    .juicy-ads-horizontal-container ins {
        width: 300px !important;
        height: 250px !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

.juicy-ads-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 160px;
    height: 600px;
    background-color: transparent;
    pointer-events: auto;
}

.juicy-ads-container-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    width: 160px;
    height: 600px;
    background-color: transparent;
    pointer-events: auto;
}

/* Hide JuicyAds banners on smaller screens */
@media (max-width: 1200px) {
    .juicy-ads-container,
    .juicy-ads-container-right {
        display: none;
    }
}