/* styles.css */

/* ===== Base ===== */
:root{
  --bg1:#003366;
  --bg2:#001a33;
  --border:#0077ff;
  --borderSoft: rgba(0,119,255,.35);
  --cyan:#00e5ff;
  --text:#ffffff;
  --muted:#b9c7d6;
  --panel:#061c36;
  --panel2:#071a33;
  --shadow: 0 0 16px rgba(0,170,255,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: Verdana, sans-serif;
  color:var(--text);
  background: var(--bg2);
}
a{color:inherit;text-decoration:none}
.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
}

/* ===== Animations ===== */
@keyframes sparkle { 0%,100%{opacity:1} 50%{opacity:.35} }
@keyframes marquee { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.sparkle{ animation: sparkle 1.5s ease-in-out infinite; }
.neon{
  text-shadow: 0 0 6px var(--cyan), 0 0 12px var(--cyan), 0 0 18px var(--cyan);
}

/* ===== MySpace visuals ===== */
.myspace-gradient{ background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 100%); }
.star-bg{
  background-image:
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 230px 80px, white, transparent),
    radial-gradient(2px 2px at 300px 150px, rgba(255,255,255,.7), transparent);
  background-size: 350px 200px;
}

/* ===== Header ===== */
.header{
  border-bottom:4px solid var(--border);
  overflow:hidden;
  position:relative;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.top-rainbow{
  position:absolute; top:0; left:0; right:0; height:4px;
  background: linear-gradient(90deg, #ec4899, #a855f7, #3b82f6);
}
.marquee-wrap{
  background: rgba(0,0,0,.45);
  border-bottom: 1px solid rgba(0,119,255,.35);
  padding:6px 0;
  overflow:hidden;
}
.marquee{
  white-space:nowrap;
  color:#facc15;
  display:inline-block;
  animation: marquee 15s linear infinite;
  font-size:13px;
}
.header-inner{
  padding: 18px 0;
  display:flex;
  gap: 16px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

/* Brand */
.brand{display:flex; gap:14px; align-items:center}
.brand-badge{
  width:42px; height:42px; border-radius:999px;
  display:grid; place-items:center;
  background: radial-gradient(circle at 30% 30%, #39f, #0aa);
  border:2px solid rgba(0,229,255,.55);
  box-shadow: 0 0 18px rgba(0,229,255,.45);
}
.brand-badge span{font-weight:800; font-size:14px}
.brand-text h1{
  margin:0;
  font-size: 18px;
  letter-spacing:.2px;
  text-shadow: 0 0 10px rgba(0,229,255,.55);
}
.brand-dot{color:#67e8f9}
.brand-text p{margin:2px 0 0; font-size:11px; color:#a5f3fc}

/* Nav */
.nav{display:flex; gap:8px; flex-wrap:wrap; justify-content:center}
.nav-link{
  font-size:12px;
  padding:7px 10px;
  border-radius:6px;
  border:1px solid rgba(0,119,255,.35);
  background: rgba(6, 28, 54, .55);
  color:#d1d5db;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
  box-shadow: 0 0 10px rgba(0,0,0,.2) inset;
}
.nav-link:hover{
  background: rgba(0,229,255,.10);
  border-color: rgba(0,229,255,.55);
  color:#fff;
}
.nav-link.active{
  background: rgba(0,229,255,.12);
  border:2px solid rgba(0,229,255,.6);
  color:#bff7ff;
  box-shadow: 0 0 16px rgba(0,229,255,.25);
}

/* ===== Page frame ===== */
.page-frame{
  margin: 18px auto 0;
  padding: 22px 18px 26px;
  border-radius: 10px;
  border: 2px solid rgba(0,229,255,.35);
  box-shadow: 0 0 22px rgba(0,229,255,.15);
  background: linear-gradient(180deg, rgba(4,22,44,.85), rgba(3,16,34,.85));
}

/* Hero */
.hero{
  text-align:center;
  padding: 10px 10px 16px;
  border-bottom: 1px dashed rgba(0,229,255,.25);
}
.hero h2{
  margin:0;
  font-size: 22px;
  text-shadow: 0 0 10px rgba(0,229,255,.55);
}
.hero p{
  margin:6px 0 0;
  font-size:11px;
  color: rgba(185,199,214,.95);
}

/* ===== Layout grid ===== */
.layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(9,33,66,.88), rgba(6,26,51,.88));
  border-radius: 8px;
  overflow:hidden;
}
.card-border{
  border: 1px solid var(--borderSoft);
  box-shadow: var(--shadow);
}
.card-head{
  padding: 10px 12px;
  font-size:12px;
  font-weight:700;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(0,229,255,.08);
}
.card-head-title{ display:flex; align-items:center; gap:8px; }

/* ===== Left profile ===== */
.profile-box{ padding: 14px 14px 16px; }
.avatar{
  height:  220px;
  width: 100%;
  border-radius: 6px;
  border: 2px solid rgba(0,229,255,.35);
  background: rgba(0,0,0,.18);
  box-shadow: 0 0 18px rgba(0,229,255,.15) inset;

  overflow: hidden;
  display: block;
  position: relative;
}

.avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;  /* fills the box nicely */
  border-radius: 6px;  /* matches the avatar box corners */
  display: block;
}

.quote{
  margin: 10px 0 10px;
  font-size: 10px;
  color: rgba(220,240,255,.8);
  text-align:center;
}
.meta{ font-size:10px; color: rgba(185,199,214,.95); }
.meta-row{ display:flex; gap:6px; margin: 6px 0; }
.meta-row span{ color: rgba(255,255,255,.9); font-weight:700; }

.divider{
  margin: 12px 0;
  border-top: 1px dashed rgba(0,229,255,.22);
}
.section-title{
  font-size:11px;
  font-weight:800;
  margin: 10px 0 6px;
  color: rgba(255,255,255,.95);
}
.about{
  margin:0;
  font-size:10px;
  line-height:1.55;
  color: rgba(185,199,214,.95);
}
.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tag{
  font-size:10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.22);
  background: rgba(0,229,255,.06);
  color: rgba(210,250,255,.95);
}

/* Friends */
.friends-head{ background: linear-gradient(90deg, rgba(168,85,247,.25), rgba(236,72,153,.18)); }
.friends{ margin-top: 14px; }
.friends-grid{
  padding: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.friend-tile{
  border-radius: 6px;
  padding: 10px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(0,119,255,.25);
  transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.friend-tile:hover{
  transform: translateY(-1px);
  border-color: rgba(0,229,255,.35);
  background: rgba(0,229,255,.06);
}
.friend-ico{ font-size:18px; }
.friend-name{ font-size:11px; font-weight:800; margin-top:6px; }
.friend-sub{ font-size:9px; color: rgba(185,199,214,.9); margin-top:2px; }
.friends-actions{
  padding: 0 12px 12px;
  display:flex;
  justify-content:center;
  gap:8px;
  font-size:10px;
  color: rgba(185,199,214,.95);
}
.friends-link{ color: rgba(180,245,255,.95); }
.friends-link:hover{ text-decoration: underline; }
.dot{ opacity:.7; }

/* ===== Explore panel ===== */
.explore-head{ background: rgba(0,119,255,.18); }
.explore-grid{
  padding: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px){
  .explore-grid{ grid-template-columns: 1fr; }
}
.pill{
  border-radius: 8px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
  box-shadow: 0 0 14px rgba(0,0,0,.25) inset;
}
.pill:hover{ outline: 1px solid rgba(255,255,255,.12); }
.pill-wide{ grid-column: 1 / -1; }
.pill-top{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:12px;
}
.pill-ico{ width: 18px; display:inline-grid; place-items:center; }
.pill-title{ flex:1; }
.pill-arrow{ opacity:.85; font-size:16px; }
.pill-sub{
  margin-top:6px;
  font-size:10px;
  color: rgba(240,250,255,.85);
  opacity:.9;
}

/* colored pills (match screenshot blocks) */
.pill-green{ background: linear-gradient(90deg, rgba(34,197,94,.28), rgba(34,197,94,.12)); border-color: rgba(34,197,94,.35); }
.pill-purple{ background: linear-gradient(90deg, rgba(168,85,247,.28), rgba(168,85,247,.12)); border-color: rgba(168,85,247,.35); }
.pill-blue{ background: linear-gradient(90deg, rgba(59,130,246,.28), rgba(59,130,246,.12)); border-color: rgba(59,130,246,.35); }
.pill-orange{ background: linear-gradient(90deg, rgba(249,115,22,.28), rgba(249,115,22,.12)); border-color: rgba(249,115,22,.35); }
.pill-red{ background: linear-gradient(90deg, rgba(239,68,68,.28), rgba(239,68,68,.12)); border-color: rgba(239,68,68,.35); }

/* ===== Updates ===== */
.updates{ margin-top: 14px; }
.updates-head{ background: rgba(249,115,22,.18); }
.updates-list{ padding: 10px 12px 14px; display:flex; flex-direction:column; gap:10px; }
.update-row{
  display:flex;
  gap:10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.08);
}
.update-row:hover{ border-color: rgba(0,229,255,.22); }
.update-badge{
  width: 34px; height: 34px;
  border-radius: 8px;
  display:grid; place-items:center;
  font-size:14px;
  box-shadow: 0 0 12px rgba(0,0,0,.25) inset;
}
.badge-blue{ background: rgba(59,130,246,.22); border: 1px solid rgba(59,130,246,.35); }
.badge-green{ background: rgba(34,197,94,.22); border: 1px solid rgba(34,197,94,.35); }
.badge-purple{ background: rgba(168,85,247,.22); border: 1px solid rgba(168,85,247,.35); }
.badge-orange{ background: rgba(249,115,22,.22); border: 1px solid rgba(249,115,22,.35); }
.badge-yellow{ background: rgba(250,204,21,.18); border: 1px solid rgba(250,204,21,.35); }

.update-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:9px;
  color: rgba(185,199,214,.95);
}
.update-type{ font-weight:900; opacity:.95; }
.update-date{ opacity:.85; }
.update-title{
  margin-top:4px;
  font-size:11px;
  font-weight:900;
  color: rgba(255,255,255,.95);
}

/* ===== Chips row ===== */
.chip-row{
  margin: 14px 0 10px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,229,255,.20);
}
.chip{
  font-size:10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}
.chip-pink{ background: rgba(236,72,153,.14); border-color: rgba(236,72,153,.25); }
.chip-green{ background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.25); }
.chip-orange{ background: rgba(249,115,22,.14); border-color: rgba(249,115,22,.25); }
.chip-blue{ background: rgba(59,130,246,.14); border-color: rgba(59,130,246,.25); }

/* ===== CTA ===== */
.cta{
  margin-top: 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(88,28,135,.55), rgba(59,7,100,.45));
  border: 1px solid rgba(168,85,247,.35);
  box-shadow: 0 0 22px rgba(168,85,247,.18);
}
.cta-inner{
  padding: 22px 16px 24px;
  text-align:center;
}
.cta-ico{ font-size:20px; opacity:.95; }
.cta h3{ margin: 10px 0 4px; font-size: 14px; }
.cta p{ margin: 0 0 12px; font-size: 10px; color: rgba(240,250,255,.9); }
.cta-btn{
  display:inline-block;
  font-size:11px;
  font-weight:900;
  padding: 8px 14px;
  border-radius: 7px;
  background: rgba(168,85,247,.55);
  border: 1px solid rgba(168,85,247,.65);
  box-shadow: 0 0 18px rgba(168,85,247,.20);
}
.cta-btn:hover{ filter: brightness(1.05); }

/* ===== Footer ===== */
.footer{
  margin-top: 22px;
  padding: 26px 0 30px;
  background: linear-gradient(180deg, rgba(0,26,51,.0), rgba(0,26,51,.55));
}
.footer-inner{
  text-align:center;
  color: rgba(185,199,214,.95);
  font-size:10px;
}
.footer-links{ display:flex; justify-content:center; gap:10px; margin-bottom:10px; }
.footer-links a:hover{ text-decoration: underline; }
.footer-note{ margin-top:6px; }
.footer-copy{ margin-top:6px; opacity:.85; }


@media (max-width: 980px){
  .avatar{ height: 240px; }   /* still nice sized */
}
@media (max-width: 520px){
  .avatar{ height: 200px; }   /* smaller phones */
}

