/* Custom styles for Dadpors website */

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

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

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

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Mobile menu animations */
.mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu {
    transition: transform 0.3s ease-in-out;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease-in-out;
}

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

/* Card hover effects */
.card {
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Shine effect */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.shine:hover::before {
    left: 100%;
}

/* Dark mode toggle */
.dark-mode-toggle {
    transition: all 0.3s ease-in-out;
}

.dark-mode-toggle::after {
    transition: transform 0.3s ease-in-out;
}

/* FAQ details styling */
details summary {
    cursor: pointer;
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    float: left;
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 5px;
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '-';
    transform: rotate(0deg);
}

/* Responsive text */
@media (max-width: 768px) {
    .text-responsive {
        font-size: 0.875rem;
    }
}

/* Loading animation */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Custom focus styles */
.focus-ring:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Print styles */
/* Line clamp utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar specific styles */
.sidebar-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .sidebar-section {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Hover effects for related content */
.related-item {
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark .related-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb improvements */
.breadcrumb-item {
    transition: color 0.2s ease;
}

@media print {
    .no-print {
        display: none !important;
    }
}
