/* Social Wall Styles */
.social-wall {
    max-width: 100%;
}

.social-wall .card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.social-wall .card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Post Items */
.post-item {
    transition: all 0.2s ease;
}

.post-item:hover {
    transform: translateY(-1px);
}

.post-content {
    line-height: 1.6;
}

.post-content p {
    margin-bottom: 0;
}

/* Author Avatar */
.post-item .w-12.h-12 img,
.reply-section .w-8.h-8 img {
    transition: transform 0.2s ease;
}

.post-item:hover .w-12.h-12 img {
    transform: scale(1.05);
}

/* Media Grid Styles */
.post-content img {
    transition: transform 0.3s ease;
}

.post-content img:hover {
    transform: scale(1.02);
}

/* Interactive Elements */
.reaction-btn,
.reply-btn,
.share-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.reaction-btn:hover,
.reply-btn:hover,
.share-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.reaction-btn.text-primary {
    color: #ef4444 !important;
}

.reaction-btn.text-primary i {
    color: #ef4444 !important;
}

/* Follow Button */
.follow-btn {
    min-width: 120px;
    transition: all 0.2s ease;
}

.follow-btn:hover {
    transform: translateY(-1px);
}

/* Create Post Section */
#new-post-text {
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

#new-post-text:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Reply Section */
.reply-section {
    animation: slideDown 0.3s ease-out;
    border-top: 1px solid #e5e7eb;
}

.reply-section.hidden {
    display: none;
}

.reply-text {
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

.reply-text:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-item {
    animation: fadeIn 0.5s ease-out;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
    background-color: transparent;
    color: #374151;
    border-color: #d1d5db;
}

.btn-ghost:hover:not(:disabled) {
    background-color: #f9fafb;
    color: #111827;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .social-wall .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .social-wall .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-item .flex-col {
        flex-direction: column;
    }
    
    .post-item .md\\:flex-row {
        flex-direction: column;
    }
    
    .social-wall .space-x-6 {
        gap: 1rem;
    }
    
    .social-wall .space-x-4 {
        gap: 0.75rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Post Menu */
.post-menu-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.post-item:hover .post-menu-btn {
    opacity: 1;
}

/* Empty State */
.social-wall .card .text-center {
    color: #6b7280;
}

.social-wall .card .text-center i {
    opacity: 0.5;
}

/* Notification Styles */
.fixed.top-4.right-4 {
    z-index: 1000;
}

/* Social Stats */
.social-wall .border-b .flex .text-center {
    min-width: 60px;
}

.social-wall .border-b .text-xl {
    font-variant-numeric: tabular-nums;
}

/* Media Aspect Ratios */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Visibility Indicators */
i[data-lucide="globe"],
i[data-lucide="users"],
i[data-lucide="lock"] {
    opacity: 0.6;
}

/* Text Formatting */
.whitespace-pre-line {
    white-space: pre-line;
}

/* Focus States */
.social-wall *:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.social-wall input:focus,
.social-wall textarea:focus,
.social-wall select:focus {
    outline: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .social-wall .btn,
    .social-wall .reply-section,
    .social-wall .create-post {
        display: none !important;
    }
}