/* ──────────────────────────────────────
   Faselis Sağlık Ürünleri - Custom CSS
   ────────────────────────────────────── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Line clamp utilities */
.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;
}

/* Custom scroll bar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.5s ease-out forwards; }

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Hero gradient animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Product card image hover */
.product-card:hover .product-image {
    transform: scale(1.05);
}
.product-image {
    transition: transform 0.5s ease;
}

/* Tab styling */
.tab-active {
    color: #0284c7;
    border-bottom-color: #0284c7;
}

/* Prose content styling */
.prose-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; color: #1e293b; }
.prose-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.25rem 0 0.5rem; color: #334155; }
.prose-content p { margin-bottom: 1rem; line-height: 1.75; color: #475569; }
.prose-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-content ul li { margin-bottom: 0.375rem; color: #475569; }
.prose-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose-content table td,
.prose-content table th { padding: 0.625rem 1rem; border: 1px solid #e2e8f0; font-size: 0.875rem; }
.prose-content table tr:nth-child(even) { background: #f8fafc; }
.prose-content table td:first-child { font-weight: 600; color: #1e293b; background: #f1f5f9; white-space: nowrap; }
.prose-content img { border-radius: 0.75rem; margin: 1rem 0; max-width: 100%; }
.prose-content a { color: #0284c7; text-decoration: underline; }
.prose-content a:hover { color: #0369a1; }

/* Admin sidebar custom styles */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #94a3b8;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.875rem;
}
.sidebar-link:hover {
    background: #1e293b;
    color: #fff;
}
.sidebar-link.active {
    background: #334155;
    color: #fff;
    font-weight: 500;
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Print styles */
@media print {
    header, footer, .whatsapp-btn, nav { display: none !important; }
    main { margin: 0; padding: 0; }
}
