:root {
    --bg-color: #202124;
    --card-bg: #2d2f31;
    --card-border: #3c4043;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --primary-blue: #0b57d0;
    --primary-blue-hover: #1c64d8;
    --pill-bg: #e3e3e3;
    --pill-text: #000;
    --btn-border: #5f6368;
    --badge-card-bg: #2d2f31;
    --badge-radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.nav-container {
    display: flex;
    background-color: #171717;
    border-radius: 40px;
    padding: 8px;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 30px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.nav-item.active {
    background-color: var(--primary-blue);
    color: #fff;
}

.nav-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-item .material-symbols-outlined {
    font-size: 20px;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 0 24px 48px;
}

/* Sidebar */
.sidebar {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
}

/* Profile Card */
.profile-card {
    position: relative;
}

.public-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: #d2e3fc;
    color: #174ea6;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
}

.profile-pic-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(#ea4335 0 90deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc04 270deg 360deg);
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    display: block;
}

.camera-icon-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: #3c4043;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.pronouns {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

.job-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.location-icon {
    font-size: 18px;
}

.bio {
    font-size: 14px;
    margin-bottom: 16px;
}

.divider {
    height: 1px;
    background-color: #3c4043;
    margin: 16px 0;
}

.links-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #8ab4f8;
    font-size: 14px;
    margin-bottom: 16px;
}

.social-icon-wrapper {
    width: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.github-icon {
    border-radius: 50%;
    background: #fff;
}

.x-icon {
    color: #8ab4f8;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-primary);
    transition: background 0.2s;
}

.btn-outline {
    border: 1px solid var(--btn-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.05);
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 6px 16px;
    border-radius: 8px;
}

/* Subscription Card */
.subscription-header {
    margin-bottom: 20px;
}

.subscription-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.sub-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.sub-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.sub-value {
    font-weight: 500;
}

/* Main Content Area */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Badges Section */
.badges-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 400;
}

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

.badge-card {
    background-color: var(--card-bg);
    border-radius: var(--badge-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.badge-top {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lazy-item {
    animation: popUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes popUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lazy-item:nth-child(1) { animation-delay: 0.05s; }
.lazy-item:nth-child(2) { animation-delay: 0.1s; }
.lazy-item:nth-child(3) { animation-delay: 0.15s; }
.lazy-item:nth-child(4) { animation-delay: 0.2s; }
.lazy-item:nth-child(5) { animation-delay: 0.25s; }
.lazy-item:nth-child(6) { animation-delay: 0.3s; }
.lazy-item:nth-child(7) { animation-delay: 0.35s; }
.lazy-item:nth-child(8) { animation-delay: 0.4s; }
.lazy-item:nth-child(9) { animation-delay: 0.45s; }
.lazy-item:nth-child(10) { animation-delay: 0.5s; }
.lazy-item:nth-child(11) { animation-delay: 0.52s; }
.lazy-item:nth-child(12) { animation-delay: 0.54s; }
.lazy-item:nth-child(13) { animation-delay: 0.56s; }
.lazy-item:nth-child(14) { animation-delay: 0.58s; }
.lazy-item:nth-child(15) { animation-delay: 0.6s; }
.lazy-item:nth-child(16) { animation-delay: 0.62s; }
.lazy-item:nth-child(17) { animation-delay: 0.64s; }
.lazy-item:nth-child(18) { animation-delay: 0.66s; }
.lazy-item:nth-child(19) { animation-delay: 0.68s; }
.lazy-item:nth-child(20) { animation-delay: 0.7s; }
.lazy-item:nth-child(21) { animation-delay: 0.72s; }
.lazy-item:nth-child(22) { animation-delay: 0.74s; }
.lazy-item:nth-child(23) { animation-delay: 0.76s; }
.lazy-item:nth-child(24) { animation-delay: 0.78s; }
.lazy-item:nth-child(25) { animation-delay: 0.8s; }
.lazy-item:nth-child(26) { animation-delay: 0.82s; }
.lazy-item:nth-child(27) { animation-delay: 0.84s; }
.lazy-item:nth-child(28) { animation-delay: 0.86s; }
.lazy-item:nth-child(29) { animation-delay: 0.88s; }
.lazy-item:nth-child(30) { animation-delay: 0.9s; }
.lazy-item:nth-child(31) { animation-delay: 0.92s; }
.lazy-item:nth-child(32) { animation-delay: 0.94s; }
.lazy-item:nth-child(33) { animation-delay: 0.96s; }
.lazy-item:nth-child(34) { animation-delay: 0.98s; }
.lazy-item:nth-child(35) { animation-delay: 1.0s; }
.lazy-item:nth-child(36) { animation-delay: 1.02s; }
.lazy-item:nth-child(37) { animation-delay: 1.04s; }
.lazy-item:nth-child(38) { animation-delay: 1.06s; }
.lazy-item:nth-child(39) { animation-delay: 1.08s; }
.lazy-item:nth-child(40) { animation-delay: 1.1s; }

.badge-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-graphic {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-yellow { background-color: #fde293; }
.bg-green { background-color: #e6f4ea; }
.bg-purple { background-color: #e8eaf6; }
.bg-green-light { background-color: #e6f4ea; }
.bg-purple-light { background-color: #f3e8fd; }
.bg-blue-light { background-color: #e8f0fe; }
.bg-green-lighter { background-color: #e6f4ea; }
.bg-purple-lighter { background-color: #e8eaf6; }
.bg-yellow-light { background-color: #fef7e0; }

.yellow-graphic { background: #34a853; border-radius: 50%; }
.dark-graphic { background: #202124; }
.blue-graphic { background: #8ab4f8; }
.doc-graphic { background: #1e8e3e; }
.gem-graphic { background: #fbbc04; }
.join-graphic { background: #4285f4; }
.learn-graphic { background: #8ab4f8; }
.panda-graphic { background: #34a853; }
.premium-graphic { background: #4285f4; }
.code-graphic { background: #4285f4; }

.badge-bottom {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.badge-bottom h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.badge-bottom .date {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Interests Section */
.interests-section {
    padding: 32px;
}

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

.interests-header h2 {
    font-size: 20px;
    font-weight: 400;
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #004a77;
    color: #e1f5fe;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.tag .check {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .top-nav {
        padding: 16px;
    }

    .nav-container {
        width: 100%;
        justify-content: space-around;
        padding: 6px;
        border-radius: 24px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        justify-content: center;
        border-radius: 18px;
        gap: 4px;
    }

    .nav-item .material-symbols-outlined {
        font-size: 18px;
    }

    .main-container {
        padding: 0 16px 32px;
    }

    .card {
        padding: 20px;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 20px;
    }

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

    .interests-section {
        padding: 20px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}
