:root {
    --bg-color: #080808;
    --card-bg: #121212;
    --accent-color: #E516E8;
    /* New vibrant magenta/pink */
    --accent-dark: #7508AC;
    /* New deep purple */
    --accent-glow: rgba(229, 22, 232, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --border-color: rgba(229, 22, 232, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background: radial-gradient(circle at 50% 0%, #1a0a24 0%, #080808 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-y: scroll;
    font-size: 0.9rem;
    /* Smaller global scale */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    /* Reduced padding */
    position: relative;
    z-index: 1;
}

/* Header & Logo */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    /* Reduced gap */
    margin-bottom: 3rem;
    /* Reduced margin */
}

.logo-container {
    text-align: center;
}

.main-logo {
    width: 150px;
    /* Reduced from 220px */
    height: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-glow-wrapper {
    position: relative;
    display: inline-block;
}

.logo-glow-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.main-logo:hover {
    transform: scale(1.05) rotate(2deg);
}

.site-title {
    font-size: 2.2rem;
    /* Reduced from 3.5rem */
    font-weight: 900;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-title span {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.site-subtitle {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.2rem;
    margin-bottom: 0.5rem;
}

.subtitle-item {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.6;
}

.subtitle-item i {
    color: var(--accent-color);
    font-size: 0.7rem;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.action-buttons {
    display: flex;
    gap: 1rem;
    /* Reduced from 2rem */
    margin-top: -0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.btn-status {
    font-size: 0.55rem;
    color: #2ecc71;
    /* Green color */
    letter-spacing: 1px;
    font-weight: 800;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

.btn-status i {
    font-size: 0.7rem;
}

.action-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 2px;
    /* Squarish */
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.download-btn {
    background: rgba(229, 22, 232, 0.08);
    color: var(--accent-color);
}

.download-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-3px);
}

.changelog-btn {
    background: rgba(117, 8, 172, 0.15);
    color: white;
}

.changelog-btn:hover {
    background: var(--accent-dark);
    box-shadow: 0 0 30px rgba(117, 8, 172, 0.3);
    transform: translateY(-3px);
}

.filters-container {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.search-wrapper {
    position: relative;
    max-width: 450px;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

#championSearch {
    width: 100%;
    padding: 12px 14px 12px 45px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    /* Squarish */
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

#championSearch:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.1);
}

.role-filters {
    display: flex;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 2px;
    /* Squarish */
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.role-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 45px;
    height: 45px;
    border-radius: 2px;
    /* Squarish */
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.role-btn[data-role="all"] {
    width: auto;
    padding: 0 15px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.role-btn.active,
.role-btn:hover {
    color: var(--accent-color);
    background: rgba(255, 0, 127, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

/* Champion Grid */
.champion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 5rem;
}

.champion-card {
    position: relative;
    aspect-ratio: 0.75;
    border-radius: 2px;
    /* Reduced from 16px to fit smaller size */
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.champion-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.champion-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 0, 127, 0.2);
}

.champ-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% center;
    /* Shift images to the right to center the champion profile */
    transition: transform 0.8s ease;
    opacity: 0.8;
}

.role-btn img {
    width: 28px;
    height: 28px;
    filter: grayscale(1) brightness(0.6);
    transition: var(--transition);
}

.role-btn.active img,
.role-btn:hover img {
    filter: grayscale(0) brightness(1.2) drop-shadow(0 0 10px var(--accent-color));
}

.champion-card:hover .champ-img {
    transform: scale(1.1);
    opacity: 1;
}

.champ-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 12px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            transparent 100%);
}

.champ-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.champ-title {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.9;
}

.role-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    width: 28px;
    height: 28px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    font-size: 0.7rem;
    z-index: 2;
    transition: var(--transition);
}

.champion-card:hover .role-tag {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Video Badge for Showcase */
/* Minimal Showcase Badge */
.has-video::before {
    content: 'SHOWCASE';
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(229, 22, 232, 0.1);
    color: var(--accent-color);
    font-size: 0.45rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(229, 22, 232, 0.3);
    animation: pulseGlow 2s infinite;
}

/* Performance Optimized Badges */
.status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 4;
    text-transform: uppercase;
    pointer-events: none;
    background: rgba(10, 10, 10, 0.9);
    /* Solid fallback */
}

.badge-hot {
    color: #ff4e50;
    border: 1px solid rgba(255, 78, 80, 0.3);
}

.badge-new {
    color: #00f2fe;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

/* Offset if both exist */
.champion-card:has(.status-badge).has-video::before {
    top: 26px;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.8;
        box-shadow: 0 0 5px var(--accent-glow);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 20px var(--accent-color);
    }

    100% {
        opacity: 0.8;
        box-shadow: 0 0 5px var(--accent-glow);
    }
}

.has-video:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* Technical Aesthetic */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 10;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.15;
}

/* Background Animation */
.bg-glow {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 600px;
    background: radial-gradient(circle, rgba(117, 8, 172, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

/* Animations */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.champion-card {
    animation: cardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.discord-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 2rem;
    transition: var(--transition);
    opacity: 0.3;
    /* Meio opaca */
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.discord-link:hover {
    opacity: 1;
    /* Neon vibrante no hover */
    filter: drop-shadow(0 0 15px var(--accent-color));
    transform: scale(1.1) rotate(5deg);
}

.top-nav {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
}

.top-nav-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    opacity: 0.3;
    filter: drop-shadow(0 0 5px var(--accent-glow));
    text-transform: uppercase;
}

.top-nav-link i {
    font-size: 1.2rem;
}

.top-nav-link:hover {
    opacity: 1;
    filter: drop-shadow(0 0 15px var(--accent-color));
    transform: translateX(-5px);
}

/* Video Overlay Ultra Modern - Floating & Borderless */
.video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-overlay.active {
    display: flex;
    opacity: 1;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 1100px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    transform: scale(0.95);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-overlay.active .video-container {
    transform: scale(1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: visible;
    /* Let the glow breathe */
    border-radius: 0;
    mask-image: radial-gradient(circle, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 70%, transparent 100%);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Reduced heavy drop-shadows for performance */
    transition: opacity 0.5s ease;
}

.video-wrapper:hover video {
    opacity: 0.9;
}

.close-video {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1010;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-video:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
    opacity: 1;
}

.video-info {
    margin-top: 2rem;
    text-align: center;
    opacity: 0.5;
}

.video-info h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 15px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Animations */
@keyframes floatVideo {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.video-container {
    animation: floatVideo 6s infinite ease-in-out;
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .champion-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .filters-container {
        flex-direction: column;
    }

    .video-info h2 {
        font-size: 1.5rem;
        letter-spacing: 5px;
    }
}