/* =============================================
 * Floating Post Button Styles
 * ============================================= */

.floating-post-button {
  position: fixed;
  bottom: 110px;
  right: 30px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.post-button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #1e7e34, #155724);
  text-decoration: none;
  color: white;
}

.post-button-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.post-button-icon {
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.post-button-text {
  position: absolute;
  right: 90px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.post-button-text::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid rgba(0, 0, 0, 0.8);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ホバー時のテキスト表示 */
.floating-post-button:hover .post-button-text {
  opacity: 1;
  transform: translateX(0);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .floating-post-button {
    bottom: 20px;
    right: 20px;
  }
  
  .post-button-link {
    width: 70px;
    height: 50px;
  }
  
  .post-button-icon {
    font-size: 14px;
  }
  
  .post-button-text {
    right: 80px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* アニメーション効果 */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }
  50% {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.6);
  }
  100% {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }
}

.floating-post-button.pulse {
  animation: pulse 2s infinite;
}

/* ボタンの表示/非表示アニメーション */
.floating-post-button.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.floating-post-button.fade-out {
  opacity: 0;
  transform: translateY(20px);
}
