/* Arhiva branding overrides */

/* Primary color override - blue (#0a84ff) everywhere instead of orange */
:root {
  --color-primary: #0a84ff;
  --color-primary-500: #0a84ff;
  --color-primary-600: #086acc;
  --color-primary-400: #3d9dff;
  --color-primary-300: #6eb5ff;
  --color-secondary: #0a84ff;
  --color-secondary-500: #0a84ff;
  --bs-primary: #0a84ff;
  --bs-primary-rgb: 10, 132, 255;
}

/* Logo - cyrillic "архива": primary color everywhere (header, offcanvas, footer, light & dark mode) */
.uc-logo a,
.uc-logo .arhiva-logo-text {
  text-decoration: none !important;
}
.uc-logo .arhiva-logo-text {
  font-family: var(--font-family-primary), sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: #0a84ff !important;
  transition: color 0.2s ease;
}

/* Social icons - Simple Icons (cdn.simpleicons.org) */
.social-icon {
  display: block;
  object-fit: contain;
  transition: filter 0.2s ease;
}
.social-icon-link:hover .social-icon,
.social-icon-footer {
  opacity: 1;
}

/* Header top social icons - white background, dark icons, hover = primary + zoom */
.uc-navbar-right .social-icon-header {
  background-color: #ffffff !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.uc-navbar-right .social-icon-header .social-icon {
  transition: filter 0.2s ease;
}
.uc-navbar-right .social-icon-header:hover .social-icon {
  filter: brightness(0) saturate(100%) invert(40%) sepia(98%) saturate(2000%) hue-rotate(197deg) brightness(98%) contrast(101%);
}
.uc-navbar-right .social-icon-header:hover {
  transform: scale(1.08);
  background-color: #ffffff !important;
}

/* Remove bookmark option site-wide */
.uc-bookmark-toggle,
[data-uc-tooltip="Add to bookmark"] {
  display: none !important;
}

/* Hero featured post - title: centered, max 2 lines, ellipsis */
.hero-featured-title {
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.hero-featured-title a {
  display: block;
}

/* Hero top row - Hot now & Featured headers align horizontally; bottoms align */
.hero-top-row {
  align-items: stretch !important;
}
.hero-top-row .block-layout {
  display: flex;
  flex-direction: column;
}
.hero-top-row .block-header {
  flex-shrink: 0;
}
.hero-top-row .block-content {
  flex: 1;
}
/* Featured list spacing - aligns bottom with main image */
#featured-previews .hero-featured-list {
  gap: 1.25rem !important;
  flex: 1;
  justify-content: flex-end;
}

/* Category links - primary color everywhere except header */
.post-category a,
a.post-category {
  color: var(--color-primary) !important;
  transition: color 0.2s ease;
}
.post-category a:hover,
a.post-category:hover {
  color: var(--color-primary-600) !important;
  opacity: 0.9;
}

/* 404 page button - branding colors */
.btn-arhiva,
.btn-arhiva:hover {
  background-color: #0a84ff !important;
  border-color: #0a84ff !important;
  color: #ffffff !important;
}
.btn-arhiva:hover {
  background-color: #086acc !important;
  border-color: #086acc !important;
}

/* Blog details - article content box: always white (light) / dark gray (dark mode) for readability */
.article-content-box {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.uc-dark .article-content-box,
html.uc-dark .article-content-box {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile: category, date, and article text align at same left edge */
.article-content-inner {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
@media (min-width: 576px) {
  .article-content-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Blog details - remove drop cap (first letter big uppercase), use simple default text */
.post-content p:first-child::first-letter {
  font-size: inherit !important;
  float: none !important;
  line-height: inherit !important;
  margin-right: 0 !important;
}

/* Blog details - full post body (rich HTML from Admin) displays correctly */
.post-content .post-body {
  overflow: visible;
  word-wrap: break-word;
}
.post-content .post-body p {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.6;
}
.post-content .post-body p:last-child {
  margin-bottom: 0;
}
.post-content .post-body ul,
.post-content .post-body ol {
  margin: 1em 0;
  padding-left: 1.5em;
}
.post-content .post-body blockquote:not(.twitter-tweet):not(.tiktok-embed) {
  margin: 1.25em 0;
  padding: 0.75em 1em;
  border-left: 4px solid var(--color-primary);
  background: rgba(10, 132, 255, 0.06);
  font-style: italic;
}
.uc-dark .article-content-box .post-body blockquote:not(.twitter-tweet):not(.tiktok-embed),
html.uc-dark .article-content-box .post-body blockquote:not(.twitter-tweet):not(.tiktok-embed) {
  background: rgba(10, 132, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.post-content .post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.post-content .post-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* In-article social embeds (X, Facebook, TikTok) – paste link → show post/video inline */
.post-content .post-body .social-embed-wrapper {
  margin: 1.5em 0;
  max-width: 100%;
}
.post-content .post-body .social-embed-wrapper iframe {
  max-width: 100%;
  border-radius: 8px;
}

/* Header nav categories - white by default, primary on hover */
.uc-bottom-navbar .nav-x a {
  color: #ffffff !important;
  transition: color 0.2s ease;
}
.uc-bottom-navbar .nav-x a:hover {
  color: var(--color-primary) !important;
}
