/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slideIn {
    animation: slideIn 0.3s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Replies container */
.replies-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.replies-container.expanded {
    max-height: 2000px;
}

/* Chevron rotation */
.chevron-rotated {
    transform: rotate(180deg);
}

/* Botón ir arriba */
#goTopBtn {
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
}

#goTopBtn.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* Márgenes para anidamiento de replies */
.ml-3 {
    margin-left: 0.75rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.ml-9 {
    margin-left: 2.25rem;
}

.ml-12 {
    margin-left: 3rem;
}

.ml-15 {
    margin-left: 3.75rem;
}

@media (min-width: 768px) {
    .ml-3 {
        margin-left: 1rem;
    }

    .ml-6 {
        margin-left: 1.75rem;
    }

    .ml-9 {
        margin-left: 2.5rem;
    }

    .ml-12 {
        margin-left: 3.25rem;
    }

    .ml-15 {
        margin-left: 4rem;
    }
}

/* Hover effect para cards */
.response-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Progress bar de paginación */
.pagination-progress {
    height: 3px;
    background: #968228;
    border-radius: 2px;
}

/* Stats badges */
.stat-badge {
    backdrop-filter: blur(8px);
}

.iframe-container {
    position: relative;
}

/* Loader */
.iframe-loader {
    position: absolute;
    inset: 0;
    background: #f9fafb;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Spinner */
.iframe-loader::after {
    content: "";
    width: 32px;
    height: 32px;
    border: 4px solid #b5171a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Animación */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}