/* ============================================================
   TRUMods Post Widget Styling
   Exact responsive layout matching the TRUMods Theme
   ============================================================ */

.anamar-download-wrapper,
.anamar-download-wrapper *,
.anamar-download-wrapper *::before,
.anamar-download-wrapper *::after,
.anamar-modal-overlay,
.anamar-modal-overlay *,
.anamar-lightbox-overlay,
.anamar-lightbox-overlay * {
  box-sizing: border-box;
}

.anamar-download-wrapper {
  color: #f8fafc;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 30px auto;
  text-align: left;
  display: block;
}

/* Info Box / Hero */
.anamar-info-box {
  background: #0a162c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.anamar-app-meta {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.anamar-app-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.anamar-app-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.anamar-dev-name {
  font-size: 0.8rem;
  color: #00e5ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Specs Grid */
.anamar-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 480px) {
  .anamar-specs-grid {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}

.spec-item i {
  font-size: 1.1rem;
  color: #29a8ff;
  width: 24px;
  text-align: center;
}

.spec-text-wrap {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-val {
  font-size: 0.88rem;
  color: #f8fafc;
  font-weight: 700;
}

.inline-dev-box-grid {
  grid-column: 1 / -1;
}

/* Card Sections */
.anamar-card-section {
  background: #0a162c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.section-heading-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-heading-title i {
  color: #29a8ff;
}

/* Mod Features List */
.mod-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mod-features-list li i {
  color: #00e5ff;
  margin-top: 3px;
  flex-shrink: 0;
}

.mod-features-list li strong {
  color: #ffffff;
}

/* About Description */
.anamar-desc-container {
  position: relative;
  max-height: 160px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.anamar-desc-container.expanded {
  max-height: 2500px;
}

.anamar-desc-container:not(.expanded)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(180deg, transparent, #0a162c);
  pointer-events: none;
}

.anamar-desc-content {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.anamar-desc-content p {
  margin-bottom: 0.85rem;
}

.anamar-desc-content p:last-child {
  margin-bottom: 0;
}

.read-more-toggle-wrap {
  text-align: center;
  margin-top: 10px;
}

.btn-read-more {
  background: rgba(41, 168, 255, 0.1);
  border: 1px solid rgba(41, 168, 255, 0.3);
  color: #29a8ff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-read-more:hover {
  background: rgba(41, 168, 255, 0.2);
}

/* Screenshots Slider */
.anamar-slider-container {
  position: relative;
  display: flex;
  align-items: center;
}

.anamar-screenshots-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.anamar-screenshots-track::-webkit-scrollbar {
  display: none;
}

.ss-img {
  width: 170px;
  height: 310px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

.ss-img:hover {
  transform: scale(1.03);
  border-color: #29a8ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(4, 10, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
}

.slider-nav-btn:hover {
  background: #29a8ff;
  color: #02101f;
}

.slider-prev-btn { left: -12px; }
.slider-next-btn { right: -12px; }

.anamar-slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.slider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.slider-dot.active {
  width: 20px;
  border-radius: 10px;
  background: #29a8ff;
}

/* Important Notice */
.important-notice-card {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.important-heading {
  color: #ff6b6b;
}

.anamar-important-content {
  font-size: 0.85rem;
  color: #fca5a5;
  line-height: 1.55;
}

/* Action Buttons */
.anamar-action-buttons-box {
  margin-bottom: 12px;
}

.anamar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.25s;
}

.store-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.store-btn i {
  font-size: 1.5rem;
  color: #34d399;
}

.btn-text-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-sub-store, .btn-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
}

.btn-main-store {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.mod-btn-single {
  background: linear-gradient(135deg, #29a8ff, #00e5ff);
  color: #02101f;
  box-shadow: 0 8px 24px rgba(41, 168, 255, 0.35);
}

.mod-btn-single:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.45);
}

.mod-btn-single i {
  font-size: 1.5rem;
}

.mod-btn-single .btn-sub {
  color: rgba(2, 16, 31, 0.75);
}

.mod-btn-single .btn-main {
  font-size: 1.05rem;
  font-weight: 900;
}

/* ============================================================
   SCREENSHOT LIGHTBOX
   ============================================================ */
.anamar-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.anamar-lightbox-overlay.active {
  display: flex;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-content-area {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  height: 85vh;
  position: relative;
}

.lightbox-img-wrapper {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, opacity 0.2s;
}

.lightbox-target-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}

.lightbox-nav-btn:hover {
  background: #29a8ff;
  color: #02101f;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   DOWNLOAD MODAL POPUP (VIRUS SCAN)
   ============================================================ */
.anamar-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(4, 10, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.anamar-modal-overlay.active {
  display: flex;
}

.anamar-modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #0a162c;
  border: 1px solid rgba(41, 168, 255, 0.35);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(41, 168, 255, 0.2);
  text-align: center;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-state-view {
  display: none;
}

.modal-state-view.active {
  display: block;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.4;
}

.modal-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.scan-trigger-btn {
  background: linear-gradient(135deg, #29a8ff, #00e5ff);
  color: #02101f;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(41, 168, 255, 0.35);
}

.scan-trigger-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.support-btn {
  background: rgba(41, 168, 255, 0.1);
  border: 1px solid rgba(41, 168, 255, 0.3);
  color: #29a8ff;
}

.advertiser-btn {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
}

/* Scanner Circular Progress */
.circular-progress-container {
  display: flex;
  justify-content: center;
  margin: 24px 0 16px;
}

.circular-progress {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(#29a8ff 0deg, rgba(255, 255, 255, 0.1) 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: background 0.1s linear;
}

.circular-progress-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0a162c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.circular-shield-icon {
  font-size: 1.8rem;
  color: #29a8ff;
}

.scanner-progress-percent {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.scanner-status-text {
  font-size: 0.85rem;
  color: #00e5ff;
  font-weight: 600;
  min-height: 24px;
}

/* Verified Download Links Stack */
.success-check-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 12px;
}

.final-download-links-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.final-dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.final-dl-btn i {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.dl-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.dl-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.primary-dl {
  background: linear-gradient(135deg, #29a8ff, #00e5ff);
  color: #02101f;
  border: none;
  box-shadow: 0 6px 20px rgba(41, 168, 255, 0.35);
}

.primary-dl:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.alt-dl-1, .alt-dl-2 {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.alt-dl-1:hover, .alt-dl-2:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(41, 168, 255, 0.4);
}

.dl-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.dl-disabled-reason {
  font-size: 0.72rem;
  color: #f87171;
}

/* Tags display inside widget (hidden by default) */
.anamar-tags {
  display: none;
}
