/* Selldiers - Custom styles */

/* Line clamp utility for text truncation */
.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;
}

/* Aspect ratio for video embeds */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Smooth page transitions */
.page-transition {
    transition: opacity 0.3s ease-in-out;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile menu animation */
[x-cloak] {
    display: none !important;
}

/* Prose styles for content */
.prose {
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose a {
    color: #0ea5e9;
    text-decoration: underline;
}

.prose a:hover {
    color: #0284c7;
}

/* Premium badge animation */
.premium-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(249, 115, 22, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(249, 115, 22, 0.8);
    }
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.verified-badge:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Sticky sidebar */
.sticky-sidebar {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

/* Filter panel mobile */
@media (max-width: 1023px) {
    .filter-panel {
        position: fixed;
        inset: 0;
        z-index: 50;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .filter-panel.open {
        transform: translateX(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print styles */
@media print {
    header,
    footer,
    .no-print {
        display: none !important;
    }

    .print-break {
        page-break-before: always;
    }
}
