@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Comfortaa:wght@400;700&display=swap');

:root {
  --blue-mid:    #335bdf;
  --blue-pale:   #d1ecfd;
  --navy:        #1e4d80;
  --sky:         #37b0f8;
  --muted:       #677986;
  --bright:      #0f8afb;
  --deep:        #2c2690;

  --sidebar-bg:  #cce4f7;
  --card-bg:     #e8f4fd;
  --card-border: #a8cce8;
  --inner-bg:    #f0f8ff;
  --tag-bg:      #daeeff;
  --tag-active:  #335bdf;
  --text:        #1b2a3a;
  --subtext:     #4a6070;
  --sep:         #a8cce8;
}

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

body {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: var(--text);
  min-height: 100vh;
  background-color: #eaf6ff;
  background-image:
  linear-gradient(rgba(51, 91, 223, 0.12) 1px, transparent 1px),
  linear-gradient(90deg, rgba(51, 91, 223, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
  padding: 0;
}
background-attachment: fixed;
padding: 0;
    }

    .page {
      display: flex;
      min-height: 100vh;
      justify-content: center;
      align-items: flex-start;
    }

    .page-inner {
      display: flex;
      width: 100%;
      max-width: 1100px;
      gap: 14px;
      padding: 0 32px;
      margin: 0 auto;
    }

    /* ── Sidebar: one solid connected block ── */
    .sidebar {
      width: 200px;
      min-width: 200px;
      background: var(--sidebar-bg);
      height: 100vh;
      flex-shrink: 0;
      overflow: hidden;
      position: sticky;
      top: 0;
      align-self: flex-start;
    }

    /* each section separated by a dashed rule */
    .s-section {
      padding: 14px 12px;
      border-bottom: 1px dashed var(--sep);
    }

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

    .profile-avatar {
      display: flex;
      justify-content: center;
      margin-bottom: 10px;
    }

    .avatar-placeholder {
      width: 100%;
      aspect-ratio: 1 / 1;
      background: var(--blue-pale);
      border: 1.5px solid var(--card-border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 11px;
      font-family: 'Nunito', sans-serif;
      letter-spacing: 0.5px;
    }

    .profile-name {
      font-family: 'Comfortaa', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--navy);
      text-align: center;
      line-height: 1.2;
      margin-bottom: 8px;
    }

    .info-rows {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 12px;
      margin-bottom: 8px;
    }

    .info-row {
      display: flex;
      gap: 5px;
    }

    .info-label {
      font-weight: 700;
      color: var(--navy);
      min-width: 54px;
    }

    .info-val { color: var(--subtext); }

    .profile-desc {
      font-size: 12px;
      color: var(--subtext);
      line-height: 1.6;
      text-align: center;
    }

    /* section headings */
    .s-title {
      font-family: 'Comfortaa', sans-serif;
      font-size: 11px;
      font-weight: 700;
      color: var(--blue-mid);
      letter-spacing: 2px;
      text-transform: uppercase;
      border-bottom: 1px dashed var(--sep);
      padding-bottom: 6px;
      margin-bottom: 8px;
    }

    .nav-links {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .nav-btn {
      display: block;
      text-align: center;
      background: var(--blue-pale);
      border: 1.5px solid var(--card-border);
      padding: 5px 10px;
      font-family: 'Comfortaa', sans-serif;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--navy);
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
      box-shadow: 3px 3px 0px var(--card-border);
      transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    }

    .nav-btn:hover {
      background: var(--blue-mid);
      color: #fff;
      border-color: var(--blue-mid);
      box-shadow: 3px 3px 0px var(--navy); /* darker shadow on hover */
    }

    .notice-text {
      font-size: 11.5px;
      color: var(--subtext);
      font-style: italic;
      line-height: 1.6;
    }

    .notice-text strong {
      color: #cc2200;
      font-style: normal;
    }

    /* ── Main ── */
    .main {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-width: 0;
      padding: 16px 16px 24px 0;
    }

    /* Solid shadow on cards */
    .card {
      background: var(--card-bg);
      border: 1.5px solid var(--card-border);
      padding: 14px 16px;
      box-shadow: 4px 4px 0px var(--card-border); /* solid shadow */
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 10px;
    }

    .card-title {
      font-family: 'Comfortaa', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .card-title::before {
      content: '▼';
      font-size: 9px;
      color: var(--blue-mid);
    }

    .card-date { font-size: 12px; color: var(--muted); }

    .status-rows {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .status-row label {
      font-size: 12.5px;
      font-weight: 700;
      color: var(--navy);
      display: block;
      margin-bottom: 2px;
    }

    .status-inner {
      background: var(--inner-bg);
      border: 1px solid var(--card-border);
      padding: 5px 10px;
      font-size: 13px;
      color: var(--text);
    }

    .status-inner a {
      color: var(--blue-mid);
      text-decoration: underline;
      font-weight: 600;
    }

    .tag-filters {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 4px;
    }

    .tag-btn {
      background: var(--tag-bg);
      border: 1.5px solid var(--card-border);
      padding: 3px 11px;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--navy);
      cursor: pointer;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      font-family: 'Nunito', sans-serif;
      box-shadow: 2px 2px 0px var(--card-border);
      transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    }

    .tag-btn:hover,
    .tag-btn.active {
      background: var(--tag-active);
      color: #fff;
      border-color: var(--tag-active);
      box-shadow: 2px 2px 0px var(--navy);
    }

    .post-title-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 8px;
    }

    .post-title {
      font-family: 'Comfortaa', sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--navy);
    }

    .post-body {
      font-size: 13.5px;
      color: var(--text);
      line-height: 1.65;
      margin-bottom: 8px;
    }

    .post-sep {
      border: none;
      border-top: 1px dashed var(--sep);
      margin: 8px 0;
    }

    .post-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .post-tag {
      font-size: 12px;
      color: var(--blue-mid);
      font-weight: 600;
      cursor: pointer;
    }

    .post-tag:hover { color: var(--deep); text-decoration: underline; }

    .read-more {
      font-size: 13px;
      font-weight: 700;
      color: var(--blue-mid);
      text-decoration: none;
    }

    .read-more:hover { color: var(--bright); text-decoration: underline; }

    .back-to-top {
      text-align: center;
      padding: 4px 0;
    }

    .back-to-top a {
      font-size: 13px;
      color: var(--sky);
      text-decoration: underline;
    }

    /* profile card layout */
    .profile-card {
      padding: 12px;
    }

    /* top section (image + text) */
    .profile-top {
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    /* image */
    .profile-img {
      width: 110px;
      height: 110px;
      object-fit: cover;
      border: 1.5px solid var(--card-border);
    }

    /* text area */
    .profile-text {
      flex: 1;
    }

    /* username */
    .profile-handle {
      font-family: 'Comfortaa', sans-serif;
      font-size: 18px;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 4px;
    }

    /* description */
    .profile-desc {
      font-size: 13px;
      line-height: 1.5;
      color: var(--text);
    }

    /* tiny credit line */
    .profile-credit {
      font-size: 11.5px;
      color: var(--muted);
      text-align: right;
      margin-top: 4px;
    }

    /* bottom badges row */
    .profile-badges {
      margin-top: 10px;
      padding-top: 8px;
      border-top: 1px dashed var(--sep);
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    /* individual badge */
    .badge {
      background: var(--tag-bg);
      border: 1.5px solid var(--card-border);
      padding: 3px 8px;
      font-size: 12px;
      color: var(--navy);
      font-weight: 600;
    }

    .banner-card {
      padding: 0;
      overflow: hidden;
    }

    .banner-img {
      width: 100%;
      height: 120px;
      object-fit: cover;
      display: block;
    }

    .ticker-bar {
      background: var(--sidebar-bg);
      border: 1.5px solid var(--card-border);
      box-shadow: 3px 3px 0px var(--card-border);
      overflow: hidden;
      padding: 6px 0;
      white-space: nowrap;
    }

    .ticker-track {
      display: inline-block;
      animation: ticker 18s linear infinite;
    }

    .ticker-track span {
      font-size: 12.5px;
      font-family: 'Comfortaa', sans-serif;
      font-weight: 700;
      color: #1e4d80;
      letter-spacing: 1px;
      padding-right: 40px;
    }

    @keyframes ticker {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }

    .cbox-wrap iframe {
      width: 100% !important;
      border: none !important;
    }

    .list-title {
      font-weight: bold;
      margin-top: 8px;
    }

    .like-tag, .dislike-tag {
      display: inline-block;
      padding: 3px 8px;
      margin: 3px;
      border-radius: 0px;
      font-size: 12px;
    }

    .like-tag {
      background: #d4f8d4;
    }

    .dislike-tag {
      background: #ffd6d6;
    }

    .interest-tag {
      display: inline-block;
      padding: 3px 8px;
      margin: 3px;
      font-size: 12px;
      background: #e8d4f8;
    }

    .interests-section {
      margin-top: 2px;
      padding-top: 8px;
    }

    .profile-lists {
      display: flex;
      gap: 32px;
    }

    .side-img {
      position: fixed;
      right: 10px;
      bottom: 0;
      z-index: 10;
      pointer-events: none;
      width: 75px;
    }

    .card-title::before {
      content: '▼';
      font-size: 9px;
      color: var(--blue-mid);
      transition: transform 0.2s;
      display: inline-block;
    }

    .card-title.collapsed::before {
      content: '▶';
    }

    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: var(--card-border); }
