:root {
    --bg-primary: #36393f;
    --bg-secondary: #2f3136;
    --text-primary: #dcddde;
    --text-secondary: #b9bbbe;
    --text-thirdly: #929394;
    --accent-color: #7289da;
    --hover-color: #4f545c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 20px 20px;
    padding: 20px;
    flex: 1;
}

.discord-badge {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    max-width: 1000px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
}

.discord-badge:hover {
    transform: scale(1.02);
}

.badge-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--hover-color);
    padding-bottom: 15px;
}

.discord-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-right: 15px;
}

.badge-header h2 {
    font-size: 1.6rem;
}

.badge-section {
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.badge-section h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--hover-color);
    padding-bottom: 5px;
    font-size: 1.2rem;
}

.profile-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    perspective: 1000px;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
}

.profile-card:hover {
    transform: rotateY(10deg) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.profile-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    margin-right: 15px;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.profile-subname {
    font-size: 0.9rem;
}

.profile-title {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.dm-button, .join-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 50px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 70%;
}

.dm-button:hover, .join-button:hover {
    background-color: #5e7ece;
    transform: scale(1.1);
}


.badge-sections {
    display: flex;
    gap: 20px;
}

.badge-sections > div {
    flex: 1;
}

.badge-section ul {
    list-style-type: none;
}

.badge-section ul li {
    padding: 7px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.badge-section ul li:hover {
    background-color: var(--hover-color);
}

.member-name {
    font-size: 1rem;
}

.member-roles {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.owner-highlight {
    background-color: rgba(114, 137, 218, 0.2);
    padding: 5px;
    border-radius: 5px;
}

.owner-label {
    color: var(--accent-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .badge-sections {
        flex-direction: column;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .profile-avatar {
        margin-bottom: 10px;
    }

    .dm-button, .join-button {
        bottom: 0;
        right: 15px;
        padding: 10px 25px;
    }

    .badge-header h2 {
        font-size: 1.3rem;
    }

    .badge-section h3 {
        font-size: 1rem;
    }

    .profile-name {
        font-size: 1rem;
    }

    .profile-subname {
        font-size: 0.85rem;
    }

    .profile-title {
        font-size: 0.8rem;
    }
}
