/**
 * Sticky Actions Menu Styles
 * 
 * Przyklejony panel z najważniejszymi akcjami
 * Na urządzeniach mobilnych pojawia się u dołu ekranu
 */

/* ========================================================================
   Base Styles
   ======================================================================== */

.sticky-actions {
  position: fixed;
  bottom: 50%;
  right: 0;
  z-index: 999;
  pointer-events: none;
  transform: translateY(50%);
}

.sticky-actions__container {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  pointer-events: auto;
}

/* ========================================================================
   Button Styles
   ======================================================================== */

.sticky-actions__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #003d7a 0%, #005cb8 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
  cursor: pointer;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sticky-actions__button:first-child {
  border-top-left-radius: 8px;
}

.sticky-actions__button:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
}

.sticky-actions__button:hover,
.sticky-actions__button:focus {
  background: linear-gradient(135deg, #005cb8 0%, #0070d8 100%);
  outline: none;
}

.sticky-actions__button:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -4px;
}

/* ========================================================================
   Icon & Text
   ======================================================================== */

.sticky-actions__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.sticky-actions__text {
  max-width: 100%;
  word-wrap: break-word;
  hyphens: auto;
  text-align: center;
}

/* ========================================================================
   Mobile Styles (max-width: 768px)
   ======================================================================== */

@media (max-width: 768px) {
  .sticky-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
  }
  
  .sticky-actions__container {
    flex-direction: row;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  }
  
  .sticky-actions__button {
    flex: 1;
    width: auto;
    height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 10px;
    box-shadow: none;
  }
  
  .sticky-actions__button:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .sticky-actions__button:last-child {
    border-right: none;
    border-top-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
  }
  
  .sticky-actions__button:hover,
  .sticky-actions__button:focus {
    background: linear-gradient(135deg, #005cb8 0%, #0070d8 100%);
  }
  
  .sticky-actions__icon {
    width: 22px;
    height: 22px;
  }
  
  .sticky-actions__text {
    text-align: center;
    font-size: 10px;
    line-height: 1.2;
  }
}

/* ========================================================================
   Tablet Styles (max-width: 1024px)
   ======================================================================== */

@media (max-width: 1024px) and (min-width: 769px) {
  .sticky-actions {
    bottom: 50%;
    right: 0;
    transform: translateY(50%);
  }
  
  .sticky-actions__button {
    width: 75px;
    height: 75px;
    padding: 10px 8px;
    font-size: 10px;
    gap: 5px;
  }
  
  .sticky-actions__button:first-child {
    border-top-right-radius: 8px;
  }

  
  .sticky-actions__icon {
    width: 22px;
    height: 22px;
  }
}

/* ========================================================================
   Print Styles
   ======================================================================== */

@media print {
  .sticky-actions {
    display: none;
  }
}

/* ========================================================================
   Accessibility - High Contrast Mode
   ======================================================================== */

@media (prefers-contrast: high) {
  .sticky-actions__button {
    border: 2px solid #FFFFFF;
    background: #003d7a;
    color: #FFFFFF;
  }
  
  .sticky-actions__button:hover,
  .sticky-actions__button:focus {
    background: #005cb8;
    color: #FFFFFF;
    border-color: #FFFFFF;
  }
}

/* ========================================================================
   Reduced Motion
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sticky-actions__button {
    transition: none;
  }
}

/* ========================================================================
   Dark Mode Support (Optional)
   ======================================================================== */

@media (prefers-color-scheme: dark) {
  /* Zachowaj niebieski gradient również w dark mode */
  .sticky-actions__button {
    background: linear-gradient(135deg, #003d7a 0%, #005cb8 100%);
    color: #FFFFFF;
  }
  
  .sticky-actions__button:hover,
  .sticky-actions__button:focus {
    background: linear-gradient(135deg, #005cb8 0%, #0070d8 100%);
    color: #FFFFFF;
  }
}
