/* Share and Heart Icons Styles */
.detail-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--primary-color, #854442);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 48px;
  height: 48px;
  min-width: auto;
}

.action-button:hover {
  background: rgba(133, 68, 66, 0.1);
  color: var(--primary-color, #854442);
  transform: translateY(-2px);
}

.action-button.active {
  background: var(--primary-color, #854442);
  color: white;
}

.action-button .icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.action-button .icon i {
  font-size: 1.2rem;
}

.action-button:hover .icon {
  transform: scale(1.1);
}

.action-button.heart-button.active .icon {
  animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Share button specific styles */
.share-button {
  color: #2196F3;
}

.share-button:hover {
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

/* Heart button specific styles */
.heart-button {
  color: #E91E63;
}

.heart-button:hover {
  background: rgba(233, 30, 99, 0.1);
  color: #E91E63;
}

.heart-button.active {
  background: rgba(233, 30, 99, 0.2);
  color: #E91E63;
}

/* Responsive design */
@media (max-width: 768px) {
  .detail-actions {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .action-button {
    padding: 0.6rem;
    width: 44px;
    height: 44px;
  }
  
  .action-button .icon {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .detail-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  
  .action-button {
    width: 40px;
    height: 40px;
  }
  
  .action-button .icon {
    font-size: 1.2rem;
  }
}

/* Integration with existing detail page layouts */
.stotra-header .detail-actions,
.pooja-vidhanam-detail-header .detail-actions,
.festival-detail-header .detail-actions,
.temple-history-detail-header .detail-actions,
.deity-header .detail-actions,
.category-header .detail-actions {
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Position the actions next to the title when there's space */
.stotra-title-section,
.pooja-vidhanam-detail-title-section,
.festival-detail-title-section,
.temple-history-detail-title-section,
.deity-info,
.category-title-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.stotra-title-section .detail-actions,
.pooja-vidhanam-detail-title-section .detail-actions,
.festival-detail-title-section .detail-actions,
.temple-history-detail-title-section .detail-actions,
.deity-info .detail-actions,
.category-title-section .detail-actions {
  margin: 0;
  flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .stotra-title-section,
  .pooja-vidhanam-detail-title-section,
  .festival-detail-title-section,
  .temple-history-detail-title-section,
  .deity-info,
  .category-title-section {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stotra-title-section .detail-actions,
  .pooja-vidhanam-detail-title-section .detail-actions,
  .festival-detail-title-section .detail-actions,
  .temple-history-detail-title-section .detail-actions,
  .deity-info .detail-actions,
  .category-title-section .detail-actions {
    align-self: center;
  }
}
