/* BHB Hukuk - ana sayfa ve genel iyileştirmeler */
.line-clamp-2 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[x-cloak] { display: none !important; }

/* Yumuşak geçişler */
@media (prefers-reduced-motion: no-preference) {
    .group:hover .group-hover\:scale-105 { transition: transform 0.4s ease-out; }
}

:root {
    scroll-behavior: smooth;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.45);
    outline-offset: 3px;
}

::selection {
    background: rgba(220, 38, 38, 0.25);
}

.shadow-soft {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.shadow-lift {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Premium kırık beyaz tonları için ek stiller */
.bg-cream-white {
    background-color: #faf9f7;
}

.bg-cream-white-light {
    background-color: #f7f5f2;
}

.bg-cream-white-dark {
    background-color: #f4f2ed;
}

/* Premium hover efektleri */
.premium-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Yumuşak border efektleri */
.border-cream {
    border-color: rgba(120, 113, 108, 0.2);
}

/* Premium card efekti */
.premium-card {
    background: linear-gradient(135deg, rgba(250, 249, 247, 0.95) 0%, rgba(247, 245, 242, 0.95) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(120, 113, 108, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: rgba(120, 113, 108, 0.25);
}

.link-underline {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-size: 0% 2px;
    background-repeat: no-repeat;
    transition: background-size 220ms ease;
}

.link-underline:hover {
    background-size: 100% 2px;
}

.bg-noise {
    background-image:
        radial-gradient(ellipse at top, rgba(220, 38, 38, 0.06), transparent 55%),
        radial-gradient(ellipse at bottom, rgba(26, 26, 46, 0.04), transparent 55%),
        linear-gradient(to bottom, rgba(250, 249, 247, 0.95), rgba(250, 249, 247, 1));
}

/* Hide scrollbars (used for horizontal carousels) */
 .hide-scrollbar {
     -ms-overflow-style: none;
     scrollbar-width: none;
 }

 .hide-scrollbar::-webkit-scrollbar {
     display: none;
 }

 @keyframes marquee-scroll {
     0% {
         transform: translate3d(0, 0, 0);
     }
     100% {
         transform: translate3d(-50%, 0, 0);
     }
 }

 .marquee {
     position: relative;
     overflow: hidden;
     backface-visibility: hidden;
     -webkit-backface-visibility: hidden;
     transform: translate3d(0, 0, 0);
 }

 .marquee::before,
 .marquee::after {
     content: "";
     position: absolute;
     top: 0;
     bottom: 0;
     width: 72px;
     z-index: 10;
     pointer-events: none;
 }

 .marquee::before {
     left: 0;
     background: linear-gradient(to right, var(--marquee-fade, rgba(250, 249, 247, 1)), rgba(250, 249, 247, 0));
 }

 .marquee::after {
     right: 0;
     background: linear-gradient(to left, var(--marquee-fade, rgba(250, 249, 247, 1)), rgba(250, 249, 247, 0));
 }

 .marquee-track {
     display: flex;
     width: max-content;
     will-change: transform;
     animation: marquee-scroll var(--marquee-duration, 34s) linear infinite;
 }

 .marquee img {
     transform: translate3d(0, 0, 0);
     backface-visibility: hidden;
     -webkit-backface-visibility: hidden;
 }

 .lawyer-photo img {
     transform: translate3d(0, 0, 0);
     backface-visibility: hidden;
     -webkit-backface-visibility: hidden;
 }

 .marquee:hover .marquee-track {
     animation-play-state: paused;
 }

 .marquee--no-fade::before,
 .marquee--no-fade::after {
     display: none;
 }

 .pattern-grid {
     position: absolute;
     inset: 0;
     background-image:
         linear-gradient(to right, rgba(26, 26, 46, 0.06) 1px, transparent 1px),
         linear-gradient(to bottom, rgba(26, 26, 46, 0.06) 1px, transparent 1px);
     background-size: 20px 20px;
     opacity: 0.12;
     mask-image: radial-gradient(closest-side at 35% 0%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
     -webkit-mask-image: radial-gradient(closest-side at 35% 0%, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
 }

/* Premium animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Premium scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f7f5f2;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 113, 108, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 113, 108, 0.5);
}

/* Premium focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(220, 38, 38, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
    outline: none;
}

/* Premium slider background gradients */
.bg-gradient-radial {
    background: radial-gradient(circle, var(--tw-gradient-stops));
}

/* Premium animated glow effect */
@keyframes premium-glow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.premium-glow {
    animation: premium-glow 6s ease-in-out infinite;
}

/* Premium mesh gradient support */
.bg-mesh-gradient {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(185, 28, 28, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 50% 50%, rgba(153, 27, 27, 0.08) 0%, transparent 50%);
}
