:root {
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-alt: #eef2f7;
    --surface-soft: #e5e7eb;
    --text: #111827;
    --muted: #4b5563;
    --accent: #e8a020;
    --accent-strong: #f7dac1;
    --success: #15803d;
    --warning: #b45309;
    --border: #d1d5db;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

header {
    background: var(--surface);
    color: var(--text);
    text-align: center;
    padding: 28px 15px 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    margin-bottom: 10px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-subtitle {
    font-size: 0.92rem;
    color: var(--muted);
    font-weight: 500;
}

.association-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 11px 22px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--accent-strong);
    transition: var(--transition);
}

.association-link:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.profile-section,
.association-section,
.badges-section {
    background: var(--surface);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease forwards;
}

.profile-section::before,
.association-section::before,
.badges-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.profile-section::after,
.association-section::after,
.badges-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 35%);
    pointer-events: none;
}

.profile-picture-container {
    position: relative;
    margin-bottom: 22px;
}

.profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 0 0 6px var(--surface-alt);
    transition: var(--transition);
    margin: 0 auto;
    display: block;
}

.profile-picture:hover {
    transform: scale(1.02);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--success);
    border: 3px solid var(--surface);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.discord-info {
    margin-bottom: 24px;
    text-align: center;
}

.discord-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.first-name {
    color: var(--text);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.discord-id {
    color: var(--muted);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 18px;
    font-family: 'Courier New', monospace;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
    background: var(--surface-alt);
    color: var(--text);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
}

.btn-discord {
    color: white;
    background: #5865f2;
}

.btn-vcard {
    color: white;
    background: #16a34a;
}

.btn-qr {
    color: white;
    background: #d97706;
}

.btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.profile-section h2,
.association-section h2,
.badges-section h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.06em;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--surface-alt);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.05);
    border-left: 4px solid var(--accent);
}

.social-link:hover {
    background: var(--surface-soft);
    transform: translateX(4px);
}

.social-icon {
    margin-right: 14px;
    font-size: 1.35rem;
    min-width: 30px;
    text-align: center;
    color: var(--accent);
}

.social-link span {
    font-weight: 600;
    font-size: 1rem;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}

.badge {
    background: var(--surface-alt);
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.05);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.badge:hover {
    transform: translateY(-4px);
    background: #e9eef5;
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.badge-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.badge-year {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.badge-level {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: #cbd5e1;
    color: #0f172a;
    font-weight: 700;
    display: inline-block;
}

footer {
    text-align: center;
    padding: 28px 15px;
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }

    .logo {
        width: 180px;
        height: 180px;
    }

    .profile-picture {
        width: 160px;
        height: 160px;
    }

    .btn-group {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        min-width: 220px;
    }

    .social-link {
        padding: 18px;
    }

    .badges-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

.badge-legendary {
    border-color: #c9a227;
}

.badge-legendary .badge-level {
    background: #d6b245;
    color: #1f2937;
}

.badge-epic {
    border-color: #8b5cf6;
}

.badge-epic .badge-level {
    background: #a78bfa;
    color: #1f2937;
}

.badge-rare {
    border-color: #0ea5e9;
}

.badge-rare .badge-level {
    background: #7dd3fc;
    color: #1f2937;
}
