/* ===================================================
   ANGEL SPACE — RETRO GLOBAL STYLES
   Early 2000s web aesthetic
   =================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  --angel-main:   #c5b8f0;
  --angel-soft:   #ddd8ff;
  --angel-blue:   #b8ccff;
  --angel-mid:    #7868d0;
  --angel-dark:   #5040a8;
  --angel-deeper: #2e1e80;
  --panel-bg: radial-gradient(circle, rgba(255,255,255,1) 68%, rgba(225,230,255,1) 91%, rgba(210,195,255,1) 100%);
  --header-gradient: linear-gradient(180deg, rgba(195,210,255,0.95) 5%, rgba(108,88,198,0.92) 42%, rgba(148,128,218,0.90) 92%);
  --header-shadow: 1px 1px 2px #e8c0ff, -1px -1px 2px #90a8eb, 0px -1px 2px #c0e0ff;
  --inset-glow: rgba(255,255,255,0.54) 0px 0px 2px 3px inset;
  --ridge-border: 3px ridge var(--angel-main);
  --text-dark: #3a3060;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'MS UI Gothic', 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background-image: url(https://cinni.net/images/web/bg/sparklecloud.gif);
  background-repeat: repeat;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SELECTION ===== */
::selection {
  background: transparent;
  color: white;
  text-shadow: 0 0 10px #7060d0, 0 0 20px #7060d0, 0 0 30px #7060d0;
}

/* ===== WINDOWS 98-STYLE SCROLLBAR ===== */
::-webkit-scrollbar { width: 15px; height: 10px; }
::-webkit-scrollbar-thumb:vertical {
  background-color: #fff;
  background-image: url(https://i.imgur.com/Qtm9Z60.png);
  border-top: 1px solid #bdbdbd; border-left: 1px solid #bdbdbd;
  border-right: 1px solid black;  border-bottom: 1px solid black;
}
::-webkit-scrollbar-track {
  background-color: #fff;
  background-image: url(https://i.imgur.com/IGXGYKz.png);
}
::-webkit-scrollbar-button:vertical:increment {
  background-image: url(https://i.imgur.com/WhC8iy3.png);
  width: 14px; height: 16px;
  border-top: 1px solid #bdbdbd; border-left: 1px solid #bdbdbd;
  border-right: 1px solid black;  border-bottom: 1px solid black;
}
::-webkit-scrollbar-button:vertical:decrement {
  background-image: url(https://i.imgur.com/fQ18mrR.png);
  width: 14px; height: 16px;
  border-top: 1px solid #bdbdbd; border-left: 1px solid #bdbdbd;
  border-right: 1px solid black;  border-bottom: 1px solid black;
}

/* ===== SITE CHROME ===== */
.site-topbar {
  background: var(--header-gradient);
  border: var(--ridge-border);
  border-radius: 60px 0 0 0;
  box-shadow: var(--inset-glow);
  padding: 0 20px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 22px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: var(--header-shadow);
}

.site-logo span { color: var(--angel-soft); }

.site-nav { display: flex; gap: 6px; align-items: center; }

.site-nav a,
.site-nav button {
  font-family: 'MS UI Gothic', 'Segoe UI', Arial, sans-serif;
  font-size: 11px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  border: 2px ridge var(--angel-main);
  box-shadow: var(--inset-glow);
  cursor: pointer;
  padding: 4px 12px;
  transition: background 0.15s;
  text-shadow: var(--header-shadow);
}

.site-nav a:hover,
.site-nav button:hover { background: rgba(255,255,255,0.32); color: #ffffff; }

.site-nav .nav-username {
  color: #fff0ff;
  font-weight: bold;
  font-style: italic;
  background: none;
  border: none;
  box-shadow: none;
  text-shadow: var(--header-shadow);
  font-size: 12px;
  padding: 0;
}

/* ===== GENERAL LINKS ===== */
a, a:visited { color: var(--angel-dark); text-decoration: none; transition: color 0.2s; }
a:hover      { color: var(--angel-deeper); }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.auth-box {
  background: var(--panel-bg);
  border: var(--ridge-border);
  border-radius: 0 0 0 40px;
  box-shadow: var(--inset-glow), 0 4px 24px rgba(120,100,210,0.2);
  padding: 30px 36px;
  width: 100%;
  max-width: 420px;
}

.auth-box h2 {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  color: var(--angel-dark);
  text-shadow: var(--header-shadow);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 20px;
}

.auth-logo { text-align: center; margin-bottom: 18px; }

.auth-logo-text {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 30px;
  color: var(--angel-dark);
  text-shadow: var(--header-shadow);
  letter-spacing: 0.5px;
}

.auth-logo-text span { color: var(--angel-mid); }

.auth-tagline { font-size: 11px; color: var(--angel-mid); text-align: center; margin-top: 3px; }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: var(--angel-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.92);
  border: 2px ridge var(--angel-main);
  color: var(--text-dark);
  font-family: 'MS UI Gothic', 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  outline: none;
  transition: box-shadow 0.2s;
  box-shadow: var(--inset-glow);
}

.form-group input:focus {
  box-shadow: 0 0 6px rgba(120,104,208,0.35), var(--inset-glow);
}

.form-group input::placeholder { color: #a8a0c8; }

.btn-primary {
  width: 100%;
  padding: 10px;
  background: var(--header-gradient);
  color: #ffffff;
  border: 2px ridge var(--angel-main);
  box-shadow: var(--inset-glow);
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: var(--header-shadow);
  transition: all 0.15s;
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(180,160,240,0.5), var(--inset-glow);
  transform: translateY(-1px);
}

.btn-primary:active  { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-links {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--angel-mid);
}

.auth-links a { color: var(--angel-dark); }
.auth-links a:hover { color: var(--angel-deeper); text-decoration: underline; }

/* ===== MESSAGE BOXES ===== */
.error-msg {
  background: rgba(255,220,230,0.9);
  border: 2px ridge #f090a8;
  color: #880030;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

.success-msg {
  background: rgba(220,240,255,0.9);
  border: 2px ridge var(--angel-main);
  color: var(--angel-deeper);
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
  text-align: center;
}

.info-msg {
  background: rgba(225,230,255,0.9);
  border: 2px ridge var(--angel-main);
  color: var(--angel-dark);
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* ===== LANDING PAGE ===== */
.landing-page { min-height: 100vh; color: #ffffff; }

.landing-hero { text-align: center; padding: 50px 20px 36px; }

.landing-title {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 58px;
  color: #ffffff;
  text-shadow: var(--header-shadow), 0 0 24px rgba(200,180,255,0.6);
  margin: 0 0 8px;
}

.landing-title span { color: var(--angel-soft); }

.landing-subtitle {
  color: #e8e0ff;
  font-size: 16px;
  font-style: italic;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(80,64,168,0.4);
}

.landing-cta {
  display: inline-block;
  padding: 12px 36px;
  background: var(--header-gradient);
  color: #ffffff;
  text-decoration: none;
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 17px;
  letter-spacing: 1px;
  border: 2px ridge var(--angel-main);
  text-transform: uppercase;
  box-shadow: var(--inset-glow), 0 4px 16px rgba(160,140,220,0.4);
  text-shadow: var(--header-shadow);
  transition: all 0.15s;
}

.landing-cta:hover {
  box-shadow: 0 6px 20px rgba(180,160,240,0.6), var(--inset-glow);
  transform: translateY(-2px);
  color: #ffffff;
}

.landing-login-link { margin-top: 14px; color: #d0c8ff; font-size: 13px; }
.landing-login-link a { color: #e8e0ff; text-decoration: underline; }

.landing-features {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 10px 20px 20px;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--panel-bg);
  border: 2px ridge var(--angel-main);
  box-shadow: var(--inset-glow);
  padding: 16px;
  width: 195px;
  text-align: center;
  border-radius: 0 0 0 20px;
}

.feature-icon { font-size: 30px; margin-bottom: 8px; }

.feature-card h3 {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 12px;
  color: var(--angel-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.feature-card p { color: var(--angel-mid); font-size: 11px; margin: 0; line-height: 1.5; }

.landing-profiles-teaser { text-align: center; padding: 20px 20px 50px; }

.landing-profiles-teaser h2 {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  color: #ffffff;
  text-shadow: var(--header-shadow);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

/* ===== PROFILE PAGE ===== */
.profile-page-wrap { min-height: 100vh; }

.profile-network-bar {
  background: var(--header-gradient);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 14px;
  border-bottom: 2px ridge var(--angel-main);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: var(--header-shadow);
  box-shadow: var(--inset-glow);
}

.online-indicator {
  width: 8px; height: 8px;
  background: #aaffcc;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px #aaffcc;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.profile-main-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px;
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
}

.profile-left-col,
.profile-right-col { display: flex; flex-direction: column; gap: 8px; }

/* ===== CONTAINERS ===== */
.ms-container {
  background: var(--panel-bg);
  border: 2px ridge var(--angel-main);
  box-shadow: var(--inset-glow);
  overflow: hidden;
}

.ms-container-header {
  background: var(--header-gradient);
  color: #ffffff;
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 13px;
  padding: 5px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px ridge var(--angel-main);
  text-shadow: var(--header-shadow);
  box-shadow: var(--inset-glow);
}

.ms-container-body {
  padding: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dark);
}

/* Profile picture */
.profile-pic-box { text-align: center; padding: 10px; }

.profile-pic-img {
  width: 160px; height: 160px;
  object-fit: cover;
  border: 3px ridge var(--angel-main);
  box-shadow: var(--inset-glow);
  display: block;
  margin: 0 auto 8px;
}

.profile-pic-placeholder {
  width: 160px; height: 160px;
  background: rgba(210,200,255,0.35);
  border: 3px ridge var(--angel-main);
  display: flex; align-items: center; justify-content: center;
  color: var(--angel-main);
  font-size: 48px;
  margin: 0 auto 8px;
}

.profile-display-name {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold;
  font-style: italic;
  font-size: 20px;
  color: inherit;
  margin-bottom: 4px;
}

.profile-tagline { font-size: 12px; font-style: italic; color: var(--angel-mid); margin-bottom: 8px; }
.profile-status-line { font-size: 12px; margin-bottom: 4px; }
.profile-status-line strong { color: var(--angel-dark); }
.profile-views { font-size: 11px; color: var(--angel-mid); }

/* Contact box */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 8px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--header-gradient);
  border: 2px ridge var(--angel-main);
  box-shadow: var(--inset-glow);
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 8px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: var(--header-shadow);
  transition: all 0.15s;
}

.contact-btn:hover {
  box-shadow: 0 3px 10px rgba(180,160,240,0.5), var(--inset-glow);
  transform: translateY(-1px);
  color: #ffffff;
}

/* Details table */
.details-table { width: 100%; font-size: 11px; border-collapse: collapse; }
.details-table td { padding: 4px 8px; border-bottom: 1px solid var(--angel-soft); vertical-align: top; }
.details-table td:first-child { font-weight: bold; color: var(--angel-dark); white-space: nowrap; width: 1%; }

/* Links list */
.links-list { list-style: none; padding: 6px 10px; margin: 0; }
.links-list li { border-bottom: 1px dotted var(--angel-main); padding: 4px 0; }
.links-list li:last-child { border-bottom: none; }
.links-list a { color: var(--angel-dark); font-size: 12px; }

/* Song player */
.song-player { padding: 8px; }
.song-player audio { width: 100%; height: 28px; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
}

.photo-grid-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px ridge var(--angel-main);
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-grid-item:hover {
  transform: scale(1.04);
  box-shadow: 0 0 12px rgba(180,160,240,0.5);
}

.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(50,30,100,0.78);
  color: #fff; font-size: 10px; padding: 3px 5px;
  display: none;
}

.photo-grid-item:hover .photo-caption { display: block; }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px;
}

.video-embed-item { border: 2px ridge var(--angel-main); overflow: hidden; }
.video-embed-item iframe { width: 100%; aspect-ratio: 16/9; display: block; border: none; }

.video-title {
  background: rgba(210,200,255,0.4);
  color: var(--angel-dark);
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-top: 1px solid var(--angel-main);
}

/* Marquee */
.profile-marquee {
  overflow: hidden;
  background: var(--header-gradient);
  color: #ffffff;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 2px ridge var(--angel-main);
  text-shadow: var(--header-shadow);
  box-shadow: var(--inset-glow);
}

.marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 18s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ===== SPARKLE CURSOR ===== */
@keyframes sparkle-fade {
  0%   { transform: scale(1) rotate(0deg); opacity: 1; }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

.sparkle-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  animation: sparkle-fade 0.5s ease-out forwards;
}

/* ===== MISC ANIMATIONS ===== */
@keyframes ms-blink { 0%,49%{visibility:visible} 50%,100%{visibility:hidden} }
.ms-blink { animation: ms-blink 1s step-end infinite; }

@keyframes rainbow-shift {
  0%   { color: #c87fff; } 25%{ color: #87c8ff; }
  50%  { color: #ff87c8; } 75%{ color: #87ffcc; }
  100% { color: #c87fff; }
}
.rainbow-text { animation: rainbow-shift 3s linear infinite; }

/* ===== LIGHTBOX ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,10,50,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; cursor: pointer;
}

.modal-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  border: 3px ridge var(--angel-main);
  box-shadow: 0 0 40px rgba(180,160,240,0.5);
  cursor: default;
}

/* ===== NOT FOUND ===== */
.notfound-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; text-align: center; flex-direction: column; gap: 16px;
}

.notfound-page h1 {
  font-family: Arial, 'Segoe UI', sans-serif;
  font-weight: bold; font-style: italic;
  font-size: 80px;
  color: var(--angel-soft);
  text-shadow: 0 0 20px var(--angel-main);
  margin: 0;
}

.notfound-page p { color: #d0c8ff; }
.notfound-page a { color: #e8e0ff; text-decoration: underline; }

/* ===== FALLING STARS ===== */
.snowflake {
  font-size: 16px;
  position: fixed;
  top: -10%;
  z-index: 9999;
  user-select: none;
  pointer-events: none;
  animation-name: snowflakes-fall, snowflakes-shake;
  animation-duration: 10s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

@keyframes snowflakes-fall  { 0%{top:-10%} 100%{top:105%} }
@keyframes snowflakes-shake { 0%,100%{transform:translateX(0)} 50%{transform:translateX(70px)} }

.snowflake:nth-of-type(1)  { left: 5%;  animation-delay: 0s,   0s;   }
.snowflake:nth-of-type(2)  { left: 15%; animation-delay: 1.5s, 0.5s; }
.snowflake:nth-of-type(3)  { left: 25%; animation-delay: 5s,   1s;   }
.snowflake:nth-of-type(4)  { left: 35%; animation-delay: 3s,   1.5s; }
.snowflake:nth-of-type(5)  { left: 45%; animation-delay: 7s,   2s;   }
.snowflake:nth-of-type(6)  { left: 55%; animation-delay: 2s,   2.5s; }
.snowflake:nth-of-type(7)  { left: 65%; animation-delay: 6s,   1s;   }
.snowflake:nth-of-type(8)  { left: 75%; animation-delay: 2.5s, 0s;   }
.snowflake:nth-of-type(9)  { left: 85%; animation-delay: 4s,   1.5s; }
.snowflake:nth-of-type(10) { left: 92%; animation-delay: 1s,   3s;   }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .profile-main-grid { grid-template-columns: 1fr; }
  .landing-title     { font-size: 38px; }
  .photo-grid        { grid-template-columns: repeat(3,1fr); }
  .video-grid        { grid-template-columns: 1fr; }
  body               { background-attachment: scroll; }
  .site-topbar       { position: relative; margin-top: 0; border-radius: 0; }
}

@media (max-width: 400px) { .landing-title { font-size: 28px; } }
