/* Żyj Świadomie — globalne style UI (poza Tailwind CDN) */

:root {
  --sidebar-width: 19rem;
}

.app-sidebar {
  width: var(--sidebar-width);
  overflow: hidden;
  border-right: 1px solid rgba(71, 89, 70, 0.08);
  background:
    radial-gradient(circle at 15% 4%, rgba(238, 131, 178, 0.14), transparent 22%),
    radial-gradient(circle at 92% 22%, rgba(169, 183, 232, 0.18), transparent 27%),
    linear-gradient(180deg, #fffaf4 0%, #fbf7ef 54%, #f3eee4 100%);
  box-shadow: 12px 0 40px rgba(56, 67, 53, 0.045);
}

.app-sidebar::after {
  content: '';
  position: absolute;
  right: -5.5rem;
  bottom: 8rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid rgba(238, 131, 178, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.app-sidebar > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 1280px) {
  .app-content {
    margin-left: var(--sidebar-width);
  }
}

html {
  font-size: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
}

/* Start dashboard */
.start-hero {
  height: clamp(31rem, 68vh, 36rem);
}

.start-hero__topbar {
  max-width: calc(100% - 2rem);
}

.start-hero__tip {
  display: none;
}

.start-dashboard__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
  margin-top: -2.5rem;
}

.start-dashboard__primary-card {
  min-width: 0;
}

.start-dashboard__quick-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .start-dashboard__quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .start-dashboard__cards {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .start-dashboard__quick-links {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1680px) {
  .start-dashboard__cards {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr) minmax(16rem, 0.94fr);
    margin-top: -3.5rem;
  }

  .start-dashboard__quick-links {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
    align-self: start;
  }

  .start-hero__tip {
    display: block;
  }
}

@media (max-width: 639px) {
  .start-hero {
    height: 45rem;
  }

  .start-hero::after {
    content: '';
    position: absolute;
    inset: 35% 0 0;
    z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(255, 247, 239, 0) 0%,
      rgba(255, 247, 239, 0.32) 28%,
      rgba(255, 247, 239, 0.76) 68%,
      rgba(255, 247, 239, 0.94) 100%
    );
    pointer-events: none;
  }

  .start-hero__image {
    object-position: 68% center;
  }

  .start-hero__content {
    padding-top: 17.25rem !important;
  }

  .start-hero__content h1 {
    max-width: 20rem;
  }

  .start-hero__content p {
    max-width: 21rem;
  }

  .start-hero__content .btn-hero-cta {
    gap: 1.35rem;
    padding: 0.75rem 0.8rem 0.75rem 1.25rem;
    font-size: 0.92rem;
  }

  .start-hero__content .btn-hero-cta > span {
    width: 1.85rem;
    height: 1.85rem;
  }

  .start-dashboard__cards {
    margin-top: -1.75rem;
  }
}

@media (max-height: 760px) and (min-width: 640px) {
  .start-hero {
    height: 31rem;
  }

  .start-dashboard__cards {
    margin-top: -1.5rem;
  }
}

[x-cloak] {
  display: none !important;
}

/* Nawigacja boczna */
.sidebar-brand {
  display: flex;
  min-height: 6.15rem;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 210, 229, 0.24), transparent 27%),
    linear-gradient(135deg, #27492f 0%, #355d3d 100%);
  box-shadow: 0 10px 28px rgba(39, 73, 47, 0.16);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 32px rgba(39, 73, 47, 0.2);
}

.sidebar-brand__logo {
  width: 100%;
  max-width: 13rem;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.sidebar-brand__caption {
  margin-top: 0.3rem;
  padding-left: 0.2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.055em;
}

.sidebar-section-label {
  margin: 0 0.6rem 0.55rem;
  color: #9a968d;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: flex;
  min-height: 3.35rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: #3a4d44;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.nav-link:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(75, 91, 72, 0.07);
  color: #27492f;
  transform: translateX(2px);
}
.nav-link.is-active {
  background: linear-gradient(110deg, rgba(222, 237, 217, 0.95), rgba(240, 245, 234, 0.9));
  border-color: rgba(78, 119, 81, 0.13);
  color: #27492f;
  font-weight: 700;
  box-shadow: 0 7px 20px rgba(67, 92, 65, 0.09);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #ee83b2;
  box-shadow: 0 0 0 4px rgba(238, 131, 178, 0.13);
}

.nav-link.is-disabled {
  color: #7f8982;
}

.nav-link__icon {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.72rem;
}

.nav-link__icon .nav-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.nav-link__icon--green { color: #477653; background: #e2efe0; }
.nav-link__icon--amber { color: #d58b26; background: #fff0d3; }
.nav-link__icon--pink { color: #d96a9a; background: #fbe5ee; }
.nav-link__icon--violet { color: #7b6bc4; background: #ebe7f8; }
.nav-link__icon--rose { color: #cb6f82; background: #f9e8e9; }
.nav-link__icon--sky { color: #5894b8; background: #e3f0f6; }
.nav-link__icon--yellow { color: #bf9630; background: #f8efd2; }

.nav-link__status {
  margin-left: auto;
  padding: 0.16rem 0.42rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.62);
  color: #aaa49a;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}

.sidebar-utility {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.8rem;
  padding: 0.55rem;
  border: 1px solid rgba(81, 94, 77, 0.07);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 8px 24px rgba(67, 72, 61, 0.045);
}

.sidebar-utility__link {
  min-height: 3.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.48rem 0.65rem;
  border-radius: 0.85rem;
  color: #68736d;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-utility__link:hover,
.sidebar-utility__link.is-active {
  background: rgba(230, 239, 226, 0.8);
  color: #27492f;
}

.sidebar-utility__link .nav-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #718079;
}

.sidebar-utility__link span,
.sidebar-utility__link b,
.sidebar-utility__link small {
  display: block;
}

.sidebar-utility__link b {
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.2;
}

.sidebar-utility__link small {
  margin-top: 0.15rem;
  color: #8a918d;
  font-size: 0.72rem;
}

/* SVG ikony nawigacji (styl Lucide) */
.nav-icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  display: block;
  stroke-width: 2;
}
.nav-icon--sm {
  width: 0.9rem;
  height: 0.9rem;
}
.nav-icon--card {
  width: 1.6rem;
  height: 1.6rem;
}

/* Ikony w górnej belce (hero / topbar) */
.topbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  color: #5c564e;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.topbar-icon-btn:hover {
  background: #f0ebe3;
  color: #4a4438;
}

/* Ikony nagłówków kart (kolorowe) */
.section-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-icon__svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.section-icon--amber { background: #fff4d6; color: #e8a820; }
.section-icon--pink { background: #fce8f0; color: #e06a9a; }
.section-icon--violet { background: #ede8f8; color: #7b6bc4; }
.section-icon--rose { background: #fce8ee; color: #d96a8a; }

/* Ikony chipów „Propozycje dla Ciebie” */
.chip-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-icon__svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.chip-icon--sky { background: #e8f2fc; color: #5b9fd4; }
.chip-icon--violet { background: #ede8f8; color: #8b7bc8; }
.chip-icon--amber { background: #fff4d6; color: #e8a820; }
.chip-icon--pink { background: #fce8f0; color: #e06a9a; }
.chip-icon--teal { background: #e0f5f2; color: #3ba89c; }

/* Reakcje emoji na cytatach */
.quote-reaction-add,
.quote-reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(120, 110, 100, 0.18);
  background: rgba(255, 255, 255, 0.75);
  color: #7a7068;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.quote-reaction-add:hover,
.quote-reaction-pill:hover {
  background: #fff;
  border-color: rgba(120, 110, 100, 0.28);
  color: #4a4640;
}
.quote-reaction-add--active,
.quote-reaction-pill.is-active {
  background: #fce8f0;
  border-color: rgba(217, 106, 154, 0.35);
  color: #b85a7e;
}
.quote-reactions-picker {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(120, 110, 100, 0.15);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(40, 35, 30, 0.12);
}
.quote-reactions-picker__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.quote-reactions-picker__btn:hover {
  background: #f8f0f3;
  transform: scale(1.12);
}
.quote-reactions-picker__btn.is-selected {
  background: #fce8f0;
  box-shadow: inset 0 0 0 2px rgba(217, 106, 154, 0.35);
}

/* Przycisk CTA w hero — lekko jaśniejszy od greenDeep, w palecie brand (#27492F) */
.btn-hero-cta {
  background: linear-gradient(135deg, #243f2c 0%, #27492f 50%, #2f5539 100%);
  border-radius: 9999px;
  box-shadow: 0 3px 10px rgba(30, 58, 40, 0.2);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.btn-hero-cta:hover {
  opacity: 0.95;
  box-shadow: 0 4px 12px rgba(30, 58, 40, 0.24);
}
.topbar-icon-btn__svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
}

/* Placeholdery assetów */
.aslot {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ece7dd;
  border: 1.3px dashed rgba(96, 104, 90, 0.42);
  color: #6a7160;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.5rem;
  line-height: 1.04;
  letter-spacing: 0.01em;
  padding: 1px;
  border-radius: 0.55rem;
  flex: none;
}
.aslot--circle {
  border-radius: 9999px;
}

.cover {
  position: relative;
  overflow: hidden;
  border: 1.4px dashed rgba(110, 116, 100, 0.42);
}
.cover__t {
  position: absolute;
  z-index: 5;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.66rem;
  line-height: 1.22;
  color: #5b6457;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(96, 104, 90, 0.5);
  border-radius: 0.4rem;
  padding: 0.24rem 0.44rem;
  max-width: 12rem;
}
.cover__t.tl { left: 0.55rem; top: 0.55rem; }
.cover__t.tr { right: 0.55rem; top: 0.55rem; }
.cover__t.bl { left: 0.55rem; bottom: 0.55rem; }

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(39, 73, 47, 0.25);
}
