:root {
    --profile-taskbar: #4B72AA;
    --profile-header: #F19620;
	--profile-header-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.04);
    --profile-cover: #AEC1DB;
	--profile-cover-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.04);
	--profile-article: #FFF;
	--profile-article-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.04);
	--profile-footer: #404040;
	--profile-footer-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 4px 8px rgba(0,0,0,0.04);
}	

/* ======================================================
   PROFILE CONTAINER
   ====================================================== */
#profile {
    width: auto;
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    gap: 20px;
    grid-template-areas: 
        "taskbar header"
        "taskbar main"
        "taskbar footer";
    grid-template-columns: 200px 1fr;
    grid-template-rows: 60px auto 50px;
}

/* -------------------- Text Elements -------------------- */
#profile p { margin-bottom: 20px; }
#profile p.stage {
	padding: 10px 20px;
	background: #E6E6E6;
}
#profile h1, #profile h2 { margin-bottom: 20px; }
#profile h2 button { float:right; }
#profile h3 { margin-bottom: 10px; }
#profile mark {
    padding: 5px;
    background: #000;
    color: #FFF;
	border-radius: 4px;	
}
#profile hr {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background: #000;
    border-width: 0;
}

/* -------------------- Sections -------------------- */
#profile section {
    max-width: auto;
    margin: 0 auto;
    display: grid;
    gap: 0px 15px;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
}
#profile section[rel="three"] {
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr 1fr 1fr;
}

/* -------------------- Articles -------------------- */
#profile article {
    padding: 20px 20px 0px 20px;
    margin-bottom: 20px;
	overflow: hidden;
    background: var(--profile-article);
    box-shadow: var(--profile-article-shadow);
}

/* -------------------- Definition Lists -------------------- */
#profile dl dt { font-weight: bold; }
#profile dl dd { margin-bottom: 10px; }

/* ======================================================
   TASKBAR
   ====================================================== */
#profile #taskbar {
  width: auto;
  height: auto;
  padding: 20px;
  position: fixed;
  top: 20px;
  bottom: 20px;
  grid-area: taskbar;
  z-index: 100;
  background: var(--profile-taskbar);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Taskbar text/content */
#profile #taskbar p {
  text-align: center;
}

#profile #taskbar h2 {
  margin-bottom: 15px;
  text-align: center;
}

#profile #taskbar h3 {
  position: relative;
  text-align: center;
  color: #000;
}

#profile #taskbar h3:hover code {
  left: auto;
  right: 0px;
}

#profile #taskbar h3:hover code:before {
  content: '\f061';
}

#profile #taskbar h3 code {
  position: absolute;
  top: 5px;
  left: 0px;
}

#profile #taskbar nav {
  position: sticky;
  top: 20px;
  text-align: right;
}

#profile #taskbar nav ul {
  margin-top: 20px;
  list-style: none;
  font-size: calc(var(--base-font-size) + 2px);
}

#profile #taskbar nav ul li.spread {
  height: 10px;
  display: block;
}

#profile #taskbar nav ul li a {
  position: relative;
  display: inline-block; 
  text-decoration: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#profile #taskbar nav ul li a:hover {
  transform: translateX(-5px);
}

#profile #taskbar nav ul li a.selected {
  color: #FFF;
}

#profile #taskbar nav ul li h3 a {
  display: block;
}

#profile #taskbar nav ul li h3 a:hover {
  margin: 0px;
}

#profile #taskbar nav ul li.selected {
  color: #FFF;
}

/* ======================================================
   HEADER
   ====================================================== */
#profile #header {
    height: 60px;
    grid-area: header;
    position: relative;
    background-color: var(--profile-header);
    box-shadow: var(--profile-header-shadow);
}
#profile #header .after {
    width: auto;
    height: 30px;
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    content: '';
    background-image: radial-gradient(#F4AE52 1.5px, transparent 1.5px);
    background-size: 5px 5px;
}

/* ======================================================
   USER SECTION
   ====================================================== */
#profile #user {
    height: 50px;
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 10px;
    z-index: 800;
    display: grid;
    grid-template-areas: "name avatar";
    text-align: right;
}
#profile #user #user-name {
    height: 40px;
    line-height: 40px;
    margin-right: 20px;
    grid-area: name;
}
#profile #user #user-name .active {
	color: #FFF;
}
#profile #user #user-shortcuts {
    height: 35px;
    grid-area: shortcuts;
}
#profile #user #user-shortcuts a {
    height: 35px;
    line-height: 35px;
    margin-right: 20px;
    display: inline-block;
    text-decoration: none;
    font-size: calc(var(--base-font-size));
    color: #000;
}
#profile #user #user-avatar {
    width: 40px;
    height: 40px;
    grid-area: avatar;
}
#profile #user #user-avatar img { width: 40px; height: 40px; }

/* ======================================================
   TABS
   ====================================================== */
#profile #tabs {
  display: flex;
  position: absolute;
  top: 10px;
  left: 10px;
}

#profile #tabs a {
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#profile #tabs a:hover {
  top: -5px;
  transform: translateY(-5px);
}

#profile #tabs .active {
  color: #FFF;
  font-weight: bold;
}

#profile #tabs .tab-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(145deg, #ff5a5a, #d90000);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
    text-align: center;
    display: none;          /* standaard verborgen */
    vertical-align: middle;
}

/* ====================== VISITOR ====================== */
#profile #visitor {
  height: 60px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 800;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#profile #visitor a {
  height: 60px;
  line-height: 60px;
  margin-left: 20px;
  display: inline-block;
  position: relative;
	text-decoration: none;
  color: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#profile #visitor a.active {
	color: #FFF;
}

#profile #visitor a:hover {
  top: -2px;
  transform: translateY(-2px);
}

/* ======================================================
   MAIN AREA
   ====================================================== */
#profile #main { grid-area: main; }

/* -------------------- Cover -------------------- */
#profile #cover {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    margin-bottom: 20px;
    background-color: var(--profile-cover);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.35s ease-in-out;
    box-shadow: var(--profile-cover-shadow);
    box-sizing: border-box;
	border-radius: var(--profile-cover-radius, 0px);
}
#profile #cover:after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 50px;
    display: block;
    background-image: radial-gradient(#D1DBEA 1.5px, transparent 1.5px);
    background-size: 5px 5px;
    pointer-events: none;
    box-sizing: border-box;
}

#profile #cover.no-after::after {
  content: none;
}

/* ======================================================
   ABOUT SECTION
   ====================================================== */
#profile #about {
    width: calc(100% - 20px);
    min-height: 170px;
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    z-index: 800;
    display: grid;
    grid-area: about;
    grid-template-areas: 
        "avatar name name"
        "avatar status status"
        "shortcuts shortcuts shortcuts";
    grid-template-columns: 120px 1fr;
}
#profile #about #about-avatar { height: 120px; margin-right: 20px; grid-area: avatar; text-align: right; }
#profile #about #about-name { margin: 0; position: absolute; top: 0; grid-area: name; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.15); }
#profile #about #about-status { position: absolute; top: 0; grid-area: status; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.15); }
#profile #about #about-shortcuts { grid-area: shortcuts; }
#profile #about #about-shortcuts a { margin-right: 20px; text-shadow: 0 1px 2px rgba(255, 255, 255, 0.15); }
#profile #about:hover #layout-editable { display: block; }
#profile #aboutme { position: relative; }
#profile #aboutme:hover #aboutme-editable { display: block; }

/* -------------------- Editable Buttons -------------------- */
#profile #layout-editable,
#profile #aboutme-editable,
#profile #bio-editable {
    padding: 3px 10px;
    display: none;
    position: absolute;
    right: 20px;
    text-decoration: none;
    font-family: var(--base-font);
    font-size: var(--base-font-size);
    background: linear-gradient(to bottom, #f2f2f2 0%, #ebebeb 42%, #dddddd 47%, #cfcfcf 100%);
    color: #000;
    border: 1px solid #707070;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.1s ease-in;
}
#profile #layout-editable:hover,
#profile #aboutme-editable:hover,
#profile #bio-editable:hover,
#profile #about-editable:focus,
#profile #aboutme-editable:focus,
#profile #bio-editable:focus {
    background: linear-gradient(to bottom, #eaf6fd 0%, #d9f0fc 42%, #bee6fd 47%, #bce5fc 58%, #a7d9f5 100%);
    border: 1px solid #3C7FB1;
    box-shadow: 0 0 3px #A7D9F5;
}
#profile #layout-editable:active,
#profile #aboutme-editable:active,
#profile #bio-editable:active {
    box-shadow: inset 0 -1px 6px rgba(0,0,0,0.2), inset 0 -0.7em #BEE6FD, 0 0 3px #A7D9F5;
}

/* ======================================================
   EDIT MODALS (About, AboutMe, Freedom)
   ====================================================== */
#profile #layout-edit,
#profile #aboutme-edit,
#profile #bio-edit,
#profile #guestbook-form {
    max-width: 1200px;
    margin: 0 auto;
    display: none;
    grid-template-areas: 
        "field options"
        "button button";
    grid-template-rows: auto 70px;
    grid-template-columns: 1fr 500px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--profile-article);
}
#profile #layout-edit-button,
#profile #aboutme-edit-button,
#profile #bio-edit-button,
#profile #guestbook-form-header {
    height: 70px;
    line-height: 70px;
    grid-area: button;
    background: #FFF;
}
#profile #guestbook-form-header h1,
#profile #layout-edit-button h1,
#profile #aboutme-edit-button h1,
#profile #bio-edit-button h1 { float: left; margin-left: 20px; }

#profile #guestbook-form-header nav,
#profile #layout-edit-button nav,
#profile #aboutme-edit-button nav,
#profile #bio-edit-button nav { float: right; }

#profile #guestbook-form-header nav button,
#profile #layout-edit-button nav button,
#profile #aboutme-edit-button nav button,
#profile #bio-edit-button nav button { margin-right: 20px; }

#profile #layout-edit-field,
#profile #aboutme-edit-field,
#profile #bio_field,
#profile #guestbook-form-field {
    width: auto;
    height: auto;
    padding: 25px;
    grid-area: field;
	overflow-y: auto;
    background: #CCC;
    border-width: 0;
    border-radius: 0;
    scrollbar-color: #FFFFFF #CCCCCC;
}
#profile #layout-edit-field:read-write:focus,
#profile #aboutme-edit-field:read-write:focus,
#profile #bio_field:read-write:focus,
#profile #guestbook-form-field:read-write:focus {
    outline: none;
}
#profile #layout-edit-options,
#profile #aboutme-edit-options,
#profile #bio-edit-options,
#profile #guestbook-form-options {
    padding: 25px;
    grid-area: options;
    overflow-y: auto;
    background: #DDD;
    scrollbar-color: #FFFFFF #DDDDDD;
}

/* ======================================================
   COLUMN LAYOUT
   ====================================================== */
#profile #column { width: 100%; overflow: hidden; grid-area: column; }
#profile #column-left { width: calc(50% - 10px); float: left; }
#profile #column-right { width: calc(50% - 10px); float: right; }

/* ======================================================
   FRIENDS SECTION
   ====================================================== */
#profile #friends { grid-area: friendss; }
#profile #friends:hover #friends-remove { display: block; }
#profile #friends-remove { display: none; float: right; }

/* Friends list container */
#profile #friends-list {
    --numcolumns: 3;
    --gap: 20px;
    --size: calc(100vw / var(--numcolumns));
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(var(--numcolumns), 1fr);
    grid-template-rows: auto;
    gap: var(--gap);
    list-style: none;
}
#profile #friends-list a, #profile #friends-list li { display: block; }
#profile #friends-list span {
    margin-top: 10px;
    display: block;
    font-size: calc(var(--base-font-size));
    text-align: center;
}
#profile #friends-list img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ======================================================
   GUESTBOOK
   ====================================================== */
#profile #guestbook li { list-style: none; }
#profile #guestbook p { margin-top: 20px; }
#profile #guestbook hr { margin-bottom: 20px; }
#profile #guestbook .author {
    height: 50px;
    display: grid;
    grid-template-areas: "avatar name" "avatar about";
    grid-template-columns: 70px 1fr;
}
#profile #guestbook .author .avatar { grid-area: avatar; }
#profile #guestbook .author .name { grid-area: name; }
#profile #guestbook .author .about { grid-area: about; }

/* ======================================================
   FREEDOM SECTION
   ====================================================== */
#profile #bio {
    padding: 1.25rem;
	margin-bottom: 20px;
	
    position: relative;
    grid-area: freedom;
    background: var(--profile-article);
    box-shadow: var(--profile-article-shadow);
}
#profile #bio:hover #bio-editable { display: block; }
#profile #bio p { margin: 0; }

/* ======================================================
   FOOTER
   ====================================================== */
#profile #footer {
    grid-area: footer;
    line-height: 50px;
    display: flex;
    justify-content: center;
    background: var(--profile-footer);
    box-shadow: var(--profile-footer-shadow);
}
#profile #footer * { color: #FFF; }


/* ====================== PROFILES ====================== */

#profile .profiles {
  --numcolumns: 4;
  --gap: 20px;
  --size: calc(100vw / var(--numcolumns));
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(var(--numcolumns), 1fr);
  grid-template-rows: auto;
  gap: var(--gap);
  list-style: none;
}

#profile .profiles a,
#profile .profiles li {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
}

#profile .profiles span {
  margin-top: 10px;
  display: block;
  font-size: calc(var(--base-font-size));
  text-align: center;
}

#profile .profiles img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ====================== DROP AREA ====================== */

.drop-area {
    width: auto;
    height: 100px;
    border: 2px dashed #aaa;
    border-radius: 10px;
    text-align: center;
    line-height: 100px;
    font-family: Arial;
    color: #666;
    margin: 0px auto 20px auto;
    cursor: pointer;
    position: relative;
}

.drop-area.dragover {
    border-color: #000;
    color: #000;
}

.drop-area input {
    display: none;
}

#profile #status {
	position: absolute;
	bottom: -;
    text-align: center;
}

/* ====================== GUESTBOOK ====================== */

#profileGuestbook {
margin: 0px;
}

#profileGuestbookForm {
margin: 0px;
}

#profile .guestbook-list {
    padding: 0;
    margin: 0;
}

#profile .guestbook-entry {
	margin-bottom: 20px;
    list-style: none;
	overflow: hidden;

}

#profile .guestbook-entry:hover .delete-btn {
	display: inline-block;
}


#profile .guestbook-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

#profile .guestbook-user-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
    flex-shrink: 0;
}

#profile .guestbook-user-meta {
    display: flex;
    flex-direction: column;
}

#profile .guestbook-user-name {
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

#profile .guestbook-date {
    margin-top: 2px;
}

#profile .guestbook-message {
    margin-left: 62px;
    margin-top: 10px;
}

#profile .guestbook-actions {
	width: 100%;
    margin-top: 10px;
}

#profile .guestbook-actions .delete-btn {
	float: right;
	display: none;
}

#profile .guestbook-actions .heart-btn {
    cursor: pointer;
    color: gray;
}

#profile .guestbook-actions .heart-btn.liked {
    color: red;
}

/* ====================== NO CSS ====================== */

.no-css {
	--profile-taskbar: transparent;
	--profile-header: transparent;
	--profile-header-shadow: transparent;
	--profile-cover: transparent;
	--profile-cover-shadow: transparent;
	--profile-cover-radius: 10px;
	--profile-article: transparent;
	--profile-article-shadow: transparent;
	--profile-pagination: transparent;
	--profile-pagination-padding: 0px;
	--profile-pagination-shadow: transparent;
	--profile-footer: transparent;
	--profile-footer-shadow: transparent;
}