/* Demo Notification Styles */
.demo-notification {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
  border: 2px solid #2196f3;
  border-radius: 16px;
  margin-top: 2rem;
  padding: 0;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.15);
  opacity: 0;
  transform: translateY(20px);
  animation: slideInDemo 0.6s ease-out 0.5s forwards;
  position: relative;
  overflow: hidden;
}

.demo-notification::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2196f3, #21cbf3);
}

@keyframes slideInDemo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-notification-content {
  padding: 1.5rem;
}

.demo-notification-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #1565c0;
  font-size: 1.1rem;
}

.demo-notification-header i {
  font-size: 1.25rem;
  color: #2196f3;
}

.demo-notification p {
  color: #1565c0;
  margin: 0 0 1.25rem 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.demo-notification-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #1565c0;
}

.demo-feature i {
  font-size: 1rem;
  flex-shrink: 0;
}

.demo-notification-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.demo-notification .btn-primary {
  background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.demo-notification .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
  background: linear-gradient(135deg, #1976d2 0%, #1e88e5 100%);
}

.demo-notification .btn-outline-secondary {
  color: #666;
  border: 2px solid #ddd;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.demo-notification .btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
  transform: translateY(-1px);
}

/* Demo Link Notification */
.demo-link-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  max-width: 400px;
  width: 90%;
  opacity: 0;
  transition: all 0.3s ease;
}

.demo-link-notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.demo-link-content {
  padding: 1.5rem;
}

.demo-link-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #495057;
}

.demo-link-header i {
  color: #6c757d;
  font-size: 1.1rem;
}

.demo-link-notification p {
  color: #6c757d;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.demo-link-notification strong {
  color: #495057;
  word-break: break-all;
  font-size: 0.9rem;
}

.demo-link-actions {
  text-align: center;
}

/* Backdrop for demo link notification */
.demo-link-notification::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
  .demo-notification-features {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .demo-notification-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-notification-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .demo-notification-content {
    padding: 1.25rem;
  }

  .demo-link-notification {
    width: 95%;
    margin: 1rem;
  }

  .demo-link-content {
    padding: 1.25rem;
  }
}

/* Animation for spinner in buttons */
.spinner-container {
  display: inline-block;
  margin-left: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =========================
   ENHANCED PHONE MOCKUP FOR LANDING PAGE
   ========================= */

.phone-mockup {
    margin: var(--space-6) auto;
    width: 340px;
    height: 680px;
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 45px;
    border: 8px solid #2d2d2d;
    position: relative;
    overflow: hidden;

    /* Enhanced shadows for depth */
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-mockup:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Power button */
.phone-mockup::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 160px;
    width: 4px;
    height: 80px;
    background: linear-gradient(90deg, #2d2d2d, #1a1a1a);
    border-radius: 0 2px 2px 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Volume buttons */
.phone-mockup::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 130px;
    width: 4px;
    height: 50px;
    background: linear-gradient(270deg, #2d2d2d, #1a1a1a);
    border-radius: 2px 0 0 2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 70px 0 0 #2d2d2d;
}

/* Enhanced phone header with Dynamic Island */
.phone-header {
    height: 44px;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* Dynamic Island */
.phone-header::before {
    content: '';
    position: absolute;
    width: 126px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Camera and sensors in Dynamic Island */
.phone-header::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #0a0a0a 30%, #1a1a1a 70%);
    border-radius: 50%;
    top: 18px;
    left: 50%;
    transform: translateX(-30px);
    z-index: 11;
    box-shadow: 25px 0 0 0 #0a0a0a;
}

/* Status bar elements */
.phone-header .status-time {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
}

.phone-header .status-time::before {
    content: '9:41';
}

.phone-header .status-indicators {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.phone-header .status-indicators::after {
    content: '⚡100%';
}

/* Enhanced phone content */
.phone-content {
    height: calc(100% - 44px);
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
    margin: 2px;
    border-radius: 38px;
}

/* Screen reflection */
.phone-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 25%,
        transparent 75%,
        rgba(0, 0, 0, 0.05) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* Subtle highlight for realism */
.phone-content::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 5%;
    width: 25%;
    height: 35%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(15px);
    transform: rotate(-20deg);
    pointer-events: none;
    z-index: 4;
}

/* Home indicator for modern iPhones */
.phone-content .home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    z-index: 6;
}

/* Your iframe content */
.phone-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 36px;
    position: relative;
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .phone-mockup {
        width: 300px;
        height: 600px;
        border-width: 6px;
    }
}

@media (max-width: 768px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
        border-width: 5px;
    }

    .phone-header {
        height: 40px;
        font-size: 13px;
    }

    .phone-header::before {
        width: 110px;
        height: 26px;
        top: 6px;
    }

    .phone-header::after {
        width: 6px;
        height: 6px;
        top: 16px;
        box-shadow: 20px 0 0 0 #0a0a0a;
    }
}

@media (max-width: 576px) {
    .phone-mockup {
        width: 260px;
        height: 520px;
        border-width: 4px;
    }
}
