/* ==========================================================================
   naos.css — Styles extracted from views/naos.php
   ========================================================================== */

/* --- Popover Style Overrides (Byzantine Theme) --- */
.popover.iero-popover-dark {
  background-color: rgba(20, 0, 0, 0.99) !important;
  border: 1px solid var(--iero-gold) !important;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4) !important;
  backdrop-filter: blur(15px);
  max-width: 300px;
  border-radius: 8px !important;
  overflow: hidden;
}

.iero-popover-dark .popover-header {
  background-color: var(--iero-bordeaux) !important;
  color: var(--iero-gold) !important;
  font-family: "Playfair Display", serif !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
  font-weight: 700 !important;
  padding: 0.8rem 1.2rem !important;
  font-size: 1.1rem !important;
  text-align: center;
}

.iero-popover-dark .popover-body {
  color: #ffffff !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  padding: 1.2rem !important;
  text-align: center;
  background: transparent !important;
}

/* Arrow styling matching the Dark/Gold theme */
.iero-popover-dark.bs-popover-top>.popover-arrow::after {
  border-top-color: rgba(20, 0, 0, 0.99) !important;
}

.iero-popover-dark.bs-popover-bottom>.popover-arrow::after {
  border-bottom-color: var(--iero-bordeaux) !important;
}

.iero-popover-dark.bs-popover-start>.popover-arrow::after {
  border-left-color: rgba(20, 0, 0, 0.99) !important;
}

.iero-popover-dark.bs-popover-end>.popover-arrow::after {
  border-right-color: rgba(20, 0, 0, 0.99) !important;
}

/* Ensure the button inside popover is visible and themed */
.iero-popover-dark .btn-warning {
  background-color: var(--iero-gold) !important;
  color: #000 !important;
  border: none !important;
  font-weight: bold !important;
}

/* --- Link Buttons (Useful Links) --- */
.iero-link-button {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-left: 4px solid var(--iero-gold);
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  backdrop-filter: blur(5px);
}

.iero-link-button:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--iero-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(212, 175, 55, 0.15);
}

.iero-link-button-icon {
  font-size: 1.25rem;
  color: var(--iero-gold);
  margin-right: 1rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.iero-link-button:hover .iero-link-button-icon {
  opacity: 1;
  transform: scale(1.1) rotate(5deg);
}

.iero-link-button-content {
  overflow: hidden;
  flex-grow: 1;
}

.iero-link-button-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--iero-gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iero-link-button-url {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.iero-comments-layout {
  width: 100%;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 10px;
  border: 1px solid var(--iero-gold);
}

@media (max-width: 768px) {
  .iero-comments-layout {
    width: 100%;
  }
}

/* --- Report Type Items --- */
.report-type-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.03);
}

.report-type-item:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
}

.report-type-item.selected {
  border-color: var(--iero-gold);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.report-type-item.selected i {
  color: var(--iero-gold);
  opacity: 1 !important;
}

/* --- GPS Button (Premium Redesign) --- */
.iero-gps-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 1.8rem 2.5rem;
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  text-decoration: none !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 280px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
}

.iero-gps-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: 0.6s;
}

.iero-gps-button:hover::before {
  left: 100%;
}

.iero-gps-button:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px var(--iero-gold-glow);
  border-color: var(--iero-gold);
}

.iero-gps-button i {
  font-size: 2.8rem;
  color: var(--iero-gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 15px var(--iero-gold-glow);
  transition: all 0.4s ease;
}

.iero-gps-button:hover i {
  transform: scale(1.15) translateY(-2px);
  color: #fff;
  text-shadow: 0 0 20px var(--iero-gold);
}

.iero-gps-button span {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--iero-gold);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.iero-gps-button:hover span {
  color: #fff;
  letter-spacing: 3px;
}

/* Highlight targeted post */
.iero-highlight-post {
  animation: iero-highlight-glow 3s ease-out;
}
@keyframes iero-highlight-glow {
  0% { box-shadow: 0 0 30px var(--iero-gold); border-color: var(--iero-gold); }
  100% { box-shadow: none; }
}
/* --- GPS Enhanced Layout --- */
.iero-gps-enhanced-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.iero-gps-enhanced-container:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.iero-mini-map-preview {
  position: relative;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
  cursor: crosshair;
}

.iero-mini-map-preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.iero-mini-map-preview .leaflet-container {
  background: #1a1a1a !important;
}

/* --- Report Buttons --- */
.iero-report-flag-icon {
  transition: all 0.3s ease;
}

.iero-report-naos-btn:hover .iero-report-flag-icon,
.iero-report-naos-btn:hover span,
.iero-report-post-btn:hover,
.iero-report-comment-btn:hover {
  opacity: 1 !important;
  color: #ff4d4d !important;
}

.iero-report-naos-btn:hover .iero-report-flag-icon,
.iero-report-post-btn:hover i,
.iero-report-comment-btn:hover i {
  transform: scale(1.2);
}

/* Contribution Text Readability */
.iero-post-content {
  font-size: 1.15rem !important;
  color: #fff !important;
  opacity: 0.95;
}

/* --- Delete Buttons --- */
.iero-delete-post-btn,
.iero-delete-comment-btn {
  transition: all 0.3s ease;
  opacity: 0.7;
}

.iero-delete-post-btn:hover,
.iero-delete-comment-btn:hover {
  color: #ff4d4d !important;
  transform: scale(1.2);
  opacity: 1 !important;
}
