/* ============================================
   Krediitkonto.ee — Indigo theme
   ============================================ */

/* Hero section — SVG pattern + indigo gradient (no background image) */
.hero-section {
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(135deg, #312e81 0%, #3730a3 40%, #4f46e5 100%);
}

/* Tab buttons */
.tab-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

.tab-btn.active {
    background: #4338ca;
    border-color: #4338ca;
    color: white;
}

/* Sort buttons */
.sort-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.sort-btn:hover {
    background: #e0e7ff;
    color: #4338ca;
}

.sort-btn.active {
    background: #4338ca;
    color: white;
}

/* CTA pulse */
.pulse-cta {
    animation: pulse-brand 2s infinite;
}

@keyframes pulse-brand {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(79, 70, 229, 0); }
}

/* FAQ accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.3s ease;
}

/* Prose links */
.prose a {
    color: #4338ca;
    text-decoration: underline;
}

.prose a:hover {
    color: #312e81;
}

/* Prose headings in articles */
.prose h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #312e81;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.prose ul li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.prose ul li::before {
    content: "\2022";
    color: #4f46e5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

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

.prose strong {
    color: #1f2937;
}

/* Mobile menu */
#mobile-menu.active {
    display: block;
}

/* Table hover */
.lender-row {
    transition: background-color 0.15s ease;
}

/* Sticky bottom nav padding for mobile */
@media (max-width: 1023px) {
    body {
        padding-bottom: 4rem;
    }
}

/* Calculator */
.calc-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.calc-input:focus {
    border-color: #4f46e5;
    outline: none;
}

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

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Lender card/row hover */
.lender-row {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}

.lender-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Reklaam (partner) badge */
.reklaam-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* Responsive table */
@media (max-width: 640px) {
    table {
        font-size: 0.75rem;
    }
    table th, table td {
        padding: 0.5rem 0.25rem;
    }
    .tab-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}
