/* SoftBilgin - Premium Dijital Ürün Platformu */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

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

/* Hero card animation */
.hero-card {
    animation: float 6s ease-in-out infinite;
}
.hero-card:nth-child(2) { animation-delay: -2s; }
.hero-card:nth-child(3) { animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-10px) rotate(var(--rotate, 0deg)); }
}

/* FAQ accordion */
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active .faq-content { display: block; }

/* Feature tabs */
.feature-tab.active {
    background-color: #4f46e5;
    color: white;
}

/* Testimonial — kayan marquee premium.css içinde */

/* Flash message fade */
[data-flash] {
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Header scroll effect */
#site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Admin table hover */
table tbody tr { transition: background-color 0.15s; }

/* Product card image placeholder gradient animation */
.product-card .bg-gradient-to-br {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Selection color */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: #312e81;
}

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

/* Cart page */
.cart-item {
    animation: cartFadeIn 0.45s ease both;
}

@keyframes cartFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-empty-icon {
    animation: cartFloat 4s ease-in-out infinite;
}

@keyframes cartFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cart-summary {
    position: relative;
}

.cart-summary::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-summary:hover::before {
    opacity: 1;
}

.cart-trust-pill {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-trust-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.cart-checkout-btn:active {
    transform: translateY(0) scale(0.98);
}

.cart-remove-btn:active {
    transform: scale(0.92);
}

/* Splash popup */
body.splash-open { overflow: hidden; }

.site-splash {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.site-splash.hidden { display: none; }

.site-splash-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.site-splash-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: min(90vh, 640px);
    overflow: auto;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: splashIn 0.35s ease;
}

@keyframes splashIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.site-splash-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-splash-image {
    height: 10rem;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.site-splash-body { padding: 1.5rem; }

.site-splash-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    margin-bottom: 0.75rem;
}

.site-splash-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.site-splash-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.site-splash-text {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
}

.site-splash-code {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    border: 1px dashed #c7d2fe;
    background: #eef2ff;
}

.site-splash-code-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6366f1;
}

.site-splash-code code {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #312e81;
}

.site-splash-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-splash-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.site-splash-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.site-splash-dismiss {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
}

.site-splash-dismiss:hover { color: #64748b; }

.splash-theme-emerald .site-splash-badge { background: rgba(16, 185, 129, 0.12); color: #059669; }
.splash-theme-emerald .site-splash-cta { background: linear-gradient(135deg, #059669, #0d9488); }
.splash-theme-amber .site-splash-badge { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.splash-theme-amber .site-splash-cta { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.splash-theme-dark .site-splash-panel { background: #0f172a; }
.splash-theme-dark .site-splash-title { color: #f8fafc; }
.splash-theme-dark .site-splash-subtitle,
.splash-theme-dark .site-splash-text { color: #cbd5e1; }

/* Sosyal kanıt bildirimleri */
.social-proof-root {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 150;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    max-width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}

.social-proof-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.social-proof-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.social-proof-toast.is-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.social-proof-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-proof-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.social-proof-content { min-width: 0; flex: 1; }

.social-proof-title {
    font-size: 0.82rem;
    color: #0f172a;
    line-height: 1.35;
}

.social-proof-action {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.45;
}

.social-proof-action strong {
    font-weight: 700;
    color: #9a7b1a;
}

.social-proof-place,
.social-proof-product {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4f46e5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-proof-time {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #94a3b8;
}

.social-proof-close {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: -0.15rem -0.15rem 0 0;
}

.social-proof-close:hover { color: #94a3b8; }

@media (max-width: 640px) {
    .social-proof-root {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}
