
/* Custom CSS for Maghreb Connect - Amateur Work Theme */
/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .ml-auto {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .mr-auto {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .space-x-reverse > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 1;
}

/* Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #fb923c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

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

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse 2s infinite;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Art Theme Styles */
.art-badge {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.art-border {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #8b5cf6, #ec4899) border-box;
}

/* Creative Hover Effects */
.art-hover:hover {
    transform: rotate(2deg) scale(1.02);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}
/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.1);
}

/* Active State */
.active-nav {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: white;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f5f5f4;
    border-top: 3px solid #ea580c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Story Ring */
.story-ring {
    background: linear-gradient(45deg, #ea580c, #dc2626, #ea580c);
    padding: 3px;
}

/* Online Status */
.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 40;
}

[dir="rtl"] .fab {
    right: auto;
    left: 20px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 30;
}

[dir="rtl"] .dark-mode-toggle {
    right: auto;
    left: 20px;
}

/* Message Notifications */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

[dir="rtl"] .notification-badge {
    right: auto;
    left: -5px;
}

/* Post Interactions */
.interaction-btn {
    transition: all 0.2s ease;
}

.interaction-btn:hover {
    transform: scale(1.1);
}

.interaction-btn.active {
    color: #dc2626;
}

/* Media Queries */
@media (max-width: 1024px) {
    .sidebar-desktop {
        display: none;
    }
}

@media (min-width: 1025px) {
    .mobile-nav {
        display: none;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}