body {
    font-family: "Roboto", sans-serif;
}

.transition-sidebar {
    transition: all 0.3s ease-in-out;
}

#leftSidebar,
#rightSidebar {
    @apply transition-sidebar;
}

.sidebar-text {
    @apply transition-opacity duration-300;
}

.menu-group .fas {
    @apply transition-all duration-300;
}

#rightSidebar {
    transition: width 0.3s ease-in-out;
}

.right-sidebar-content {
    transition: opacity 0.3s ease-in-out;
}

#rightSidebar.w-20 .right-sidebar-content {
    opacity: 0;
}

#rightSidebar.w-20 button {
    left: -12px;
}

/* Slider */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

.bg-radial-gradient {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(0);
    }

    to {
        transform: translateY(20px);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.sliderStyle {
    font-family: Roboto, sans-serif;
}

/* Partials */
.event-winners-slider {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider-header h2 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-controls {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.custom-prev,
.custom-next {
    background: rgba(255, 215, 0, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    left: 5px;
    right: 5px;
}

.custom-prev:hover,
.custom-next:hover {
    background: rgba(255, 215, 0, 0.4);
}

.custom-prev:before,
.custom-next:before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #ffd700;
    border-right: 2px solid #ffd700;
    position: absolute;
}

.custom-prev:before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.custom-next:before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.swiper {
    width: 100%;
    height: auto !important;
    overflow: visible;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
    height: auto !important;
    position: relative;
}

.swiper-slide {
    height: auto !important;
    width: auto;
    display: flex;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    transform: scale(0.95);
    flex-shrink: 0;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.swiper-slide-next,
.swiper-slide-prev {
    opacity: 0.85;
    transform: scale(0.98);
}

.winner-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.winner-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.winner-card:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.winner-card:hover:before {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.header-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.card-header h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.winner-label {
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guild-logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.label {
    color: #aaa;
    font-size: 0.85rem;
}

.value {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.swiper-pagination {
    position: relative;
    margin-top: 15px;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 8px;
    height: 8px;
}

.swiper-pagination-bullet-active {
    background: #ffd700;
    transform: scale(1.2);
}

@media(max-width: 768px) {

    .swiper {
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .winner-card {
        min-width: 200px;
    }

    /* Garantir que os slides ocupem o espaço correto em telas pequenas */
    .swiper-slide {
        width: 100% !important;
    }

    .event-winners-slider {
        padding: 15px;
    }

    .slider-header h2 {
        font-size: 1rem;
    }

    .swiper {
        margin: 0 -15px;
        padding: 0 15px;
    }

    .winner-card {
        padding: 12px;
    }

    .guild-logo {
        width: 36px;
        height: 36px;
    }

    .card-header h3 {
        font-size: 0.9rem;
    }
}

@media(max-width: 480px) {
    .event-winners-slider {
        padding: 12px;
    }

    .slider-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .slider-controls {
        align-self: center;
    }

    .swiper {
        margin: 0 -12px;
        padding: 0 12px;
    }

    .winner-card {
        padding: 10px;
    }

    .guild-logo {
        width: 32px;
        height: 32px;
    }
}

@media(max-width: 520px) {
    .event-winners-slider {
        padding: 12px;
    }

    .swiper {
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    .swiper-slide {
        width: 100% !important;
    }

    /* Garantir que apenas um slide seja visível por vez */
    .swiper-slide:not(.swiper-slide-active) {
        visibility: hidden;
    }

    .winner-card {
        min-width: auto;
    }


    /* Streamer Widget */
    .widget-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        transition: all 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
        max-width: 300px;
    }

    .widget-collapsed {
        height: 55px;
        width: 245px;
        overflow: hidden;
    }

    .streamer-card {
        transition: transform 0.2s ease;
    }

    .streamer-card:hover {
        transform: translateY(-5px);
    }

    .thumbnail-container {
        position: relative;
        overflow: hidden;
        border-radius: 0.5rem;
    }

    .viewers-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .game-badge {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }

    .platform-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
        background-color: #FF0000;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(0.8);
            opacity: 0.7;
        }

        50% {
            transform: scale(1.2);
            opacity: 1;
        }

        100% {
            transform: scale(0.8);
            opacity: 0.7;
        }
    }

    .collapse-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
    }

    .stream-embed-container {
        display: none;
        width: 100%;
        margin-top: 1rem;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .embed-responsive {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        /* 16:9 aspect ratio */
    }

    .embed-responsive iframe {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        border: 0;
    }

    /* More compact for mobile */
    @media (max-width: 768px) {
        .widget-container {
            max-width: 300px;
        }
    }

    .widget-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
        transition: all 0.3s ease;
        max-height: 80vh;
        overflow-y: auto;
        max-width: 300px;
    }

    .widget-collapsed {
        height: 55px;
        width: 245px;
        overflow: hidden;
    }

    .streamer-card {
        transition: transform 0.2s ease;
    }

    .streamer-card:hover {
        transform: translateY(-5px);
    }

    .thumbnail-container {
        position: relative;
        overflow: hidden;
        border-radius: 0.5rem;
    }

    .viewers-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .game-badge {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }

    .platform-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pulse-dot {
        width: 8px;
        height: 8px;
        background-color: #FF0000;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            transform: scale(0.8);
            opacity: 0.7;
        }

        50% {
            transform: scale(1.2);
            opacity: 1;
        }

        100% {
            transform: scale(0.8);
            opacity: 0.7;
        }
    }

    .collapse-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        text-align: center;
    }

    .stream-embed-container {
        display: none;
        width: 100%;
        margin-top: 1rem;
        border-radius: 0.5rem;
        overflow: hidden;
    }

    .embed-responsive {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
    }

    .embed-responsive iframe {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        border: 0;
    }

    /* More compact for mobile */
    @media (max-width: 768px) {
        .widget-container {
            max-width: 300px;
        }
    }

}