/* Post925 Install Modal Styles - Top Alert Style */

.post925-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  pointer-events: none; /* Allow clicks to pass through */
  opacity: 1;
  visibility: visible;
  transition: none;
  padding: 0;
  box-sizing: border-box;
}

.post925-modal-overlay.post925-modal-show {
  opacity: 1;
  visibility: visible;
}

.post925-modal-overlay.post925-modal-hidden {
  display: none;
}

.post925-modal-container {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  max-width: 420px;
  width: calc(100% - 40px);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto; /* Enable clicks on modal */
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.post925-modal-show .post925-modal-container {
  transform: translateX(-50%) translateY(0);
}

.post925-modal-content {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  gap: 16px;
  position: relative;
}

.post925-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
  z-index: 10;
}

.post925-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #374151;
  transform: scale(1.1);
}

.post925-modal-close svg {
  width: 16px;
  height: 16px;
}

.post925-app-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  position: relative;
  overflow: hidden;
}

.post925-app-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  border-radius: 12px;
}

.post925-app-icon svg {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
}

.post925-app-info {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.post925-app-title {
  font-size: 17px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.post925-app-url {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
}

.post925-modal-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.post925-install-button {
  background: #007aff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 70px;
  position: relative;
  overflow: hidden;
}

.post925-install-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.post925-install-button:hover {
  background: #0056cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.post925-install-button:hover::before {
  left: 100%;
}

.post925-install-button:active {
  transform: translateY(0);
  background: #004999;
}

.post925-cancel-button {
  background: #f3f4f6;
  color: #6b7280;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-width: 70px;
}

.post925-cancel-button:hover {
  background: #e5e7eb;
  color: #374151;
}

.post925-cancel-button:active {
  background: #d1d5db;
}

/* Bounce animation for initial show */
@keyframes post925-bounce-in {
  0% {
    transform: translateX(-50%) translateY(-100px) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) translateY(10px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}

.post925-modal-show .post925-modal-container {
  animation: post925-bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide out animation */
@keyframes post925-slide-out {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-100px) scale(0.95);
    opacity: 0;
  }
}

.post925-modal-hiding .post925-modal-container {
  animation: post925-slide-out 0.3s ease-in-out;
}

/* Mobile Responsive - FIXED BUTTON SIZING */
@media (max-width: 480px) {
  .post925-modal-container {
    top: 10px;
    max-width: calc(100% - 20px);
    width: calc(100% - 20px);
    border-radius: 12px;
  }

  .post925-modal-content {
    padding: 16px 20px;
    gap: 12px;
  }

  .post925-modal-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
  }

  .post925-modal-close svg {
    width: 14px;
    height: 14px;
  }

  .post925-app-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }

  .post925-app-icon svg {
    width: 28px;
    height: 28px;
  }

  .post925-app-title {
    font-size: 16px;
  }

  .post925-app-url {
    font-size: 13px;
  }

  .post925-app-info {
    margin-right: 8px;
  }

  .post925-modal-actions {
    flex-direction: column;
    gap: 6px;
    min-width: 65px;
    max-width: 75px;
  }

  .post925-install-button,
  .post925-cancel-button {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 8px;
    min-width: auto;
    width: 100%;
    white-space: nowrap;
  }
}

/* Small Mobile (very narrow screens) */
@media (max-width: 360px) {
  .post925-modal-content {
    padding: 14px 16px;
    gap: 10px;
  }

  .post925-app-icon {
    width: 44px;
    height: 44px;
  }

  .post925-app-icon svg {
    width: 26px;
    height: 26px;
  }

  .post925-app-title {
    font-size: 15px;
  }

  .post925-app-url {
    font-size: 12px;
  }

  .post925-modal-actions {
    min-width: 60px;
    max-width: 70px;
  }

  .post925-install-button,
  .post925-cancel-button {
    padding: 7px 8px;
    font-size: 12px;
  }
}

/* Tablet Responsive */
@media (max-width: 768px) and (min-width: 481px) {
  .post925-modal-container {
    top: 15px;
    max-width: 400px;
  }

  .post925-modal-content {
    padding: 18px 22px;
    gap: 14px;
  }

  .post925-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .post925-app-icon svg {
    width: 30px;
    height: 30px;
  }
}

/* Dark mode enhancement */
@media (prefers-color-scheme: dark) {
  .post925-modal-container {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .post925-app-title {
    color: #f9fafb;
  }

  .post925-app-url {
    color: #d1d5db;
  }

  .post925-cancel-button {
    background: #374151;
    color: #d1d5db;
  }

  .post925-cancel-button:hover {
    background: #4b5563;
    color: #f3f4f6;
  }

  .post925-cancel-button:active {
    background: #6b7280;
  }

  .post925-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
  }

  .post925-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #f3f4f6;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .post925-modal-container {
    transition: none;
    animation: none !important;
  }

  .post925-install-button,
  .post925-cancel-button,
  .post925-modal-close {
    transition: none;
  }

  .post925-install-button::before {
    display: none;
  }

  @keyframes post925-bounce-in {
    0%,
    100% {
      transform: translateX(-50%) translateY(0) scale(1);
      opacity: 1;
    }
  }

  @keyframes post925-slide-out {
    0%,
    100% {
      transform: translateX(-50%) translateY(0) scale(1);
      opacity: 1;
    }
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .post925-modal-container {
    border: 2px solid #000000;
  }

  .post925-install-button {
    border: 1px solid rgba(0, 0, 0, 0.3);
  }

  .post925-cancel-button {
    border: 1px solid rgba(0, 0, 0, 0.3);
  }
}

/* Focus styles for accessibility */
.post925-install-button:focus,
.post925-cancel-button:focus,
.post925-modal-close:focus {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

.post925-install-button:focus:not(:focus-visible),
.post925-cancel-button:focus:not(:focus-visible),
.post925-modal-close:focus:not(:focus-visible) {
  outline: none;
}

.post925-install-button:focus-visible,
.post925-cancel-button:focus-visible,
.post925-modal-close:focus-visible {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

/* Pulse effect for attention */
@keyframes post925-pulse {
  0% {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  }
  100% {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  }
}

.post925-app-icon {
  animation: post925-pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .post925-app-icon {
    animation: none;
  }
}


@media (max-width: 480px) {
    .post925-install-button, .post925-cancel-button {
        
        width: 50% !important;
    
    }
}
