/* iOS Modern Comment System Styles */
.ios-comment {
  transition: all 0.2s ease-out;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ios-comment:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.ios-reply {
  transition: all 0.2s ease-out;
}

.ios-reply:hover {
  background: rgba(118,118,128,0.12) !important;
}

/* iOS Modern Comment System Styles */
.ios-comment {
  transition: all 0.2s ease-out;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ios-comment:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
}

.ios-reply {
  transition: all 0.2s ease-out;
}

.ios-reply:hover {
  background: rgba(118,118,128,0.12) !important;
}

/* Clean iOS Action Buttons */
.ios-action-btn {
  transition: all 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ios-action-btn:hover {
  background: rgba(118,118,128,0.08) !important;
  transform: scale(1.02);
}

.ios-action-btn:active {
  transform: scale(0.98);
  background: rgba(118,118,128,0.16) !important;
}

/* Special hover for different button types */
.ios-action-btn[style*="#FF3B30"]:hover {
  background: rgba(255,59,48,0.06) !important;
  color: #FF3B30 !important;
}

.ios-action-btn[style*="#8E8E93"]:hover {
  background: rgba(142,142,147,0.1) !important;
  color: #007AFF !important;
}

.load-more-btn:hover {
  background: rgba(0,122,255,0.12) !important;
  transform: scale(1.02);
}

.ios-quote {
  transition: all 0.2s ease-out;
}

/* Light/Dark mode support */
@media (prefers-color-scheme: dark) {
  .ios-comment {
    background: #1C1C1E !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
  }
  
  .ios-comment span,
  .ios-reply span,
  .ios-comment div,
  .ios-reply div {
    color: #FFFFFF !important;
  }
  
  .ios-comment .comment-time,
  .ios-reply .comment-time {
    color: #8E8E93 !important;
  }
  
  .ios-reply {
    background: rgba(118,118,128,0.16) !important;
  }
  
  .ios-quote {
    background: rgba(118,118,128,0.24) !important;
  }
  
  /* Dark mode action buttons */
  .ios-action-btn[style*="#8E8E93"] {
    color: #8E8E93 !important;
  }
  
  .ios-action-btn[style*="#8E8E93"]:hover {
    color: #007AFF !important;
    background: rgba(0,122,255,0.08) !important;
  }
}

/* Smooth animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ios-comment,
.ios-reply {
  animation: fadeInUp 0.3s ease-out;
}

/* Button ripple effect */
.ios-btn {
  position: relative;
  overflow: hidden;
}

.ios-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0,122,255,0.2);
  transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
  transform: translate(-50%, -50%);
}

.ios-btn:active::before {
  width: 120%;
  height: 120%;
}

/* Typography refinements */
.ios-comment,
.ios-reply {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .ios-comment {
    border-radius: 16px !important;
    margin: 8px 0 !important;
  }
  
  .ios-comment .comment-header,
  .ios-reply .comment-header {
    padding: 12px 16px !important;
    gap: 10px !important;
  }
  
  .ios-comment .comment-content {
    padding: 12px 16px !important;
  }
  
  .ios-comment .comments__actions {
    padding: 8px 16px !important;
    gap: 16px !important;
  }
  
  .ios-reply {
    border-radius: 12px !important;
    margin: 6px 0 !important;
  }
}

/* Override existing comment styles for clean iOS design */
.comments__item {
  background: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.comments__content {
  color: inherit !important;
}

/* Remove all unnecessary borders */
.ios-comment .comment-header,
.ios-reply .comment-header {
  border: none !important;
  border-bottom: none !important;
}

.ios-comment .comments__actions,
.ios-reply .comment-actions {
  border: none !important;
  border-top: none !important;
}

/* Clean separator-free design */
.ios-comment,
.ios-reply {
  border: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Clean slate for iOS design */
.ios-comment *,
.ios-reply * {
  box-sizing: border-box;
}

/* Accessibility improvements */
.ios-btn:focus {
  outline: 2px solid #007AFF;
  outline-offset: 2px;
}

/* Subtle premium user highlights */
.ios-comment:has(.fas.fa-crown[style*="#007AFF"]) {
  box-shadow: 0 1px 3px rgba(0,122,255,0.2) !important;
}

.ios-comment:has(.fas.fa-crown[style*="#FF9500"]) {
  box-shadow: 0 1px 3px rgba(255,149,0,0.15) !important;
}