/**
 * Vivido - Frontend Shared Stylesheet
 * 
 * Elements: Callout Boxes, Minimal Notes, Dividers, 
 *           Syntax Code Blocks & Colored Bullet Lists
 * Version:  1.4.1
 */

/* ==========================================================================
   1. Callout Boxes & Notes
   ========================================================================== */
.vivido-box {
  display: block;
  margin: 1.5rem 0;
  padding: 18px 22px;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.vivido-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.vivido-box-header:empty {
  display: none;
}

.vivido-box-title {
  margin: 0;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: inherit;
}

.vivido-box-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.vivido-box-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.vivido-box-body {
  font-size: 0.975rem;
  line-height: 1.6;
  color: inherit;
}

.vivido-box-body p:first-child {
  margin-top: 0;
}

.vivido-box-body p:last-child {
  margin-bottom: 0;
}

/* Call to Action Button */
.vivido-box-footer {
  margin-top: 14px;
}

.vivido-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.vivido-btn:hover {
  opacity: 0.92;
  text-decoration: none;
}

.vivido-btn:active {
  transform: scale(0.98);
}

/* ==========================================================================
   2. Horizontal Divider
   ========================================================================== */
.vivido-divider {
  border: none;
  box-sizing: border-box;
  clear: both;
}

/* ==========================================================================
   3. Code Snippet Wrapper & One-Click Copy
   ========================================================================== */
.vivido-code-wrapper {
  position: relative;
  margin: 1.5rem 0;
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  direction: ltr !important;
  text-align: left !important;
}

.vivido-code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  background-color: #0f172a;
  border-bottom: 1px solid #334155;
  user-select: none;
}

.vivido-code-lang {
  font-family: Consolas, Monaco, "Andale Mono", monospace;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vivido-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #334155;
  color: #f1f5f9;
  border: none;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.vivido-copy-btn:hover {
  background-color: #475569;
}

.vivido-copy-btn:active {
  transform: scale(0.96);
}

.vivido-copy-btn.copied {
  background-color: #15803d !important;
  color: #ffffff !important;
}

.vivido-code-pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: transparent;
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre;
}

.vivido-code-pre code {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: inherit !important;
  font-family: Consolas, Monaco, "Andale Mono", "Courier New", monospace !important;
  font-size: inherit !important;
  white-space: inherit;
  word-break: normal;
}

/* ==========================================================================
   4. Colored Icon List Bullets & Badges
   ========================================================================== */
.vivido-icon-list {
  list-style: none !important;
  padding: 0 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Suppress stray HTML break or paragraph tags injected by WordPress wpautop */
.vivido-icon-list > br,
.vivido-icon-list > p {
  display: none !important;
}

.vivido-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
  box-sizing: border-box;
}

.vivido-bullet-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  box-sizing: border-box;
}

/* 4a. Badge Style: Solid Filled Circle */
.vivido-style-solid .vivido-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
}

/* 4b. Badge Style: Soft Tint / Duotone Badge */
.vivido-style-soft .vivido-bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

/* 4c. Badge Style: Outlined Circle */
.vivido-style-outline .vivido-bullet-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border-width: 2px;
  border-style: solid;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
}

.vivido-item-content {
  flex: 1 1 auto;
  font-size: 0.95rem;
  line-height: 1.5;
}