/*---------------------------------------------------------------------------*/
/* GLOBAL */
/*---------------------------------------------------------------------------*/

body {
    font-size: 13px;
}

/*---------------------------------------------------------------------------*/
/* LOADING */
/*---------------------------------------------------------------------------*/

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner-animation {
    animation: pulse 1s infinite;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.fa-spin {
    color: #0d6efd;
    animation-duration: 1s;
}

/*---------------------------------------------------------------------------*/
/* CARDS */
/*---------------------------------------------------------------------------*/

.card-header .fas {
    margin-right: 0.5rem;
}

.card-text i {
    width: 20px;
    margin-right: 8px;
    color: #0d6efd;
}

.card-text {
    line-height: 2;
}

.card-message {
    font-size: 0.8rem;
    background-color: darkcyan;
    padding: 3px;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Estilos específicos para tarjetas dentro de enlaces */
a .card {
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

a .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #ffc107;
}

/* Efecto de brillo en el borde solo para tarjetas dentro de enlaces */
a .card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    background: transparent;
    transition: background 0.2s;
    pointer-events: none;
    z-index: 1;
}

a .card:hover::after {
    background: rgba(255, 193, 7, 0.15);
}

/* Asegurar que el contenido esté por encima del efecto de brillo */
a .card > * {
    position: relative;
    z-index: 2;
}

/* Asegurar que los textos sean legibles */
a.text-decoration-none {
    color: inherit;
}

a.text-decoration-none:hover {
    color: inherit;
    text-decoration: none;
}

/*---------------------------------------------------------------------------*/
/* CHANNELS */
/*---------------------------------------------------------------------------*/

/* Estilos compartidos para contenedores de imágenes */
.thumbnail-container,
.video-thumbnail-container {
    position: relative;
    background-color: #f8f9fa;
    height: 200px;
    overflow: hidden;
}

.thumbnail-container img,
.video-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-container.loaded .loading-spinner,
.video-thumbnail-container.loaded .loading-spinner {
    display: none;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.8rem;
    z-index: 1;
}

.channel-img {
    height: 200px;
    object-fit: cover;
}

/* Estilo específico para el avatar del canal */
.channel-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.channel-avatar .loading-spinner {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.channel-avatar img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}

/*---------------------------------------------------------------------------*/
/* REORDENAR */
/*---------------------------------------------------------------------------*/

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-logo {
    max-height: 20px;
    width: auto;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 0.75rem;
}

.weather-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.question-icon-container {
    background-color: #495057;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.question-icon {
    color: white;
    font-size: 12px;
}

.list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.list-unstyled li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-unstyled li:first-child {
    padding-top: 0;
}

.progress {
    height: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.5rem;
}

.progress-bar {
    transition: width 0.6s ease;
}

.progress-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.progress-value {
    font-weight: 600;
    color: #495057;
}

.description-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3em;
}

.fi {
    width: 32px;
    height: 32px;
    font-size: 1.5em;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar-custom {
    background-color: #1a237e;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white;
}

.navbar-custom .nav-link:hover {
    color: #bbdefb;
}

.main-content {
    min-height: calc(100vh - 160px);
    padding: 2rem 0;
}

.footer {
    background-color: #1a237e;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.footer nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.user-info {
    color: white;
    display: flex;
    align-items: center;
}

.user-info .fa-user {
    margin-right: 0.5rem;
}

.btn-logout {
    margin-left: 1rem;
    color: white;
    border-color: white;
}

.btn-logout:hover {
    background-color: white;
    color: #1a237e;
}

.btn-primary {
    transition: all 0.2s;
}

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

.btn-small {
    font-size: 9px;
    padding: 2px;
}

.badge {
    pointer-events: none;
}

.text-muted {
    pointer-events: none;
}

.text-finished {
    color: lightcoral;
}

.text-active {
    color: lime;
}

.text-unknown {
    color: white;
}

.winner {
    text-decoration: underline;
}

.form-label {
    font-weight: bold;
}

.form-field {
    vertical-align: top;
}

.form-dal {
    height: 5vh !important;
}

.link-rel {
    color: cyan;
    font-style: italic;
    font-size: 11px;
}