/* Custom CSS for Anot Çubuğu */
/* TailwindCSS CDN uyumlu - @apply kullanılmıyor */

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: #0284c7;
}

.nav-link-active {
    background-color: #f0f9ff;
    color: #0284c7;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #475569;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: #f1f5f9;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
    50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.6); }
}

@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-right {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 2s ease-in-out infinite;
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.5s ease-out forwards;
}

.animate-slide-right {
    animation: slide-right 0.5s ease-out forwards;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero gradient simplified */
.hero-gradient {
    position: relative;
    background-color: #f8fafc; /* Fallback */
    background: linear-gradient(180deg, #f1f5f9 0%, #e0f2fe 100%); /* Slate-100 to Blue-100 */
    z-index: 10;
}

/* Ensure content is above background */
.hero-gradient > .container {
    position: relative;
    z-index: 20;
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.15), 0 4px 6px -4px rgba(148, 163, 184, 0.15);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.25), 0 8px 10px -6px rgba(148, 163, 184, 0.25);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom right, #f1f5f9, #f8fafc);
}

.product-card-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

/* Feature Card */
.feature-card {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.15), 0 4px 6px -4px rgba(148, 163, 184, 0.15);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.1), 0 8px 10px -6px rgba(14, 165, 233, 0.1);
    transform: translateY(-4px);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(14, 165, 233, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Step Card */
.step-card {
    position: relative;
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.15), 0 4px 6px -4px rgba(148, 163, 184, 0.15);
    border: 1px solid #f1f5f9;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(to bottom right, #0ea5e9, #0284c7);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

/* Brand Card */
.brand-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.15), 0 4px 6px -4px rgba(148, 163, 184, 0.15);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

.brand-card:hover {
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.25), 0 8px 10px -6px rgba(148, 163, 184, 0.25);
    transform: translateY(-4px);
}

/* FAQ Accordion Solid */
.faq-item {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden; /* Ensure content stays inside */
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.faq-item.active {
    background-color: white;
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    color: #334155;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer; /* Ensure it looks clickable */
    pointer-events: auto; /* Re-enable clicks */
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #0ea5e9;
}

.faq-answer {
    display: none; /* Default hidden */
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75; /* Better readability */
    animation: fadeIn 0.3s ease-out;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer ul {
    margin-bottom: 0.75rem;
}

.faq-answer strong {
    color: #334155;
    font-weight: 600;
}

.faq-item.active .faq-answer {
    display: block; /* Show when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #0ea5e9, #0284c7);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    color: #0284c7;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(148, 163, 184, 0.15);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    box-shadow: 0 20px 25px -5px rgba(148, 163, 184, 0.25);
    transform: translateY(-2px);
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #f97316, #ea580c);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-accent:hover {
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-accent {
    background-color: #ffedd5;
    color: #c2410c;
}

.badge-success {
    background-color: #d1fae5;
    color: #047857;
}

/* Section Title */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 42rem;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Price styles */
.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0284c7;
}

.price-old {
    font-size: 1.125rem;
    color: #94a3b8;
    text-decoration: line-through;
}

/* Input styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease;
    resize: none;
}

.form-textarea:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.5rem;
    padding: 0.375rem 0.75rem;
    background-color: #0f172a;
    color: white;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Line clamp for descriptions */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
