/**
 * Share Bottom Sheet Styles
 * Modern share dialog with circular icon buttons
 */

/* Share Bottom Sheet Container */
.share-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-bottom-sheet.active {
  pointer-events: auto;
  opacity: 1;
}

/* Backdrop */
.share-bottom-sheet__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-bottom-sheet.active .share-bottom-sheet__backdrop {
  opacity: 1;
}

/* Content */
.share-bottom-sheet__content {
  position: relative;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
}

.share-bottom-sheet.active .share-bottom-sheet__content {
  transform: translateY(0);
}

/* Handle */
.share-bottom-sheet__handle {
  width: 40px;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 12px auto 8px;
}

/* Header */
.share-bottom-sheet__header {
  padding: 16px 24px 8px;
  text-align: center;
}

.share-bottom-sheet__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #000000;
}

/* Body */
.share-bottom-sheet__body {
  padding: 16px 24px max(env(safe-area-inset-bottom), 24px);
}

/* Share Options Grid */
.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  justify-items: center;
}

/* Share Option Item */
.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 90px;
}

.share-option__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.share-option__btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.share-option__btn:active {
  transform: scale(0.95);
}

.share-option__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.share-option__icon svg,
.share-option__icon img {
  width: 32px;
  height: 32px;
}

.share-option__label {
  font-size: 13px;
  color: #666666;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}

/* Dark Mode Support */
body[data-bg="dark"] .share-bottom-sheet__content {
  background: #000000;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
}

body[data-bg="dark"] .share-bottom-sheet__handle {
  background-color: rgba(255, 255, 255, 0.3);
}

body[data-bg="dark"] .share-bottom-sheet__title {
  color: #ffffff;
}

body[data-bg="dark"] .share-option__btn {
  background-color: var(--text-cl, #e7e9ea);
}

body[data-bg="dark"] .share-option__btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

body[data-bg="dark"] .share-option__label {
  color: #cccccc;
}

/* Responsive */
@media (min-width: 768px) {
  .share-bottom-sheet__content {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    margin-bottom: 40px;
  }
  
  .share-options {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .share-options {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 12px;
  }
  
  .share-option__btn {
    width: 70px;
    height: 70px;
  }
  
  .share-option__icon svg,
  .share-option__icon img {
    width: 28px;
    height: 28px;
  }
  
  .share-option__label {
    font-size: 12px;
  }
}
