@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Source+Serif+4:wght@500;700&display=swap");

:root {
  --bg: #f5f7fa;
  --bg-soft: #eef1f5;
  --ink: #0f172a;
  --ink-soft: #1f2a44;
  --muted: #56637a;
  --accent: #1b74e4;
  --accent-dark: #145bb3;
  --gold: #f1c66b;
  --ms-blue: #0b2545;
  --panel: #ffffff;
  --panel-2: #f3f5f9;
  --line: rgba(15, 23, 42, 0.1);
  --shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #7399c6;
  min-height: 100vh;
  position: relative;
}

.bg-glow {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background: var(--ms-blue);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-link {
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
  object-fit: cover;
  border-radius: 20px;
}

.brand-mark {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  letter-spacing: 0.6px;
  color: #ffffff;
}

.site-header--hero {
  padding: 36px 48px;
}

.site-header--hero .brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 26px;
}

.site-header--hero .brand-mark {
  font-size: 34px;
}

.brand-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

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

.nav-link {
  font-weight: 500;
  color: #ffffff;
}

.page {
  position: relative;
  z-index: 1;
  padding: 32px 48px 64px;
  color: var(--ink);
}

.page-section,
.feed-layout,
.profile {
  display: grid;
  gap: 32px;
}

.feed-layout {
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  align-items: start;
}

.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  color: var(--ink);
}

.section-title {
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  font-family: "Instrument Serif", serif;
}

.section-subtitle {
  margin: 0 0 12px;
  font-size: 18px;
}

.muted {
  color: #4a556d;
}

.primary-button,
.ghost-button,
.pill-button {
  border-radius: 999px;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(27, 116, 228, 0.25);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.pill-button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 14px;
}

.stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.page h1,
.page h2,
.page h3 {
  color: var(--ink);
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.alert {
  background: rgba(216, 56, 47, 0.12);
  color: #8a1f1a;
  padding: 12px 14px;
  border-radius: 12px;
}

.auth {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.auth-card {
  background: var(--panel);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.auth-aside {
  display: flex;
  justify-content: center;
}

.auth-panel {
  background: var(--panel-2);
  border-radius: 24px;
  padding: 32px;
  max-width: 360px;
  color: var(--ink);
}

.feature-list {
  padding-left: 18px;
  color: var(--muted);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.reel-section {
  padding: 16px 48px 64px;
  display: grid;
  gap: 24px;
}

.reel-header h2 {
  margin: 0 0 6px;
}

.reel-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reel-grid .instagram-media {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.filter-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  gap: 10px;
}

.filter-card h3 {
  margin: 0;
  color: #ffffff;
}

.post-form textarea {
  min-height: 120px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.feed {
  display: grid;
  gap: 20px;
}

.post-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.post-card.compact {
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.author {
  font-weight: 600;
}

.handle {
  color: var(--muted);
  font-size: 14px;
  margin-left: 6px;
}

.timestamp {
  color: var(--muted);
  font-size: 13px;
}

.deal-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  margin: 0 0 6px;
  color: var(--muted);
}

.deal-title {
  margin: 0 0 6px;
}

.top-deal {
  border: 1px solid var(--line);
  background: var(--panel);
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.deal-badge {
  background: var(--panel-2);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
}

.deal-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.metric-label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.metric-value {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.post-content {
  font-size: 16px;
  line-height: 1.5;
}

.post-image img {
  width: 100%;
  border-radius: 14px;
  margin-top: 12px;
  border: 1px solid var(--line);
}

.post-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  align-items: center;
}

.comments {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.comment {
  font-size: 14px;
  color: var(--ink);
}

.comment-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-form {
  display: flex;
  gap: 12px;
}

.comment-form input {
  flex: 1;
}

.people-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.person-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.person-card > div:last-child {
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: end;
}

.profile-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
}

.upload-form {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.upload-label {
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.upload-label input[type="file"] {
  font-size: 12px;
}

.avatar img,
.avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 24px;
}

.avatar-placeholder {
  display: grid;
  place-items: center;
  background: rgba(15, 27, 45, 0.9);
  font-family: "Source Serif 4", serif;
  font-size: 36px;
  color: var(--gold);
}

.site-footer {
  padding: 32px 48px 48px;
  color: #ffffff;
  font-size: 14px;
  background: var(--ms-blue);
  border-top: 1px solid var(--line);
}

.site-header .ghost-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  margin: 0 0 6px;
}

.footer-bottom {
  margin-top: 24px;
}

.reel-section {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

@media (max-width: 640px) {
  .reel-section {
    padding: 0;
  }
}

.reel-header h2 {
  margin: 0 0 6px;
  color: #ffffff;
}

.reel-header .muted {
  color: rgba(255, 255, 255, 0.72);
}

.reel-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reel-grid .instagram-media {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-soft);
}

.empty-state {
  text-align: center;
}


@media (max-width: 960px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .page {
    padding: 24px;
  }

  .feed-layout,
  .auth,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .comment-form {
    flex-direction: column;
  }
}
.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar.sm {
  width: 36px;
  height: 36px;
}

.avatar.sm img,
.avatar.sm .avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
