/* Reusable cute theme skin layered on top of Bootstrap. */
.theme-cute {
  --bg-0: #ffffff;
  --bg-1: #fffdfd;
  --card-bg: rgba(255, 255, 255, 0.88);
  --text-0: #4f345b;
  --text-1: #6f5a79;
  --accent-0: #f287cb;
  --accent-1: #c58dff;
  --shadow-soft: 0 16px 34px rgba(136, 104, 154, 0.1), 0 3px 10px rgba(136, 104, 154, 0.06);
  --border-soft: 1px solid rgba(233, 212, 244, 0.8);
  position: relative;
  margin-top: 12px;
  padding: 0 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  overflow: hidden;
}

.theme-cute::before,
.theme-cute::after {
  position: absolute;
  font-size: 14px;
  color: rgba(196, 149, 226, 0.38);
  letter-spacing: 18px;
  pointer-events: none;
}

.theme-cute::before {
  content: "✦ ✧ ✦";
  top: 110px;
  left: 9%;
  transform: rotate(-8deg);
}

.theme-cute::after {
  content: "✧ ✦";
  bottom: 140px;
  right: 8%;
  transform: rotate(9deg);
}

.theme-cute__noise,
.theme-cute__sparkles,
.theme-cute__blob {
  position: absolute;
  pointer-events: none;
}

.theme-cute__noise {
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 15% 20%, rgba(161, 124, 180, 0.2) 1px, transparent 1px);
  background-size: 10px 10px;
}

.theme-cute__sparkles {
  inset: 0;
  opacity: 0.52;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(242, 135, 203, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 16% 66%, rgba(197, 141, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 40%, rgba(242, 135, 203, 0.18) 0 1.8px, transparent 3px),
    radial-gradient(circle at 43% 12%, rgba(197, 141, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 72%, rgba(242, 135, 203, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 67% 28%, rgba(197, 141, 255, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 52%, rgba(242, 135, 203, 0.16) 0 1.8px, transparent 3px),
    radial-gradient(circle at 84% 20%, rgba(197, 141, 255, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 90% 82%, rgba(242, 135, 203, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 86%, rgba(197, 141, 255, 0.16) 0 1.8px, transparent 3px);
}

.theme-cute__blob {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.22;
}

.theme-cute__blob--left {
  left: -140px;
  top: 130px;
  background: #ffd9ee;
}

.theme-cute__blob--right {
  right: -120px;
  bottom: 70px;
  background: #e8ddff;
}

.theme-cute__inner {
  position: relative;
  z-index: 2;
  padding-top: 1.25rem;
}

.theme-card {
  border-radius: 24px;
  border: var(--border-soft);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  color: var(--text-0);
}

.community-shop-detail-modal {
  border: var(--border-soft);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-0);
  box-shadow: var(--shadow-soft);
}

.community-shop-detail-modal .modal-header,
.community-shop-detail-modal .modal-footer {
  border-color: rgba(233, 212, 244, 0.8);
}

.community-shop-detail-modal a:not(.btn) {
  color: #8d3e8f;
  font-weight: 700;
}

.community-shop-detail-modal .badge.text-bg-light {
  border: 1px solid rgba(242, 135, 203, 0.26);
  background-color: rgba(255, 244, 252, 0.95) !important;
  color: var(--text-0) !important;
}

.community-shop-detail-modal__image {
  border: 1px solid rgba(233, 212, 244, 0.8);
}



.theme-hero,
.theme-feed-item,
.theme-sidebar {
  background: linear-gradient(145deg, rgba(255, 242, 251, 0.94) 0%, rgba(255, 249, 253, 0.92) 52%, rgba(255, 255, 255, 0.95) 100%);
}

.theme-chip,
.theme-link {
  border-radius: 16px;
  border: 1px solid rgba(242, 135, 203, 0.26);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-0);
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.theme-chip:focus-visible,
.theme-link:focus-visible,
.theme-sidebar a:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

.theme-hero {
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.theme-hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.theme-hero__littlecoins {
  border-radius: 14px;
  border: 1px solid rgba(242, 135, 203, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-0);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem;
}

.theme-hero__littlecoins-label {
  color: var(--text-1);
  font-size: 0.86rem;
}

.theme-hero h2 {
  margin-bottom: 0.45rem;
}

.theme-hero p {
  color: var(--text-1);
  margin: 0;
}

.theme-hero__stats {
  display: flex;
  justify-content: flex-end;
}

.theme-hero__stat,
.theme-hero__message-btn {
  border-radius: 14px;
  border: 1px solid rgba(242, 135, 203, 0.26);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-0);
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
}

.theme-hero__message-btn {
  justify-content: center;
}

.theme-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.theme-module-grid--with-vzkaznik {
  align-items: start;
}

.theme-module {
  padding: 1rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 239, 249, 0.96) 0%, rgba(255, 246, 252, 0.92) 55%, rgba(255, 255, 255, 0.95) 100%);
}

.theme-module::after {
  content: "✦✧";
  position: absolute;
  right: 12px;
  top: 12px;
  color: rgba(197, 141, 255, 0.4);
}

.theme-module__icon {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.theme-module h3 {
  font-size: 1.35rem;
}

.theme-module p {
  color: var(--text-1);
  min-height: 44px;
}

.theme-module__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
}

.theme-badge {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(242, 135, 203, 0.16), rgba(197, 141, 255, 0.18));
  color: var(--text-0);
  padding: 0.3rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.theme-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1rem;
}

.theme-section-title {
  margin: 0.4rem 0 0.85rem;
  text-align: center;
}

.theme-feed-item {
  padding: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.theme-feed-item p,
.theme-inline-list {
  color: var(--text-1);
}

.theme-feed-item__content {
  min-width: 0;
}

.theme-feed-topic {
  margin: 0.45rem 0 0;
}

.theme-feed-author {
  color: var(--text-1);
  display: flex;
  align-items: center;
  margin-top: 0.12rem;
  padding-left: 0.8rem;
}

.theme-feed-author a {
  color: #8d3e8f;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.theme-vzkaznik {
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(145deg, rgba(255, 242, 251, 0.96) 0%, rgba(255, 249, 253, 0.94) 58%, rgba(255, 255, 255, 0.96) 100%);
}

.theme-vzkaznik--module-grid {
  align-self: stretch;
  grid-column: 3 / -1;
  grid-row: 1 / span 3;
  margin-bottom: 0;
  min-height: 100%;
}

.theme-vzkaznik__header,
.theme-vzkaznik__meta,
.theme-vzkaznik__compose-head,
.theme-vzkaznik__actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.theme-vzkaznik__header h3,
.theme-vzkaznik__header p,
.theme-vzkaznik__message p,
.theme-vzkaznik__status {
  margin: 0;
}

.theme-vzkaznik__header p,
.theme-vzkaznik__meta time,
.theme-vzkaznik__empty,
.theme-vzkaznik__notice {
  color: var(--text-1);
}

.theme-vzkaznik__feed {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.theme-vzkaznik__message {
  border: 1px solid rgba(242, 135, 203, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.8rem;
  overflow-wrap: anywhere;
}

.theme-vzkaznik__meta {
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.theme-vzkaznik__meta a {
  color: #8d3e8f;
  font-weight: 700;
}

.theme-vzkaznik__message p {
  color: var(--text-0);
  white-space: pre-line;
}

.theme-vzkaznik__reaction {
  border: 1px solid rgba(242, 135, 203, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  margin-top: 0.65rem;
  padding: 0.2rem 0.65rem;
}

.theme-vzkaznik__reaction.reacted {
  border-color: rgba(197, 141, 255, 0.56);
  color: var(--text-0);
  font-weight: 700;
}

.theme-vzkaznik__compose {
  border-top: 1px solid rgba(242, 135, 203, 0.2);
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.theme-vzkaznik__compose label {
  font-weight: 700;
}

.theme-vzkaznik__compose textarea {
  min-height: 92px;
  resize: vertical;
}

.theme-vzkaznik__rules {
  border: 0;
  background: transparent;
  color: #8d3e8f;
  font-size: 0.92rem;
  padding: 0;
  position: relative;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.theme-vzkaznik__rules:focus-visible,
.theme-vzkaznik__reaction:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

.theme-vzkaznik__tooltip {
  border: var(--border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
  color: var(--text-0);
  display: grid;
  gap: 0.18rem;
  left: 50%;
  min-width: 132px;
  opacity: 0;
  padding: 0.55rem 0.7rem;
  pointer-events: none;
  position: absolute;
  text-align: left;
  top: calc(100% + 0.45rem);
  transform: translate(-50%, -4px);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
  z-index: 4;
}

.theme-vzkaznik__rules:hover .theme-vzkaznik__tooltip,
.theme-vzkaznik__rules:focus .theme-vzkaznik__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.theme-vzkaznik__actions {
  align-items: center;
  flex-wrap: wrap;
}

.theme-vzkaznik__status {
  color: var(--text-1);
  flex: 1 1 180px;
  min-height: 1.35rem;
}

.theme-vzkaznik__status.is-error {
  color: #b42354;
}

.theme-vzkaznik__status.is-success {
  color: #28734b;
}

.theme-vzkaznik__empty,
.theme-vzkaznik__notice {
  margin: 0.85rem 0 0;
}

.theme-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 0.4rem 0;
  padding: 0;
}

.theme-inline-list li + li {
  margin-top: 0;
}

.theme-sidebar__more {
  border: 1px solid rgba(242, 135, 203, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-0);
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  margin: 0 0 0.6rem;
}

.theme-sidebar {
  padding: 1rem;
  align-self: start;
}

.theme-sidebar h3,
.theme-sidebar h4 {
  margin-top: 0;
}

.theme-sidebar ul {
  list-style: none;
  margin: 0 0 0.6rem;
  padding: 0;
}

.theme-sidebar li + li {
  margin-top: 0;
}

.theme-sidebar a,
.theme-link {
  color: #8d3e8f;
}

.theme-todo {
  color: var(--text-1);
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

@media (max-width: 1199px) {
  .theme-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-vzkaznik--module-grid {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }

  .theme-hero {
    gap: 0.75rem;
  }

  .theme-hero__stats {
    justify-content: stretch;
  }

  .theme-hero__message-btn {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .theme-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .theme-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .theme-hero__topbar {
    flex-direction: column;
  }

  .theme-hero__stats {
    justify-content: stretch;
  }

  .theme-module-grid {
    grid-template-columns: 1fr;
  }

  .theme-feed-item {
    flex-direction: column;
  }

  .theme-vzkaznik__header,
  .theme-vzkaznik__compose-head {
    flex-direction: column;
  }

  .theme-vzkaznik__tooltip {
    left: 0;
    transform: translateY(-4px);
  }

  .theme-vzkaznik__rules:hover .theme-vzkaznik__tooltip,
  .theme-vzkaznik__rules:focus .theme-vzkaznik__tooltip {
    transform: translateY(0);
  }
}


.theme-cute-footer {
  background: linear-gradient(180deg, #ffffff 0%, #fffdfd 100%) !important;
  min-height: 220px;
  height: auto;
}

.theme-cute-footer,
.theme-cute-footer #pozadi,
.theme-cute-footer .container,
.theme-cute-footer .row,
.theme-cute-footer .col {
  background: transparent !important;
}

[data-bs-theme="dark"] .theme-cute {
  --bg-0: #0f1320;
  --bg-1: #161b2c;
  --card-bg: rgba(24, 30, 49, 0.88);
  --text-0: #edf1ff;
  --text-1: #b2bdd8;
  --accent-0: #ff8ecf;
  --accent-1: #b896ff;
  --shadow-soft: 0 18px 42px rgba(3, 6, 14, 0.6), 0 4px 14px rgba(5, 9, 20, 0.35);
  --border-soft: 1px solid rgba(159, 132, 215, 0.35);
  background: radial-gradient(circle at 20% -10%, rgba(160, 106, 214, 0.22), transparent 45%),
    radial-gradient(circle at 85% 8%, rgba(255, 110, 189, 0.16), transparent 40%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

[data-bs-theme="dark"] .theme-cute::before,
[data-bs-theme="dark"] .theme-cute::after {
  color: rgba(255, 185, 233, 0.35);
}

[data-bs-theme="dark"] .theme-cute__noise {
  opacity: 0.12;
  background-image: radial-gradient(circle at 15% 20%, rgba(255, 184, 228, 0.25) 1px, transparent 1px);
}

[data-bs-theme="dark"] .theme-cute__sparkles {
  opacity: 0.38;
}

[data-bs-theme="dark"] .theme-cute__blob--left {
  background: #702f75;
}

[data-bs-theme="dark"] .theme-cute__blob--right {
  background: #3d3e89;
}

[data-bs-theme="dark"] .theme-hero,
[data-bs-theme="dark"] .theme-feed-item,
[data-bs-theme="dark"] .theme-sidebar,
[data-bs-theme="dark"] .theme-module,
[data-bs-theme="dark"] .theme-vzkaznik {
  background: linear-gradient(145deg, rgba(34, 41, 67, 0.92) 0%, rgba(27, 34, 56, 0.94) 60%, rgba(21, 27, 46, 0.95) 100%);
}

[data-bs-theme="dark"] .community-shop-detail-modal {
  border: 1px solid rgba(195, 151, 255, 0.38);
  background: linear-gradient(145deg, rgba(34, 41, 67, 0.98) 0%, rgba(24, 31, 52, 0.98) 60%, rgba(16, 22, 38, 0.99) 100%);
  color: var(--text-0);
}

[data-bs-theme="dark"] .community-shop-detail-modal .modal-header,
[data-bs-theme="dark"] .community-shop-detail-modal .modal-footer {
  border-color: rgba(195, 151, 255, 0.28);
}

[data-bs-theme="dark"] .community-shop-detail-modal .text-muted {
  color: var(--text-1) !important;
}

[data-bs-theme="dark"] .community-shop-detail-modal a:not(.btn) {
  color: #f2c8ff;
}

[data-bs-theme="dark"] .community-shop-detail-modal .badge.text-bg-light {
  border-color: rgba(195, 151, 255, 0.42);
  background-color: rgba(26, 33, 54, 0.95) !important;
  color: var(--text-0) !important;
}

[data-bs-theme="dark"] .community-shop-detail-modal__image {
  border-color: rgba(195, 151, 255, 0.32);
}

[data-bs-theme="dark"] .community-shop-detail-modal__close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

[data-bs-theme="dark"] .theme-chip,
[data-bs-theme="dark"] .theme-link,
[data-bs-theme="dark"] .theme-hero__littlecoins,
[data-bs-theme="dark"] .theme-hero__stat,
[data-bs-theme="dark"] .theme-hero__message-btn,
[data-bs-theme="dark"] .theme-sidebar__more {
  border: 1px solid rgba(195, 151, 255, 0.45);
  background: rgba(26, 33, 54, 0.92);
  color: var(--text-0);
}

[data-bs-theme="dark"] .theme-sidebar a,
[data-bs-theme="dark"] .theme-link {
  color: #f2c8ff;
}

[data-bs-theme="dark"] .theme-vzkaznik__message,
[data-bs-theme="dark"] .theme-vzkaznik__reaction,
[data-bs-theme="dark"] .theme-vzkaznik__tooltip {
  background: rgba(26, 33, 54, 0.92);
}

[data-bs-theme="dark"] .theme-vzkaznik__meta a,
[data-bs-theme="dark"] .theme-vzkaznik__rules,
[data-bs-theme="dark"] .theme-feed-author a {
  color: #f2c8ff;
}

[data-bs-theme="dark"] .theme-vzkaznik__status.is-error {
  color: #ffb6d1;
}

[data-bs-theme="dark"] .theme-vzkaznik__status.is-success {
  color: #a9edc8;
}

[data-bs-theme="dark"] .theme-cute-footer {
  background: linear-gradient(180deg, #13192a 0%, #0d1220 100%) !important;
}
