/**
 * Pitrulino CSS - Estilização da Mascote Oficial da IA dos Colégios Pitruca
 * Módulo Bibliotecarius (/front)
 */

/* Tamanhos de Mascote */
.pitrulino-mascote {
    display: inline-block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.pitrulino-mascote:hover {
    transform: scale(1.06) rotate(1.5deg);
    filter: drop-shadow(0 8px 16px rgba(39, 174, 96, 0.25));
}

.pitrulino-avatar {
    width: 38px;
    height: 38px;
}

.pitrulino-sm {
    width: 64px;
    max-height: 72px;
}

.pitrulino-md {
    width: 100px;
    max-height: 110px;
}

.pitrulino-lg {
    width: 150px;
    max-height: 165px;
}

.pitrulino-xl {
    width: 210px;
    max-height: 230px;
}

/* Animações Suaves */
@keyframes pitrulino-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes pitrulino-glow {
    0%, 100% {
        filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.35));
    }
    50% {
        filter: drop-shadow(0 8px 24px rgba(39, 174, 96, 0.6));
    }
}

.pitrulino-bounce {
    animation: pitrulino-float 4s ease-in-out infinite;
}

.pitrulino-thinking {
    animation: pitrulino-glow 2s ease-in-out infinite, pitrulino-float 3s ease-in-out infinite;
}

/* Vídeos de Animação */
.pitrulino-video-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.pitrulino-video-sm {
    width: 68px;
    height: 68px;
}

.pitrulino-video-md {
    width: 105px;
    height: 105px;
}

.pitrulino-video-lg {
    width: 155px;
    height: 155px;
}

.pitrulino-video-xl {
    width: 215px;
    height: 215px;
}

.pitrulino-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

.pitrulino-video-wrapper video::-webkit-media-controls,
.pitrulino-video-wrapper video::-webkit-media-controls-enclosure,
.pitrulino-video-wrapper video::-webkit-media-controls-panel,
.pitrulino-video-wrapper video::-webkit-media-controls-play-button,
.pitrulino-video-wrapper video::-webkit-media-controls-start-playback-button,
.pitrulino-video-wrapper video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
}

/* Balão de Fala e Card de Diálogo */
.pitrulino-dialog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
    border-radius: 18px;
}

.pitrulino-dialog-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07) !important;
}

.pitrulino-bubble {
    position: relative;
}

/* Estado Vazio */
.pitrulino-empty-state {
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    padding: 2.5rem 1.5rem;
    transition: all 0.25s ease;
}

.pitrulino-empty-state:hover {
    border-color: #94a3b8;
    background: #fafafa;
}

.pitrulino-empty-mascote {
    display: inline-block;
}

/* Hero Mascote Badge (dentro de secções hero já coloridas) */
.hero-section .pitrulino-hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 1.5rem;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.hero-section .pitrulino-hero-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero Mascote Card Standalone (Página de Chat IA Pitrulino) */
.pitrulino-hero-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #14532d 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2rem;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Responsividade em Ecrãs Pequenos */
@media (max-width: 575.98px) {
    .pitrulino-dialog-card {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem !important;
    }
    .pitrulino-lg {
        width: 120px;
    }
    .pitrulino-xl {
        width: 150px;
    }
    .pitrulino-video-lg {
        width: 120px;
        height: 120px;
    }
    .pitrulino-video-xl {
        width: 150px;
        height: 150px;
    }
}
