/* Notification System */
.ach-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 99999;
    max-width: 350px;
}

.ach-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.ach-notification-success {
    background: #00a32a;
    color: #fff;
}

.ach-notification-error {
    background: #d63638;
    color: #fff;
}

/* Loading States */
.ach-post-action.loading,
.ach-join-group-btn.loading,
button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pulse Animation for Likes */
.ach-post-action.pulse {
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Active Like Button */
.ach-like-btn.active {
    color: #d63638;
}

.ach-like-btn.active .dashicons-heart {
    color: #d63638;
}

/* Comment Section */
.ach-comment-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f1;
    display: none;
}

.ach-comments-list {
    margin-bottom: 16px;
}

.ach-comment {
    padding: 12px;
    background: #f6f7f7;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ach-comment-author {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1d2327;
}

.ach-comment-content {
    font-size: 14px;
    color: #3c434a;
}

.ach-comment-time {
    font-size: 12px;
    color: #757575;
    margin-top: 4px;
}

.ach-comment-form {
    display: flex;
    gap: 8px;
}

.ach-comment-form input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
}

.ach-comment-form button {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.ach-comment-form button:hover {
    background: #135e96;
}

/* Notification Badge */
.ach-notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d63638;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Post Actions Hover */
.ach-delete-post {
    color: #d63638;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.ach-delete-post:hover {
    background: #f8d7da;
}

/* Empty States */
.ach-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.ach-empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.ach-empty-state h3 {
    margin: 0 0 8px 0;
    color: #1d2327;
}

.ach-empty-state p {
    color: #757575;
    margin-bottom: 20px;
}

/* Loading Spinner */
.ach-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin: 0 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Follow Button */
.ach-follow-btn {
    margin-top: 12px;
}

/* Responsive Notifications */
@media (max-width: 768px) {
    .ach-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Hover Effects */
.ach-member-card:hover .ach-follow-btn {
    opacity: 1;
}

.ach-member-card .ach-follow-btn {
    opacity: 0;
    transition: opacity 0.3s;
}

.ach-member-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Smooth Transitions */
.ach-post,
.ach-member-card,
.ach-group-card {
    transition: all 0.3s ease;
}

/* Interactive States */
button:disabled,
.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

/* Success Animation */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ach-post.new {
    animation: slideIn 0.5s ease;
}

