body {
    background: #222 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><path style="stroke:%23000;stroke-width:.5;stroke-opacity:.25" d="M 0,0 4,4 M 0,4 4,0"/></svg>') top left repeat;
}

.custom-bullet::before {
  content: '•'; /* Unicode character for bullet symbol */
  display: inline-block;
  margin-right: 5px; /* Space between the bullet and the following text */
}

.balance-flash {
    animation: balanceFlash 0.8s ease-out;
}

@keyframes balanceFlash {
    0% {
        transform: scale(1);
        background-color: #ffeb3b;
    }
    50% {
        transform: scale(1.08);
        background-color: #ffc107;
    }
    100% {
        transform: scale(1);
        background-color: '';
    }
}


/* X-Ray overlay support (safe, non-invasive) */
#mediaContainer<?= $iii;?> {
  position: relative;
  display: inline-block;
}

.xray-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  clip-path: circle(0px at 50% 50%);
}

.mediaContainer.xray-active {
  cursor: crosshair;
}

.mediaContainer.xray-active .xray-overlay {
  filter: drop-shadow(0 0 8px rgba(0,0,0,0.35));
}

.mediaContainer.xray-active {
  cursor: crosshair;
}

.mediaContainer.xray-active.locked {
  cursor: not-allowed;
}

.xray-go-deeper {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 20;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 13px;
  font-weight: 600;
  color: #fff;

  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);

  cursor: pointer;
  user-select: none;
}

.xray-go-deeper:hover {
  transform: scale(1.05);
}
/* =============================================================
   blog_template.php — Dark Theme + Gold Accents CSS Overrides
   Matches admin/blog listing page design standard
   CSS-only — no PHP changes
   Date: 2026-02-15
   ============================================================= */

/* --- Body --- */
body {
    background: #1a1a1a url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="4" height="4"><path style="stroke:%23000;stroke-width:.5;stroke-opacity:.15" d="M 0,0 4,4 M 0,4 4,0"/></svg>') top left repeat;
    color: #f0f0f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Links: gold to match blog listing page --- */
a {
    color: #d4af37;
}
a:hover {
    color: #ffd700;
}

/* --- Section Headers (Section 1/2/3 blue bars → dark + gold) --- */
h3.w3-blue,
h3.w3-panel.w3-blue,
h3.w3-tag.w3-blue {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border: 1px solid #d4af37 !important;
    color: #d4af37 !important;
    border-radius: 8px !important;
}
h3.w3-blue b,
h3.w3-panel.w3-blue b,
h3.w3-tag.w3-blue b {
    color: #d4af37 !important;
}
h3.w3-blue .w3-text-black,
h3.w3-panel.w3-blue .w3-text-black {
    color: #d4af37 !important;
}

/* Section header photo/video count text */
h3.w3-blue div,
h3.w3-panel.w3-blue div,
h3.w3-tag.w3-blue div {
    color: #ccc !important;
}

/* --- Description Bubble (aqua → dark card + gold border) --- */
p.w3-aqua,
.w3-aqua {
    background: #2a2a2a !important;
    color: #f0f0f0 !important;
    border: 1px solid #d4af37 !important;
}

/* --- Blog Title Bar --- */
h1.w3-card.w3-padding.w3-round-large {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    color: #f0f0f0 !important;
    border: 1px solid #444 !important;
}

/* --- Navigation Pill Button (Home/Profile/Blog blue → dark + gold) --- */
button.w3-btn.w3-card.w3-round-xxlarge.w3-blue {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border: 2px solid #d4af37 !important;
}

/* The diamond shape inside nav pill — was w3-blue */
button.w3-btn.w3-card.w3-round-xxlarge.w3-blue .w3-btn.w3-blue {
    background: #2a2a2a !important;
}

/* --- Global: all blue borders → gold --- */
.w3-border-blue {
    border-color: #d4af37 !important;
}

/* --- Global: all blue text → gold --- */
.w3-text-blue {
    color: #d4af37 !important;
}

/* --- Comment/Hearts cards (black + blue border → gold border) --- */
p.w3-card.w3-black.w3-border.w3-border-blue {
    border-color: #d4af37 !important;
    background: #1f1f1f !important;
}

/* --- Hearts area round buttons --- */
div.w3-btn.w3-card-4.w3-blue,
.w3-btn.w3-card-4.w3-round-xxlarge.w3-blue {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%) !important;
    border: 1px solid #d4af37 !important;
    color: #f0f0f0 !important;
}

/* --- Notification tag pill (black + red border → gold) --- */
p.w3-tag.w3-round-xxlarge.w3-black.w3-border.w3-border-red {
    border-color: #d4af37 !important;
    color: #d4af37 !important;
    background: #2a2a2a !important;
}

/* --- Notification modal option rows --- */
.w3-panel.w3-block.w3-round-large.w3-border.w3-border-blue {
    border-color: #d4af37 !important;
    background: #2a2a2a !important;
    color: #f0f0f0 !important;
}
.w3-panel.w3-block.w3-round-large.w3-border.w3-border-blue:hover {
    background: #333 !important;
    border-color: #ffd700 !important;
}

/* --- Yellow warning banner → gold themed --- */
.w3-yellow {
    background: linear-gradient(135deg, #3a2a0a 0%, #2a1a0a 100%) !important;
    color: #ffd700 !important;
    border: 1px solid #d4af37 !important;
}

/* --- Balance flash animation → gold --- */
@keyframes balanceFlash {
    0% {
        transform: scale(1);
        background-color: #d4af37;
    }
    50% {
        transform: scale(1.08);
        background-color: #ffd700;
    }
    100% {
        transform: scale(1);
        background-color: '';
    }
}

/* ============================================================
   Placeholder styling (generalized from per-section blocks)
   ============================================================ */
.w3-input::placeholder {
    font-size: 0.8em;
    color: #666;
}
[id^="prompt"]::placeholder {
    font-size: 0.75em;
}
.w3-input::-webkit-input-placeholder { font-size: 0.8em; }
.w3-input:-moz-placeholder           { font-size: 0.8em; }
.w3-input::-moz-placeholder          { font-size: 0.8em; }
.w3-input:-ms-input-placeholder      { font-size: 0.8em; }

/* ============================================================
   Video card hover
   ============================================================ */
.maf-video-card:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 20px rgba(212,168,71,0.15) !important;
}
.maf-video-card:hover .maf-play-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(212,168,71,0.4);
}

/* ============================================================
   Video modal responsive — covers all sections
   ============================================================ */
@media (min-width: 768px) {
    [id^="videoModal"] .w3-modal-content {
        height: 100%;
    }
}
@media (max-width: 767px) {
    [id^="videoModal"] .w3-modal-content {
        width: 100%;
    }
}


/* ============================================================
   Photo Grid Modal
   ============================================================ */
#photoGridModal {
    -webkit-overflow-scrolling: touch;
}
#gridContainer > div:hover {
    transform: scale(1.05);
    transition: transform 0.15s;
    z-index: 1;
    box-shadow: 0 0 12px rgba(212,168,71,0.4);
}

/* Fix modals appearing behind sticky section headers (z-index:50) */
.w3-modal { z-index: 100 !important; }

