@import "./fonts.css";

/*
Page chrome: body, background, global box-sizing.
Defines the overall page canvas, brick wall background, and rainbow overlay.
*/
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("imgs/bg-srcs/blue-brick-wall.jpg");
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: top left;
  background-color: #000;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

.bg-anim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("imgs/bg-srcs/rainbow-rain.gif");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: auto;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  transform: translate(0px, 0px);
}

#page {
  position: relative;
  z-index: 1;
  width: 900px;
  margin: 20px auto;
  color: #000;
}

/*
Header: top bar layout and contact strip.
Wraps profile picture, header meta, and contact GIF buttons.
*/
#top-bar {
  background: #ffffff;
  border: 2px ridge #707788;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
}

.top-left {
  display: flex;
  gap: 8px;
}

.top-profile-pic {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #c7d2e2;
}

.top-main-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.top-title-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.profile-title {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.profile-theme {
  font-size: 10px;
  color: #555;
}

.top-status-row,
.top-mood-row,
.top-links-row,
.top-status-edit-row {
  font-size: 11px;
}

.top-mood-row .label,
.top-status-edit-row .label,
.details-label {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-mood-row .label,
.top-status-edit-row .label {
  font-weight: bold;
  margin-right: 2px;
}

.top-username {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.01em;
}

#mood-emoji {
  margin: 0 2px;
}

.mood-updated {
  color: #777;
  margin-left: 4px;
}

.top-link {
  color: #003399;
  text-decoration: none;
}

.top-link:hover {
  text-decoration: underline;
}

.divider {
  margin: 0 3px;
  color: #999;
}

.top-right {
  position: relative;
  width: 160px;
  height: 80px;
  flex: 0 0 160px;
  overflow: hidden;
  transform: translateY(-2px);
}

.top-right-actions {
  position: absolute;
  bottom: 4px;
  left: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2px;
  z-index: 2;
}

.top-action {
  display: block;
  line-height: 0;
  text-decoration: none;
}

#contact_tbl_bg {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 160px;
  height: 80px;
}

#gaming-add-me,
#msg-me,
#blk-me {
  display: block;
  height: 14px;
  width: 40px;
}

/*
Layout grid: main two-column structure.
Defines left/right columns and overall page flow.
*/
.pgo-card {
  width: 400px;
  height: 200px;
  margin: -4.5px 0 0.25px 125px;
  padding: 2px 2px;
}

#layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 10px;
  margin-top: 10px;
}

#left-column,
#right-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/*
Box chrome: reusable box containers and media wrappers.
Shared border and background treatment for boxed sections.
*/
.media-player-box,
.media-box {
  background: #ffffff;
  border: 1px solid #c7d2e2;
}

/*
Media player wrapper: let the player own the box.
No extra padding so the gradient fills edge to edge.
*/
.box.media-player-box {
  padding: 0;
  background: transparent;
  border: none;
}

.box,
.activity-box,
.secret-box,
.bookmark-rota-box,
.details-box,
.interests-box {
  background: #ffffff;
  border: 2px ridge #707788;
}

.box {
  padding: 10px;
}

/*
Single-song player: main shell and visualizer.
MySpace-style mini player with one track, no cover art.
Styleguide Media.Player.Single.
*/
.music_player_container {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 50px;
  background: linear-gradient(
    180deg,
    rgba(247,249,246,1) 0%,
    rgba(216,213,214,1) 55%,
    rgb(158,160,160) 88%
  );
  display: flex;
  flex-direction: row;
  align-items: center;
  border: 1px solid black;
  box-sizing: border-box;
}

.music_player_play {
  height: 100%;
  width: 75px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.music_player_play_button {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    180deg,
    rgba(247,249,246,1) 0%,
    rgba(216,213,214,1) 21%,
    rgb(167,167,167) 82%,
    rgba(255,255,255,1) 99%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #6a6a6a;
  border-radius: 8px;
  border: 1px solid #737373;
  cursor: pointer;
  padding: 0;
}

.music_player_play_button:focus-visible {
  outline: 2px solid #003399;
  outline-offset: 2px;
}

.music_player_body {
  width: 100%;
  height: 100%;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1.5px 0 0;
}

.music_player_body_text {
  height: 40px;
  width: 100%;
  background: #27201e;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  color: white;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 5px;
  font-family: inherit;
}

.music_player_body_text_track {
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

.music_player_body_text_track span {
  height: 50%;
  color: white;
  line-height: 1.1;
}

.music_player_track_title {
  font-size: 0.5rem;
  font-weight: 600;
}

.music_player_track_artist {
  font-size: 0.5rem;
  opacity: 0.85;
  font-weight: 400;
}

.music_player_visual {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
}

.music_player_visual_bar {
  height: 100%;
  width: 10px;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.music_player_visual_pip {
  width: 100%;
  height: 2px;
}

/*
Single-song player: bar color stack.
Color bands for the fake EQ pips.
*/
.music_player_visual_pip:nth-child(1) { background: #188a18; }
.music_player_visual_pip:nth-child(2) { background: #a8f37c; }
.music_player_visual_pip:nth-child(3) { background: #fbfbcc; }
.music_player_visual_pip:nth-child(4) { background: #e9ef81; }
.music_player_visual_pip:nth-child(5) { background: #dea671; }
.music_player_visual_pip:nth-child(6) { background: #dec671; }
.music_player_visual_pip:nth-child(7) { background: #de8771; }

/*
Single-song player: mobile behavior.
Let the container scale in narrow viewports.
*/
@media (max-width: 480px) {
  .music_player_container {
    width: 100%;
    max-width: 100%;
  }

  .music_player_body_text_track span {
    font-size: 0.75rem;
  }
}

/*
Box headers and welcome banner.
Shared heading treatment for major sections.
*/
.activity-box h2,
.secret-box h2,
.bookmark-rota-box h2,
.details-box h2,
.interests-box h2,
.welcome-box h2 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
  border: 1.75px;
  border-style: ridge;
  border-color: #707788;
}

.event-box h2,
.media-box h2 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}

.welcome-box {
  border: 2px ridge #707788;
  padding: 0;
  overflow: hidden;
}

.welcome-box .box-title,
.secret-box h2,
.bookmark-rota-box h2{
  margin: 0;
  padding: 1px 1.25px;
  font-size: 16px;
  background: #1b3b63;
  color: #fff;
}

.activity-box h2 {
  background-image: url("imgs/dividers/cat2.gif");
  background-repeat: repeat-x;
  background-size: contain;
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
  color: #000000;
  border: 1.75px;
  border-style: ridge;
  border-color: #707788;
  font-weight: bolder;
}

.welcome-box .box-title {
  display: block;
  width: 100%;
}

.welcome-box__body,
#welcome-to-page {
  display: block;
  width: 85%;
  margin: 1px 2px 4px 15px;
  padding: 0;
  height: auto;
}

/*
Side boxes: activity, secrets, bookmarks.
Tightens padding and resets list basics for these modules.
*/
.activity-box {
  padding: 0;
}

.activity-box h2,
.secret-box h2,
.bookmark-rota-box h2 {
  font-size: 15px;
}

.secret-box {
  padding: 0;
}

.bookmark-rota-box {
  padding: 0;
}

.activity-box ul,
.bookmark-rota-list ul,
.secret-list ul {
  padding: 0;
}

.activity-box li,
.secret-list li {
  margin-top: 4.5px;
  margin-bottom: 6px;
  font-size: 12px;
}

.bookmark-rota-li {
  margin-top: 2.5px;
  margin-bottom: 3px;
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  position: relative;
  padding-left: 1.5em;
  list-style: none;
}

.bookmark-rota-li::before {
  content: "🔖";
  position: absolute;
  left: 0;
  top: -5.25px;
}

/*
Events and media grid.
Five-column grid for flyers and media tiles.
Styleguide Events.Grid.
*/

.interests-box h2 {
  background-image: url("imgs/dividers/notes4.gif");
  background-repeat: no-repeat;
  background-size: 100% auto;
  margin: 0;
  padding: 4px 6px;
  width: auto;
  height: 40px ;
}

.activity-stream-title h2,
.details-box h2 {
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: bolder;
  color: #210c48;;
}
.activity-stream-title,
.event-box,
.media-box  {
  margin: 0;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: bolder;
  color: #210c48;;
}

.event-box h2 {
  background-image: url("imgs/dividers/sparkles.gif") ;
  background-size: contain;
  border-top: #222 solid 1.75px;
  border-bottom: #222 solid 1.75px;
}

.media-box h2 {
  background-image: url("imgs/dividers/blood-rainbow.gif") ;
  background-repeat: repeat-x;
  background-size: 35% 35%;
  border-top: #222 solid 1.75px;
  border-bottom: #222 solid 1.75px;
}


#activity-photo-title {
  background-image: url("imgs/dividers/rainbowstars5.gif");
  background-repeat: repeat-x;
  background-size: contain;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: bolder;
  color: #210c48;
  border-top: #222 solid 1.75px;
  border-bottom: #222 solid 1.75px;
}

#activity-writing-title {
  background-image: url("imgs/dividers/sparkles.gif");
  background-repeat: repeat-x;
  background-size: contain;
  margin: 1.5px 0;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: bolder;
  color: #210c48;
  border-bottom: #222 solid 1.75px;
}

#activity-misc-title {
  background-image: url("imgs/dividers/bubbles2.gif");
  background-repeat: repeat-x;
  background-size: contain;
  border-spacing: 1px 0;
  margin: 0;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: bolder;
  color: #210c48;
  border-top: #222 solid 1.75px;
  border-bottom: #222 solid 1.75px;
}

.event-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2.5px;
}

.event-slot,
.media-slot {
  background: #B9DFF0;
  color: #254770;
  margin: 2.25px 2px 2px 2.25px;
  border: 1.75px solid #d1d8ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.event-slot {
  height: 200px;
}

.media-slot {
  height: 185px;
}

.event-flyer,
.media-flyer {
  object-fit: fill;
  display: block;
}

.event-flyer {
  max-width: 95%;
  max-height: 95%;
}

.media-flyer {
  max-width: 85%;
  max-height: 80%;
}

.event-label,
.media-label {
  margin-top: 0.25px;
  font-size: 8px;
  font-weight: bold;
}

/*
Mood selector popover.
Inline mood chip with emoji trigger and positioned <select>.
Styleguide Header.Mood.
*/
#mood-container {
  position: relative;
  display: inline-block;
}

#mood-emoji-wrapper {
  display: inline-block;
  cursor: pointer;
}

.mood-select {
  position: absolute;
  display: none;
  font-size: 11px;
  padding: 2px;
  z-index: 1000;
  background: #fff;
  border: 1px solid #c7d2e2;
}

/*
Details table.
Two-column label/value grid for personal trivia.
Styleguide Details.Table.
*/
.details-box {
  padding: 0;
}

.details-table {
  font-size: 11px;
  border: 1px solid #c7d2e2;
}

.details-row {
  display: flex;
}

.details-label {
  width: 40%;
  padding: 3px 4px;
  background-color: #e4edf9;
  border-bottom: 1px solid #c7d2e2;
  border-right: 1px solid #c7d2e2;
  box-sizing: border-box;
}

.details-value {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  letter-spacing: 0.01em;
  width: 60%;
  padding: 3px 4px;
  background-color: #f5f7fc;
  border-bottom: 1px solid #c7d2e2;
  box-sizing: border-box;
}

.details-row:last-child .details-label,
.details-row:last-child .details-value {
  border-bottom: none;
}

.details-inline-img {
  height: 18px;
  width: auto;
  margin-left: 4px;
  vertical-align: middle;
}

/*
Interests list.
Blue links-ish typography for the little interest stacks.
*/
.interests-box {
  padding: 0;
}

.interests-list {
  border: 1px solid #c7d2e2;
  background: #ffffff;
  text-align: center;
  padding: 6px 4px;
}

.interest-item {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-variation-settings: "wdth" 100;
  font-weight: 400;
  font-size: 11px;
  color: #003399;
  text-decoration: none;
  margin: 2px 0;
}

/*
Activity stream container.
Wrapper for the stream sections and content cards.
Styleguide Activity.Stream.
*/
.activity-stream {
  padding: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.activity-stream-section {
  margin-bottom: 8px;
  border: 1px solid #c7d2e2;
  background: #fff;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.activity-stream-section--photos,
.activity-stream-section--writing,
.activity-stream-section--misc {
  min-width: 0;
  width: 100%;
  height: 55%;
  min-height: 0;
  overflow: hidden;
  border: #363333 solid 1px;
  border-top: #363333b0 solid 0.25px ;
}

.activity-stream-section--photos {
  margin: 0.25px 0.25px;
  padding: 1px 1.25px;
}

.activity-stream-section--writing,
.activity-stream-section--misc {
  margin: 0.25px 0.25px;
  padding: 1px 1.25px;
}

.activity-stream-section--writing {
   border-bottom: none;
}

.activity-stream-section--photos .activity-stream-title,
.activity-stream-title {
  flex: 0 0 auto;
}

.activity-stream-section--photos .activity-photo-carousel {
  height: calc(595px - 24px);
  overflow: hidden;
  padding: 2px 0;
}

.activity-stream-section:last-child {
  margin-bottom: 1px;
}

.activity-stream-section--photos .splide,
.activity-stream-section--photos .splide__track,
.activity-stream-section--photos .splide__list {
  height: 100%;
}

.activity-stream-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}

/*
Activity stream: photo carousel.
Splide-powered horizontal strip of Flickr cards.
Styleguide Activity.Stream.Photos.
*/
.activity-photo-carousel {
  padding: 2px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.activity-photo-carousel .splide__track {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.activity-photo-carousel .splide__list {
  display: flex;
  align-items: stretch;
  padding: 0 4px;
}

.activity-photo-carousel .splide__slide,
.activity-stream-section--photos .splide__slide {
  display: flex;
  min-width: 0;
  width: auto;
  padding: 0 2px;
  box-sizing: border-box;
}

.activity-photo-card {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: inherit;
  text-decoration: none;
  width: 150px;
  max-width: 150px;
  min-width: 150px;
  box-sizing: border-box;
  padding: 0.25px 0;
}

.activity-photo-thumb {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid #c7d2e2;
  background: #eef3f8;
  display: block;
  flex: 0 0 150px;
}

.activity-photo-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 1px;
  font-size: 9px;
  line-height: 1.25;
  min-width: 0;
  max-width: 150%;
  text-align: center;
  flex: 0 0 auto;
}

.activity-photo-title {
  font-weight: 700;
  color: #003399;
}

.activity-photo-details {
  color: #444;
  overflow-wrap: anywhere;
}

/*
Activity stream: writing and misc lists.
Default list styling for entries and tags.
Styleguide Activity.Stream.Entries.
*/
.activity-stream-section--writing {
  margin-bottom: 0.15px;
}

.activity-entry-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.activity-entry {
  padding-bottom: 8px;
  border-bottom: 1px dotted #c7d2e2;
}

.activity-entry:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-entry-title {
  color: #506a96;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}

.activity-entry-title:hover {
  text-decoration: underline;
}

.activity-entry-meta {
  display: inline;
  font-size: 11px;
  color: #666;
  margin-left: 4px;
}

.activity-entry-summary {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #222;
}

.activity-entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  font-size: 10px;
}

/*
Activity stream: tag commas.
Adds trailing commas between tags and hides the last comma.
*/
.activity-tag {
  color: #003399;
  text-decoration: none;
}

.activity-tag::after {
  content: ",";
  color: #888;
  margin-right: 2px;
}

.activity-tag:last-child::after {
  content: "";
}

.activity-entry--compact .activity-entry-summary,
.activity-entry--compact .activity-entry-tags {
  display: none;
}

/*
Activity stream: responsive tweaks.
Pads the stream a bit differently on narrow vs. wide viewports.
*/
@media (max-width: 699px) {
  .activity-stream {
    padding: 6px;
  }

  .activity-photo-meta {
    font-size: 10px;
  }
}

@media (min-width: 700px) {
  .activity-stream {
    padding: 8px;
  }
}