/* ========================================
   POVO CUSTOM CSS - COMIC STYLE
   ======================================== */

/* Color Variables */
:root {
    --white: #FFFFFF;
    --black: #111111;
    --red: #FF5A3C;
    --blue: #16B6FF;
    --green: #6CBF43;
    --sky: #7EC8FF;
}

/* Font Families */
.font-luckiest {
    font-family: 'Luckiest Guy', cursive;
}

.font-comic {
    font-family: 'Comic Neue', cursive;
}

/* Comic Style Helpers */
.comic-border {
    border: 2px solid var(--black);
    border-radius: 0;
}

.comic-border-b {
    border-bottom: 2px solid var(--black);
}

.comic-border-t {
    border-top: 2px solid var(--black);
}

.sticker-shadow {
    box-shadow: 4px 4px 0px var(--black);
}

.btn-comic {
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-comic:hover {
    transform: scale(1.03);
    animation: wiggle 0.3s ease-in-out;
}

.btn-comic:active {
    transform: translateY(2px) scale(1.03);
    box-shadow: 2px 2px 0px var(--black);
}

/* Meme Image Styles */
.meme-image {
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
    margin: 0 10px;
    flex-shrink: 0;
}

.meme-image:hover {
    transform: scale(1.05) rotate(2deg);
    animation: wiggle 0.5s ease-in-out;
}

/* Marquee Styles for Seamless Animation */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: 220px;
}

.marquee-track {
    display: flex;
    height: 100%;
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
}

/* Right direction animations */
.marquee-wrapper[data-direction="right"] .marquee-track {
    animation-name: marquee-right;
    animation-duration: 20s;
}

/* Left direction animations */
.marquee-wrapper[data-direction="left"] .marquee-track {
    animation-name: marquee-left;
    animation-duration: 20s;
}

.marquee-content {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

/* Remove hover pause effect */

/* Keyframe Animations */
@keyframes marquee-right {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-left {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-2deg);
    }

    75% {
        transform: rotate(2deg);
    }
}

@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1px, -1px);
    }

    20% {
        transform: translate(1px, 1px);
    }

    30% {
        transform: translate(-1px, 1px);
    }

    40% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, -1px);
    }

    60% {
        transform: translate(1px, 1px);
    }

    70% {
        transform: translate(-1px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    90% {
        transform: translate(-1px, -1px);
    }
}

/* Chat Bubble Styles */
.chat-bubble {
    border: 2px solid var(--black);
    padding: 12px;
    max-width: 18rem;
    word-wrap: break-word;
    position: relative;
}

.chat-bubble.user {
    background-color: #fed7aa;
    margin-left: auto;
}

.chat-bubble.other {
    background-color: var(--white);
    margin-right: auto;
}

.chat-bubble:hover {
    animation: wiggle 0.3s ease-in-out;
}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none;
    }

    .btn-comic:hover {
        animation: none;
    }

    .meme-image:hover {
        animation: none;
    }

    .chat-bubble:hover {
        animation: none;
    }

    .animate-wiggle {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .meme-image {
        width: 150px;
        height: 150px;
        margin: 0 5px;
    }

    .marquee-right .marquee-content {
        animation-duration: 15s;
    }

    .marquee-left .marquee-content {
        animation-duration: 15s;
    }
}

/* Custom Tailwind Utilities */
.bg-red {
    background-color: var(--red);
}

.bg-blue {
    background-color: var(--blue);
}

.bg-green {
    background-color: var(--green);
}

.bg-sky {
    background-color: var(--sky);
}

.text-red {
    color: var(--red);
}

.text-blue {
    color: var(--blue);
}

.text-green {
    color: var(--green);
}

/* Focus States for Accessibility */
.btn-comic:focus,
.comic-border:focus {
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}

/* Loading Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Custom Scrollbar for Chat */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border: 1px solid var(--black);
}

#chat-messages::-webkit-scrollbar-thumb {
    background: var(--black);
    border-radius: 0;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* Video Section Styles */
#povo-video {
    display: block;
    width: 100% !important;
    height: auto;
    border-radius: 0;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    object-fit: contain;
    max-width: none !important;
}

/* Full width video container */
#video .comic-border.sticker-shadow.bg-white.p-6 {
    margin: 0;
    padding: 0;
    width: 100%;
}

#video .comic-border.bg-white.overflow-hidden {
    width: 100%;
    margin: 0;
    padding: 0;
}