﻿/* =======================
   General
======================= */
:root {
    --banner-image: url("../../source/images/background.jpg");
    --gradient-color1: #400641;
    --gradient-color2: #f19012;
}

body {
    background: linear-gradient(var(--gradient-color1), var(--gradient-color2));
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Main container */
.back {
    position: relative;
    background-color: rgba(0, 0, 0, 0.55);
    width: 95vw;
    height: 95vh;
    border-radius: 1vw;
    box-shadow: 0 0.5vw 1.5vw rgba(0,0,0,0.4);
    overflow: auto;
    padding-bottom: 2vw;
}

/* =======================
   User Section
======================= */
.user {
    position: relative;
}

/* Banner */
.banner {
    width: 100%;
    height: 20vw;
    min-height: 150px;
    background: var(--banner-image) no-repeat center/cover;
}

/* Avatar with dark border */
.avatar-border {
    position: absolute;
    top: 12vw;   /* overlaps banner */
    left: 2vw;
    width: 15vw;
    height: 15vw;
    border-radius: 50%;
    padding: 0.5vw;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Status box */
.status {
    position: absolute;
    top: 18vw;
    left: 21vw;
    width: 30vw;
    height: 6vw;
    border-radius: 1vw;
    background-color: #353535;
    border: 0.3vw solid #4c4c4c;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status p {
    color: #ededed;
    font-size: 1.5vw;
    margin: 0;
    text-align: center;
}

/* Nickname, username, description */
.nickname {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    text-align: left;
    padding-left: 2.75vw;
    margin-top: 10vw; /* space below avatar */
}

.username {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #B9BBBE;
    max-width: 90%;
    text-align: left;
    padding-left: 2.75vw;
    margin-top: -1vw;
}

.description {
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    color: #B9BBBE;
    max-width: 90%;
    text-align: left;
    padding-left: 2.75vw;
    margin-top: 0.5vw;
}

/* Badges */

.badges {
    display: flex;
    gap: 1vw; /* space between badges */
    background-color: #353535;
    border-radius: 15px;
    width: 12.5vw;
    height: 3.5vw;

    position: absolute;
    top: 21vw;
    right: 2.5vw;
}

.badges .youtube{
    color: #ff0000;
}

.badge-icon {
    position: relative;
    color: #4c4c4c;
    width: 90%;
    height: 90%;
}

.user-badge {
    position: relative;
    color: #4c4c4c;
    width: 35%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 2.5vw;
    text-decoration: none;
    transition: all 0.1s ease;
    box-sizing: border-box;
}

.user-badge:hover {
    background-color: #40444b; /* slightly lighter on hover */
    transform: scale(1.1); /* subtle zoom */
    cursor: pointer;
}

.user-badge i {
    pointer-events: none; /* ensures clicking the icon triggers the link */
}

/* =======================
   Sections
======================= */
section {
    position: relative;
    background-color: #2F3136;
    border-radius: 0.8vw;
    padding: 1.5vw 2vw;
    margin: 2vw auto;
    width: 90%;
}

section p {
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    color: #bababa;
}

h2 {
    margin-top: 0;
    color: #FFFFFF;
}

/* =======================
   Project Cards
======================= */
.project-card {
    background-color: #36393F;
    border-radius: 0.8vw;
    padding: 1.5vw;
    width: 95%;
    margin: 1vw 0;
    box-shadow: 0 0.2vw 0.6vw rgba(0,0,0,0.4);
}

.project-card a {
    color: #7289DA;
    text-decoration: none;
}

.project-card a:hover {
    text-decoration: underline;
}

/* =======================
   Contacts
======================= */
.contact-link {
    color: #4a4a4a;
    text-decoration: none;
    margin: 0.1vw 0.1vw;
}

.contact-link i {
    margin-right: 0.1vw;
}

.clickable {
    cursor: pointer;
}