/**
 * Reactive Social Network Styles
 * Styling for reactive components integrated with 3888.sh
 */

/* Post Card Styles */
.post-card.reactive-post {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.post-card.reactive-post:hover {
    border-color: rgba(192, 132, 252, 0.2);
    box-shadow: 0 8px 24px rgba(192, 132, 252, 0.1);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.post-time {
    font-size: 0.8rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
    margin-top: 0.25rem;
}

.post-content {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    letter-spacing: 0.01em;
}

.post-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: rgba(192, 132, 252, 0.1);
    border-color: rgba(192, 132, 252, 0.3);
    color: #e2e8f0;
}

.action-btn.like-btn.active {
    color: #ef4444;
    border-color: #ef4444;
}

/* Message Bubble Styles */
.message-bubble.reactive-message {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    animation: slideInRight 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.01em;
}

.message-sender {
    font-weight: 600;
    font-size: 0.85rem;
    color: #c084fc;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.message-content {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

/* Notification Item Styles */
.notification-item.reactive-notification {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid transparent;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.notification-item.reactive-notification[data-read="false"] {
    border-left-color: #a855f7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.notification-item.reactive-notification:hover {
    box-shadow: 0 4px 12px rgba(192, 132, 252, 0.1);
    transform: translateX(4px);
}

.notification-title {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.notification-message {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Loading States */
.reactive-post.loading,
.reactive-message.loading,
.reactive-notification.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.reactive-post.error,
.reactive-message.error,
.reactive-notification.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
}

/* Empty States */
.empty-state-content {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.empty-state-text {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-card.reactive-post {
        padding: 1rem;
    }

    .post-actions {
        gap: 0.5rem;
    }

    .action-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Accessibility */
.post-card.reactive-post:focus-within,
.notification-item.reactive-notification:focus-within {
    outline: 2px solid #a855f7;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .post-card.reactive-post {
        page-break-inside: avoid;
        border: 1px solid #ccc;
        background: white;
        color: black;
    }

    .action-btn {
        display: none;
    }
}
