/* Creator Empires — Inner Circle Portal */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Raleway:wght@400;500;600;700;800&display=swap');

:root {
  --purple: #5705aa;
  --purple-deep: #4a0490;
  --purple-dark: #2f025a;
  --purple-light: #6405bd;
  --yellow: #eeee22;
  --slate: #333d4f;
  --footer-bg: #202632;
  --ink: #363636;
  --white: #ffffff;
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 17px; font-weight: 500; line-height: 1.6; color: var(--ink); background: #f5f4f9; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-heading); text-transform: uppercase; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 18px; }

/* Header */
.site-header { background: var(--purple); padding: 14px 0; position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-logo img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { font-weight: 700; text-transform: uppercase; font-size: 14px; color: var(--yellow); text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: var(--white); }

/* Hero strip */
.page-hero { background: linear-gradient(170deg, #5606a8, #38365b); color: var(--white); padding: 44px 0; margin-bottom: 36px; }
.page-hero p { max-width: 720px; opacity: .9; }
.page-hero .kicker { color: var(--yellow); font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

/* Dashboard cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.tile { background: var(--white); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(47,2,90,.08); transition: transform .15s ease, box-shadow .15s ease; display: block; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(47,2,90,.16); }
.tile .emoji { font-size: 34px; margin-bottom: 12px; display: block; }
.tile h3 { font-family: var(--font-body); font-weight: 800; text-transform: none; font-size: 19px; margin-bottom: 8px; color: var(--purple-dark); }
.tile p { font-size: 14.5px; }
.tile .count { display: inline-block; margin-top: 12px; background: var(--yellow); color: var(--purple-dark); font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; }

/* Members */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.person-card { background: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: 0 2px 10px rgba(47,2,90,.08); }
.person-card img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; border: 3px solid var(--yellow); }
.person-card strong { display: block; font-weight: 800; font-size: 16px; }
.person-card span { font-size: 13.5px; color: #666; display: block; margin-bottom: 8px; }
.person-card .platform { display: inline-block; background: #f0ecf8; color: var(--purple); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; }

/* Agenda */
.agenda-list { list-style: none; max-width: 760px; }
.agenda-item { background: var(--white); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; display: flex; gap: 20px; align-items: center; box-shadow: 0 2px 10px rgba(47,2,90,.08); }
.agenda-date { min-width: 86px; text-align: center; background: var(--purple); color: var(--white); border-radius: 10px; padding: 10px 8px; }
.agenda-date .d { font-family: var(--font-heading); font-size: 22px; display: block; color: var(--yellow); }
.agenda-date .m { font-size: 12px; text-transform: uppercase; font-weight: 700; }
.agenda-item h3 { font-family: var(--font-body); text-transform: none; font-size: 17px; font-weight: 800; }
.agenda-item p { font-size: 14px; color: #555; margin: 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-left: 8px; }
.badge.event { background: var(--yellow); color: var(--purple-dark); }
.badge.meeting { background: #e7ddf6; color: var(--purple); }

/* Empty state */
.empty { background: var(--white); border: 2px dashed #cfc4e6; border-radius: var(--radius); padding: 44px 28px; text-align: center; color: #666; max-width: 760px; }
.empty h3 { font-family: var(--font-body); text-transform: none; font-weight: 800; color: var(--purple-dark); margin-bottom: 8px; }
.empty p { font-size: 14.5px; }

/* Chat */
.chat-wrap { max-width: 760px; background: var(--white); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(47,2,90,.08); overflow: hidden; display: flex; flex-direction: column; height: 60vh; min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.msg.bot { background: #f0ecf8; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--purple); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input { display: flex; border-top: 1px solid #eee; }
.chat-input input { flex: 1; border: 0; padding: 16px 18px; font: inherit; outline: none; }
.chat-input button { border: 0; background: var(--yellow); color: var(--purple-dark); font-weight: 800; text-transform: uppercase; padding: 0 26px; cursor: pointer; font-family: var(--font-body); }

/* Footer */
.site-footer { background: var(--footer-bg); margin-top: 60px; padding: 28px 0; text-align: center; }
.site-footer img { height: 34px; margin: 0 auto; }

/* Password gate */
#gate { position: fixed; inset: 0; background: linear-gradient(170deg, #5606a8, #38365b); z-index: 999; display: flex; align-items: center; justify-content: center; }
#gate .box { background: var(--white); border-radius: 16px; padding: 40px; width: min(420px, 90vw); text-align: center; }
#gate img { height: 38px; margin: 0 auto 18px; }
#gate h2 { font-size: 20px; color: var(--purple-dark); }
#gate p { font-size: 14px; color: #666; margin: 8px 0 18px; }
#gate input { width: 100%; padding: 13px 16px; border: 2px solid #ddd; border-radius: 10px; font: inherit; text-align: center; }
#gate button { margin-top: 14px; width: 100%; padding: 13px; border: 0; border-radius: 10px; background: var(--purple); color: var(--yellow); font-weight: 800; text-transform: uppercase; font-family: var(--font-body); cursor: pointer; font-size: 15px; }
#gate .err { color: #c0392b; font-size: 13px; margin-top: 10px; display: none; }

main.container { padding-bottom: 20px; }
.section-note { font-size: 13.5px; color: #777; margin-top: 26px; max-width: 760px; }

/* Inline links in agenda items */
.agenda-item p a { color: var(--purple); font-weight: 700; }
