/* ============================================================
   CLASSIC MYSPACE PORTFOLIO — David Pflügl
   ============================================================ */

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #efefef;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d8d8d8' fill-opacity='0.5'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #333333;
  line-height: 1.4;
}

a {
  color: #336699;
  text-decoration: underline;
}

a:hover {
  color: #ff6600;
  text-decoration: underline;
}

img {
  display: block;
}

/* === SUB NAV === */
#subnav {
  background: #336699;
  padding: 4px 0;
  text-align: center;
  border-bottom: 2px solid #336699;
}

#subnav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 11px;
  font-weight: bold;
  margin: 0 10px;
  padding: 2px 0;
}

#subnav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === MAIN WRAPPER === */
#wrapper {
  width: 724px;
  margin: 10px auto 20px auto;
  background: #ffffff;
  border: 1px solid #aaaaaa;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

/* === LOGO BAR === */
#logo-bar {
  border-bottom: 1px solid #cccccc;
  padding: 6px 10px;
  display: flex;
  justify-content: flex-end;
}

#theme-toggle {
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  border: 1px solid #aaaaaa;
  color: #336699;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 8px;
  font-family: Verdana, sans-serif;
  line-height: 1.4;
  flex-shrink: 0;
}

#theme-toggle:hover {
  background: linear-gradient(to bottom, #ddeeff, #c8ddee);
  border-color: #336699;
}

/* === PROFILE URL BAR === */
#profile-url-bar {
  background: #dde5f0;
  border-bottom: 1px solid #b0c0d8;
  padding: 4px 10px;
  font-size: 11px;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.url-segment {
  white-space: nowrap;
}

.url-sep {
  color: #aaaaaa;
  white-space: nowrap;
}

/* === PROFILE HEADER === */
#profile-header {
  padding: 8px 10px;
  border-bottom: 1px solid #cccccc;
  background: #f0f4fa;
  display: flex;
  align-items: center;
  gap: 12px;
}

#profile-header h1 {
  font-size: 18px;
  color: #336699;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.online-now {
  color: #009900;
  font-size: 11px;
  font-weight: bold;
  background: #e8ffe8;
  border: 1px solid #99cc99;
  padding: 1px 6px;
  border-radius: 2px;
}

/* === MAIN TWO-COLUMN LAYOUT === */
#main {
  display: flex;
  border-bottom: 1px solid #cccccc;
}

/* === LEFT COLUMN === */
#left-col {
  width: 244px;
  min-width: 244px;
  border-right: 1px solid #cccccc;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9f9f9;
}

/* === RIGHT COLUMN === */
#right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === PROFILE PHOTO BOX === */
#profile-photo-box {
  text-align: center;
  padding: 6px;
  background: #fff;
}

#profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid #336699;
}

.photo-no-pic {
  width: 200px;
  height: 200px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid #336699;
  font-size: 56px;
  color: #336699;
}

.photo-caption {
  margin-top: 6px;
  font-size: 11px;
  color: #333;
  text-align: center;
}

.mood {
  color: #666;
  font-style: italic;
  font-size: 10px;
}

/* === GENERIC BOX === */
.box {
  border: 1px solid #bbbbbb;
  background: #ffffff;
}

.box-header {
  background: #336699;
  color: #ffffff;
  font-weight: bold;
  padding: 3px 7px;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* === CONTACT TABLE === */
.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table td {
  padding: 2px 3px;
  width: 50%;
}

.contact-btn {
  display: block;
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  border: 1px solid #aaaaaa;
  padding: 3px 5px;
  text-decoration: none;
  color: #336699;
  font-size: 10px;
  font-family: Verdana, sans-serif;
  text-align: center;
  white-space: nowrap;
}

.contact-btn:hover {
  background: linear-gradient(to bottom, #ddeeff, #c8ddee);
  color: #336699;
  text-decoration: none;
  border-color: #336699;
}

/* === DETAILS TABLE === */
.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.details-table tr:nth-child(odd) {
  background: #f2f6ff;
}

.details-table tr:nth-child(even) {
  background: #ffffff;
}

.details-table td {
  padding: 3px 7px;
  border-bottom: 1px solid #eeeeee;
  vertical-align: top;
}

.label {
  font-weight: bold;
  color: #336699;
  white-space: nowrap;
  width: 52px;
}

/* === MUSIC PLAYER === */
#music-player {
  padding: 6px;
}

.music-placeholder {
  background: #f5f5f5;
  border: 1px dashed #aaaaaa;
  padding: 10px;
  text-align: center;
  color: #666;
  font-size: 11px;
  line-height: 1.8;
}

/* === RIGHT COL SECTIONS === */
.section {
  border-bottom: 1px solid #cccccc;
}

.section:last-child {
  border-bottom: none;
}

.section-header {
  background: #336699;
  color: #ffffff;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.section-body {
  padding: 10px;
  font-size: 11px;
  line-height: 1.6;
  background: #ffffff;
}

.section-body p {
  margin-bottom: 7px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.interests-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.interests-table td {
  padding: 4px 8px;
  border: 1px solid #e8e8e8;
  vertical-align: top;
}

.interests-table tr:nth-child(odd) td {
  background: #f5f8ff;
}

.interests-table td:first-child {
  width: 70px;
  color: #336699;
  font-weight: bold;
  white-space: nowrap;
}

/* === FRIENDS (COMPANIES) === */
#friends {
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
}

#friends-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: #fafafa;
}

#friends-grid .friend-card {
  text-align: center;
  width: 72px;
}

.friend-logo {
  width: 72px;
  height: 72px;
  background: #e8e8e8;
  border: 2px solid #aaaaaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto;
}

.friend-logo:hover {
  border-color: #336699;
}

/* === WALL FULL WIDTH === */

.section-header-full {
  background: #336699;
  color: #ffffff;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.3px;
}

.small-link a {
  color: #dddddd;
  font-size: 10px;
  font-weight: normal;
  text-decoration: underline;
}

.small-link a:hover {
  color: #ffffff;
}

#top8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  background: #fafafa;
}

.friend-card {
  text-align: center;
}

.friend-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid #aaaaaa;
}

.friend-card img:hover {
  border-color: #336699;
}

.friend-card a {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #336699;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.friend-card a:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* === WALL === */
#wall {
  background: #ffffff;
  border-top: 1px solid #cccccc;
}

.wall-post {
  display: flex;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #eeeeee;
}

.wall-post:last-child {
  border-bottom: none;
}

.wall-post:hover {
  background: #f5f5f5;
}

.wall-avatar {
  text-align: center;
  min-width: 64px;
  max-width: 64px;
}

.wall-avatar img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  margin: 0 auto;
  border: 1px solid #cccccc;
}

.wall-avatar a {
  display: block;
  font-size: 10px;
  color: #336699;
  text-decoration: none;
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 64px;
}

.wall-avatar a:hover {
  color: #ff6600;
}

.wall-content {
  flex: 1;
  font-size: 11px;
  line-height: 1.55;
}

.wall-meta {
  color: #555;
  font-size: 10px;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px dotted #dddddd;
}

.wall-date {
  color: #999999;
}

.wall-content p {
  margin-bottom: 4px;
}

.wall-reply {
  font-size: 10px;
  color: #336699;
  text-decoration: underline;
}

.wall-reply:hover {
  color: #ff6600;
}

/* === RESPONSIVE / MOBILE === */
@media (max-width: 740px) {
  body {
    font-size: 13px;
  }

  #wrapper {
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
  }

  #profile-url-bar {
    font-size: 11px;
    line-height: 1.8;
  }

  #profile-header h1 {
    font-size: 20px;
  }

  #main {
    flex-direction: column;
  }

  #left-col {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #cccccc;
  }

  .photo-no-pic,
  #profile-photo {
    width: 120px;
    height: 120px;
    font-size: 40px;
  }

  .contact-table td {
    display: block;
    width: 100%;
  }

  .contact-btn {
    font-size: 12px;
    padding: 6px 8px;
  }

  .details-table,
  .details-table td {
    font-size: 13px;
  }

  .section-header {
    font-size: 12px;
    padding: 6px 10px;
  }

  .section-body {
    font-size: 13px;
    padding: 12px;
  }

  .interests-table td {
    font-size: 13px;
  }

  .interests-table td:first-child {
    width: 80px;
  }

  #footer {
    font-size: 12px;
  }
}

/* === FOOTER === */
#footer {
  background: #336699;
  color: #cce0ff;
  text-align: center;
  padding: 12px 10px;
  font-size: 10px;
  line-height: 2;
  border-top: 2px solid #336699;
}

#footer a {
  color: #cce0ff;
  text-decoration: none;
}

#footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* === DARK THEME === */
html.dark body {
  background-color: #111111;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23222222' fill-opacity='0.6'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
  color: #cccccc;
}

html.dark a { color: #cccccc; }
html.dark a:hover { color: #ffffff; }

html.dark #wrapper {
  background: #1c1c1c;
  border-color: #444444;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

html.dark #logo-bar {
  border-bottom-color: #333333;
}

html.dark #theme-toggle {
  background: linear-gradient(to bottom, #2a2a2a, #222222);
  border-color: #444444;
  color: #cccccc;
}

html.dark #theme-toggle:hover {
  background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
  border-color: #666666;
}

html.dark #profile-url-bar {
  background: #1a1a1a;
  border-bottom-color: #2a2a2a;
  color: #aaaaaa;
}

html.dark #profile-header {
  background: #1a1a1a;
  border-bottom-color: #2a2a2a;
}

html.dark #profile-header h1 { color: #cccccc; }

html.dark .online-now {
  color: #bbbbbb;
  background: #222222;
  border-color: #444444;
}

html.dark #main { border-bottom-color: #333333; }

html.dark #left-col {
  background: #161616;
  border-right-color: #333333;
  border-bottom-color: #333333;
}

html.dark .box {
  border-color: #333333;
  background: #1c1c1c;
}

html.dark #profile-photo-box { background: #1c1c1c; }
html.dark #profile-photo { border-color: #555555; }
html.dark .photo-caption { color: #999999; }

html.dark .contact-btn {
  background: linear-gradient(to bottom, #2a2a2a, #222222);
  border-color: #444444;
  color: #cccccc;
}

html.dark .contact-btn:hover {
  background: linear-gradient(to bottom, #3a3a3a, #2a2a2a);
  color: #ffffff;
  border-color: #666666;
}

html.dark .details-table tr:nth-child(odd) { background: #1e1e1e; }
html.dark .details-table tr:nth-child(even) { background: #1c1c1c; }
html.dark .details-table td { border-bottom-color: #2a2a2a; }
html.dark .label { color: #cccccc; }

html.dark .section { border-bottom-color: #333333; }
html.dark .section-body { background: #1c1c1c; }

html.dark .interests-table td { border-color: #2a2a2a; }
html.dark .interests-table tr:nth-child(odd) td { background: #1e1e1e; }
html.dark .interests-table td:first-child { color: #cccccc; }

html.dark .box-header { background: #2a2a2a; }
html.dark .section-header { background: #2a2a2a; }
html.dark #footer { background: #1a1a1a; border-top-color: #1a1a1a; color: #aaaaaa; }
