/* UrbanEdge Studios - UI Styles */

/* CSS Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body.site {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body.site {
    background: #0a0a0a;
    color: #fafafa;
  }
}

/* Top Banner */
.top-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Site Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.7;
}

/* Main Content */
.site {
  flex: 1;
}

/* Hero Section */
.entry {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-copy p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  background: #1a1a1a;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #333;
  transform: translateY(-2px);
  color: #fff;
}

.hero-art {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 400px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.hero-art::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

/* Section Head */
.section-head {
  text-align: center;
  margin: 4rem 0 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section-head h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

/* Card Styles */
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

@media (prefers-color-scheme: dark) {
  .card {
    background: #1a1a1a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #f5f5f5;
}

.placeholder {
  background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-meta {
  padding: 1.5rem;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.05em;
}

/* Site Footer */
.site-footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: auto;
}

.site-footer small {
  opacity: 0.7;
}

/* Transition Orb */
.transition-orb {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-orb.active {
  width: 200vw;
  height: 200vh;
}

/* Responsive Design */
@media (max-width: 768px) {
  .site-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-art {
    height: 250px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem 2rem;
  }
  
  .entry {
    padding: 2rem 1rem;
  }
  
  .section-head {
    padding: 0 1rem;
    margin: 2rem 0;
  }
}

/* Utility Classes */
.js-orb-link {
  cursor: pointer;
}

/* Focus styles for accessibility */
.btn:focus,
.nav a:focus,
.card a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .top-banner {
    display: none;
  }
  
  .card {
    break-inside: avoid;
  }
}

/* custom styles */

:root{
    --bg:#0b0b0c; --fg:#eaeaea; --muted:#9aa0a6; --accent:#e7542e;
    --line: rgba(255,255,255,.06);
    --card:#151517; --card-2:#111114;
    --radius:14px;
    --transition-slow: 700ms cubic-bezier(.22,.61,.36,1);
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--fg)}
  
  .top-banner{
    background: #ffd400; color:#111; text-align:center; padding:10px 12px; font-weight:600;
    border-bottom:1px solid rgba(0,0,0,.15); position:sticky; top:0; z-index:1000;
  }
  
  .site-header{display:flex;align-items:center;gap:16px;padding:14px 18px;border-bottom:1px solid var(--line); position:sticky; top: var(--banner-h,0px); background:linear-gradient(180deg,rgba(11,11,12,.9),rgba(11,11,12,.75)); backdrop-filter:saturate(120%) blur(6px); z-index:900}
  .logo{font-weight:800;letter-spacing:.3px;color:var(--fg);text-decoration:none}
  .nav{margin-left:auto;display:flex;gap:14px}
  .nav a{color:var(--fg);opacity:.86;text-decoration:none}
  .nav a:hover{opacity:1}
  
  .site-footer{border-top:1px solid var(--line); padding:18px; text-align:center; color:var(--muted);}
  
  .entry{transform:scale(.96); transition:transform var(--transition-slow)}
  .released .entry{transform:scale(1)}
  
   .hero-content{display:flex;flex-direction:column;gap:32px;padding:28px 18px 12px}
   .hero-copy{text-align:center;max-width:800px;margin:0 auto}
   .hero-copy h1{margin:0 0 16px;font-size:clamp(32px,5vw,56px);line-height:1.05;font-weight:800}
   .hero-copy p{margin:0 0 24px;color:var(--muted);font-size:1.1rem;line-height:1.6}
  .btn{display:inline-block;background:var(--accent);color:#fff;padding:12px 20px;border-radius:999px;text-decoration:none;font-weight:600;font-size:1rem;transition:color .2s ease, background-color .2s ease, filter .2s ease}
   .hero-image{width:100%;max-width:1200px;margin:0 auto}
   .hero-banner{width:100%;height:auto;border-radius:var(--radius);object-fit:cover;box-shadow:0 8px 32px rgba(0,0,0,0.3)}
  
  .section-head{padding:8px 18px 0}
  .section-head h2{margin:.2rem 0}
  .section-head p{margin:0;color:var(--muted)}
  
  .grid{
    padding:12px 18px 28px;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:12px;
  }
  
  .card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
  .card a{display:block;color:inherit;text-decoration:none}
  .card-img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;background:#0e0e10}
  .card-img.placeholder{background:
    linear-gradient(135deg, rgba(255,214,0,.12), rgba(231,84,46,.12));
  }
  .card-img.skeleton{background:linear-gradient(90deg,#141416, #1b1b1f, #141416); background-size:200% 100%; animation:shimmer 1.2s infinite}
  @keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
  .card-meta{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-top:1px solid var(--line)}
  .card-title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .card-tag{font-size:12px;color:var(--muted)}
  
  .card:hover{transform:translateY(-2px);transition:transform .2s ease}
  
  .transition-orb{position:fixed;inset:0;display:grid;place-items:center;z-index:9999;opacity:0;pointer-events:none}
  .transition-orb::before{
    content:""; width:120px; height:120px; border-radius:50%;
    background:#333; transform: scale(.001);
    transition: transform 1500ms cubic-bezier(.22,.61,.36,1), background-color 1500ms linear;
  }
  .transition-orb.is-active{opacity:1}
  .transition-orb.is-growing::before{ transform: scale(120); background:#000; }
  
  .page-veil{ position:fixed; inset:0; background:#000; z-index:9999; opacity:1; transition:opacity .5s ease;}
  .page-veil.is-hidden{ opacity:0; }
  @media (prefers-reduced-motion: reduce){
    .entry{transform:none}
    .transition-orb::before{ transition:none; transform:scale(120); }
    .page-veil{ transition:none; opacity:0; }
  }
  

  /* Account area styles (shared across account pages) */
  .acc-wrap {
    --c-accent:#e7542e; --c-brass:#e6b17a; --c-card: rgba(255,255,255,.06); --c-border: rgba(255,255,255,.12);
    background: radial-gradient(1200px 600px at 0% 0%, rgba(198,116,59,.08), transparent 60%),
                radial-gradient(900px 600px at 100% 100%, rgba(20,94,75,.10), transparent 55%);
  }
  .acc-card {
    background: linear-gradient(180deg, var(--c-card), rgba(255,255,255,.03));
    border:1px solid var(--c-border); border-radius:20px; backdrop-filter: blur(8px);
  }
  .brand-chip { width:36px;height:36px;border-radius:6px;background:var(--c-accent);box-shadow:0 8px 22px rgba(231,84,46,.35); }
  .btn-ue { background: linear-gradient(90deg, var(--c-accent), var(--c-brass), var(--c-accent)); color:#111; font-weight:800; border:none; transition:color .2s ease, filter .2s ease }
  .btn-ue:hover { filter:brightness(1.05); color:#fff; }
  .btn-ue:hover .bi { color: inherit; }
  .stat { font-size:2rem; font-weight:800; }
  .mini-pill { font-size:.75rem; padding:.25rem .5rem; border-radius:999px; border:1px solid var(--c-border); }
  .border-white-10 { border-color: rgba(255,255,255,.10) !important; }

  /* Light mode accessibility adjustments (dark text on light backgrounds) */
  @media (prefers-color-scheme: light) {
    .acc-wrap { --c-card:#ffffff; --c-border: rgba(0,0,0,.12); }
    .acc-card { background: linear-gradient(180deg, #ffffff, #f7f7f7); border-color: rgba(0,0,0,.12); }
    .acc-wrap .text-white:not(.table-dark .text-white) { color:#111 !important; }
    .acc-wrap .text-white-50:not(.table-dark .text-white-50) { color:#555 !important; }
    .acc-wrap .border-white-10 { border-color: rgba(0,0,0,.10) !important; }
    .acc-wrap .btn-outline-light { color:#111 !important; border-color:#9ca3af !important; background:transparent; }
    .acc-wrap .btn-outline-light:hover { background:#111 !important; color:#fff !important; border-color:#111 !important; }
    .acc-wrap .list-group-item { color:#111; border-color: rgba(0,0,0,.08) !important; background-color: transparent; }
    .acc-wrap .list-group-item:hover { background:#f6f6f6; }
    .acc-wrap .mini-pill { background:#f3f4f6; color:#111; border-color: rgba(0,0,0,.12); }
    .acc-wrap hr.border-white-10 { border-top-color: rgba(0,0,0,.10) !important; }
  }

  /* Tabs (account filters) - global */
  .acc-tabs {
    display:flex; gap:8px; align-items:center; border-bottom:1px solid var(--line);
    flex-wrap: wrap; justify-content: space-between;
  }
  .acc-tab {
    display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; text-decoration:none;
    color:var(--fg); opacity:.86; border:1px solid transparent; transition:all .2s ease; position:relative;
  }
  .acc-tab:link, .acc-tab:visited { color: inherit !important; text-decoration: none; }
  .acc-tab:hover { opacity:1; background: var(--card); border-color: var(--line); }
  .acc-tab.is-active { background:var(--card); border-color:var(--line); opacity:1; }
  .acc-tab.is-active::after{ content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:2px; background:var(--c-accent); border-radius:2px; }

  @media (prefers-color-scheme: light) {
    .acc-tabs { border-bottom-color: rgba(0,0,0,.10); }
    .acc-tab { color:#111; }
    .acc-tab:link, .acc-tab:visited { color:#111 !important; }
    .acc-tab:hover { background:#f7f7f7; border-color: rgba(0,0,0,.10); }
    .acc-tab.is-active { background:#fff; border-color: rgba(0,0,0,.12); }
  }

/* Collections listing */
.collections-list .collection-card {
  background: var(--card-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.collections-list .collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.collection-card__media {
  position: relative;
}
.collection-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,212,0,.95);
  color: #111;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: 999px;
}
.collection-card__body {
  background: linear-gradient(180deg, rgba(17,17,20,.92), rgba(17,17,20,.75));
  min-height: 220px;
}
.collection-card.empty {
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: var(--radius);
}

/* Collection show */
.collection-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0e0f12;
}
.collection-description {
  backdrop-filter: blur(12px);
}
.collection-builder {
  backdrop-filter: blur(12px);
}
.bundle-item {
  background: rgba(255,255,255,.05);
  transition: background .2s ease, border-color .2s ease;
}
.bundle-item:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
}
.bundle-item input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
}
.collection-summary {
  background: rgba(255,255,255,.04);
}
@media (max-width: 991px) {
  .collection-builder {
    position: static !important;
  }
}

/* Sticky collection summary bar */
.collection-sticky-bar {
  position: sticky;
  top: var(--sticky-offset, 80px);
  z-index: 800;
  transition: all 0.3s ease;
}

/* Compact sticky mode */
.collection-sticky-bar.compact {
  position: fixed;
  top: var(--sticky-offset, 80px);
  right: 20px;
  width: 300px;
  max-width: 90vw;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.collection-sticky-bar.compact #collection-total {
  margin: 10px 0;
  font-size: 0.9rem;
}

.collection-sticky-bar.compact #collection-coin-total {
  font-size: 1.1rem;
  font-weight: bold;
}

.collection-sticky-bar.compact #collection-savings {
  font-size: 0.8rem;
}

.collection-sticky-bar.compact #buy-collection {
  font-size: 0.85rem;
  padding: 6px 12px;
}

/* Minimize button */
.minimize-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-top: 8px;
  width: 100%;
}

.minimize-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255,255,255,0.35); }

.collection-sticky-bar .minimized-content { display: none; }

.collection-sticky-bar.minimized {
  width: 260px;
  padding: 10px;
}

.collection-sticky-bar.minimized #collection-total,
.collection-sticky-bar.minimized #collection-savings { display: none; }

.collection-sticky-bar.minimized .minimized-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.collection-sticky-bar.minimized #buy-collection { display: none; }
.collection-sticky-bar.minimized #buy-collection-mini { display: inline-block; }

.mini-total { color: #fff; font-size: 0.9rem; }

.minimize-link { display: block; text-align: center; color: rgba(255,255,255,0.6); font-size: 12px; margin-top: 6px; text-decoration: none; }
.minimize-link:hover { text-decoration: underline; }

/* Light mode styling for collection sticky bar */
@media (prefers-color-scheme: light) {
  .collection-sticky-bar {
    background: rgba(248, 249, 250, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
  }
  .minimize-btn { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.15); color: #222; }
  .mini-total { color: #333; }
  .minimize-link { color: #666; }
  
  .collection-sticky-bar h3 {
    color: #333 !important;
  }
  
  .collection-sticky-bar span {
    color: #333 !important;
  }
}

/* Adaptive color for paragraph headings like <p class="h5 mb-3"> */
p.h5 { color: #fff; }
@media (prefers-color-scheme: light) { p.h5 { color: #222; } }