/* Desktop Enhancement Styles for OverpayAlert */

/* Desktop-only: Enhanced hover effects and interactions */
@media (min-width: 1024px) {
  /* Smooth scroll behavior for desktop */
  html {
    scroll-behavior: smooth;
  }

  /* Enhanced focus states for desktop keyboard navigation */
  .desktop-focus-ring:focus {
    outline: 2px solid rgb(59, 130, 246);
    outline-offset: 4px;
    border-radius: 8px;
  }

  /* Desktop hover animations for cards */
  .desktop-hover-lift {
    transition:
      transform 0.2s ease-out,
      box-shadow 0.2s ease-out;
  }

  .desktop-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow:
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  /* Desktop parallax scrolling effects */
  .desktop-parallax {
    will-change: transform;
  }

  /* Enhanced button hover effects for desktop */
  .desktop-button-hover {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .desktop-button-hover::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;
  }

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

  .desktop-button-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }

  /* Desktop-specific navigation hover effects */
  .desktop-nav-link {
    position: relative;
    transition: color 0.3s ease;
  }

  .desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1366ff, #3b82f6);
    transition: width 0.3s ease;
  }

  .desktop-nav-link:hover::after {
    width: 100%;
  }

  /* Desktop image zoom effects */
  .desktop-image-zoom {
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  .desktop-image-zoom img {
    transition: transform 0.3s ease;
  }

  .desktop-image-zoom:hover img {
    transform: scale(1.05);
  }

  /* Desktop grid animations */
  .desktop-grid-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .desktop-grid-stagger > *:nth-child(1) {
    animation-delay: 0.1s;
  }
  .desktop-grid-stagger > *:nth-child(2) {
    animation-delay: 0.2s;
  }
  .desktop-grid-stagger > *:nth-child(3) {
    animation-delay: 0.3s;
  }
  .desktop-grid-stagger > *:nth-child(4) {
    animation-delay: 0.4s;
  }
  .desktop-grid-stagger > *:nth-child(5) {
    animation-delay: 0.5s;
  }
  .desktop-grid-stagger > *:nth-child(6) {
    animation-delay: 0.6s;
  }

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

  /* Desktop cursor tracking effects */
  .desktop-cursor-glow {
    position: relative;
  }

  .desktop-cursor-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(45deg, #1366ff, #3b82f6, #06b6d4);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .desktop-cursor-glow::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
  }

  .desktop-cursor-glow:hover::before {
    opacity: 1;
  }

  /* Desktop tooltip styles */
  .desktop-tooltip {
    position: relative;
  }

  .desktop-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s,
      visibility 0.3s;
    z-index: 1000;
  }

  .desktop-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s,
      visibility 0.3s;
  }

  .desktop-tooltip:hover::after,
  .desktop-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
  }

  /* Desktop-specific layouts */
  .desktop-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .desktop-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .desktop-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 80vh;
  }

  /* Desktop text selection styling */
  ::selection {
    background: rgba(19, 102, 255, 0.2);
    color: inherit;
  }

  ::-moz-selection {
    background: rgba(19, 102, 255, 0.2);
    color: inherit;
  }

  /* Desktop scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(19, 102, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(19, 102, 255, 0.5);
  }

  /* Desktop code block enhancements */
  pre {
    position: relative;
  }

  pre::before {
    content: attr(data-language);
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 0 4px 0 4px;
  }

  /* Desktop keyboard shortcuts display */
  .desktop-kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #333;
    box-shadow:
      0 1px 0 rgba(0, 0, 0, 0.2),
      inset 0 0 0 2px #fff;
  }

  .dark .desktop-kbd {
    background: #2a2a2a;
    border-color: #4a4a4a;
    color: #e0e0e0;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 0 2px #333;
  }

  /* Desktop performance optimizations */
  .desktop-gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
  }

  /* Desktop-only decorative elements */
  .desktop-decorative-dots {
    background-image: radial-gradient(
      circle,
      rgba(19, 102, 255, 0.1) 1px,
      transparent 1px
    );
    background-size: 20px 20px;
  }

  .desktop-decorative-grid {
    background-image:
      linear-gradient(rgba(19, 102, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(19, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
  }

  /* Desktop animation preferences */
  @media (prefers-reduced-motion: no-preference) {
    .desktop-bounce-in {
      animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    @keyframes bounceIn {
      0% {
        transform: scale(0.3);
        opacity: 0;
      }
      50% {
        transform: scale(1.05);
        opacity: 0.8;
      }
      70% {
        transform: scale(0.9);
        opacity: 1;
      }
      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .desktop-slide-in-left {
      animation: slideInLeft 0.6s ease-out;
    }

    @keyframes slideInLeft {
      from {
        transform: translateX(-100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    .desktop-slide-in-right {
      animation: slideInRight 0.6s ease-out;
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
  }

  /* Desktop-specific utility classes */
  .desktop-max-width {
    max-width: 1400px;
  }

  .desktop-spacing {
    padding: 8rem 0;
  }

  .desktop-gap {
    gap: 4rem;
  }

  .desktop-text-balance {
    text-wrap: balance;
  }

  /* Desktop dark mode enhancements */
  @media (prefers-color-scheme: dark) {
    .desktop-glass-effect {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
  }

  @media (prefers-color-scheme: light) {
    .desktop-glass-effect {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
  }
}
