@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Prosto+One&family=Protest+Strike&display=swap');

/* Hero Section */
hero.discord-hero {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

hero.discord-hero > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.discord-section {
    min-height: 100vh;
    background: #0b0b0b;
    background-image: url("/static/images/tr-blue-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    position: relative;
    overflow-x: hidden;
}

.discord-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 11, 11, 0.85) 0%, rgba(10, 10, 20, 0.9) 50%, rgba(11, 11, 11, 0.85) 100%);
    z-index: 0;
}

.discord-section > * {
    position: relative;
    z-index: 1;
}

/* Header with logos */
.discord-header {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 3rem 0 4rem 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.discord-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(88, 101, 242, 0.6));
}

.discord-text {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    color: white;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Main Title */
.discord-main-title {
    text-align: center;
    margin: 3rem 0 4rem 0;
}

.join-title {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    color: #FFA200;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0 0 1.5rem 0;
    letter-spacing: 3px;
    line-height: 1.1;
}

.join-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 3vw, 40px);
    color: white;
    margin: 0;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Feature Icons */
.feature-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
    margin: 4rem 0;
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
}

.icon-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.icon-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(255, 162, 0, 0.6);
    border-color: #FFA200;
    background: rgba(255, 162, 0, 0.1);
}

.icon-emoji {
    font-size: 80px;
    line-height: 1;
    cursor: pointer;
}

.feature-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: white;
    text-align: center;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
}

/* Leaderboard Section */
.leaderboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 5rem 0;
    justify-content: center;
}

.leaderboard-container {
    background: white;
    border-radius: 25px;
    padding: 4rem 3.5rem;
    min-width: 600px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    flex: 0 1 auto;
}

.leaderboard-title {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    color: #0b0b0b;
    margin: 0 0 2.5rem 0;
    text-align: center;
    font-weight: 900;
    letter-spacing: 2px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(11, 11, 11, 0.05);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    background: rgba(11, 11, 11, 0.1);
    transform: translateX(5px);
}

.leaderboard-item .rank {
    font-weight: 900;
    color: #0b0b0b;
    font-size: clamp(22px, 2.5vw, 32px);
    min-width: 100px;
}

.leaderboard-item .name {
    flex: 1;
    color: #0b0b0b;
    font-weight: 700;
    font-size: clamp(20px, 2.5vw, 28px);
    margin: 0 2rem;
}

.leaderboard-item .votes {
    font-weight: 900;
    color: #FFA200;
    font-size: clamp(22px, 2.5vw, 32px);
    min-width: 100px;
    text-align: right;
}

.trophy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    flex: 0 0 auto;
    margin-top: 2rem;
}

.trophy-main {
    font-size: clamp(250px, 30vw, 450px);
    filter: drop-shadow(0 0 50px rgba(255, 162, 0, 0.9));
    position: relative;
    line-height: 1;
}

.trophy-stars {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.trophy-stars .star {
    font-size: clamp(60px, 7vw, 96px);
    filter: drop-shadow(0 0 25px rgba(255, 162, 0, 0.8));
    line-height: 1;
}

/* Mini Logo */
.mini-logo-container {
    margin: 4rem 0;
    text-align: center;
}

.mini-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    padding: 2rem;
}

.mini-text {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    background: linear-gradient(135deg, #ff00ff 0%, #ff1493 50%, #8b00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.6));
    letter-spacing: 2px;
}

.crown-icon {
    font-size: clamp(80px, 10vw, 120px);
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 1)) drop-shadow(0 0 40px rgba(0, 229, 255, 0.6));
    line-height: 1;
}

.talents-text,
.royale-text {
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    background: linear-gradient(135deg, #ff00ff 0%, #ff1493 50%, #8b00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.6));
    line-height: 1.2;
    letter-spacing: 2px;
}

.tagline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #00E5FF;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Join Button */
.join-button-container {
    margin: 4rem 0 2rem 0;
}

.join-discord-button {
    display: inline-block;
    padding: 1.8rem 5rem;
    background: linear-gradient(135deg, #FFA200 0%, #FFD700 100%);
    color: #0b0b0b;
    font-family: 'Protest Strike', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(255, 162, 0, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 3px solid transparent;
}

.join-discord-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 162, 0, 0.7);
    background: linear-gradient(135deg, #FFD700 0%, #FFA200 100%);
    border-color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .discord-section {
        padding: 4rem 2rem;
        gap: 3rem;
    }

    .feature-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .discord-section {
        padding: 3rem 1.5rem;
        gap: 3rem;
    }

    .discord-header {
        justify-content: center;
        padding: 2rem 0 3rem 0;
    }

    .feature-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .leaderboard-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .leaderboard-container {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }

    .icon-circle {
        width: 150px;
        height: 150px;
    }

    .icon-emoji {
        font-size: 70px;
    }
}

@media (max-width: 480px) {
    .discord-section {
        padding: 2rem 1rem;
        gap: 2.5rem;
    }

    .feature-icons {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .icon-circle {
        width: 140px;
        height: 140px;
    }

    .icon-emoji {
        font-size: 60px;
    }

    .join-discord-button {
        padding: 1.5rem 3rem;
    }
}
