/* ============================
   Akü Bulucu - Özel Stiller
   ============================ */

/* Sayfa Başlığı */
.page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary, #64748b);
    margin-top: 0.5rem;
}

/* ---- Finder Formu ---- */
.finder-section {
    margin-bottom: 2rem;
}

.finder-form {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--color-border, #e2e8f0);
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    overflow: hidden;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label svg {
    opacity: 0.6;
}

.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-primary, #1e293b);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.form-group select:hover:not(:disabled) {
    border-color: var(--color-accent, #2563eb);
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group select:disabled {
    background-color: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group select.active-select {
    border-color: var(--color-accent, #2563eb);
    background-color: #f0f7ff;
}

/* ---- Loading ---- */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--color-text-secondary, #64748b);
    font-size: 0.95rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--color-accent, #2563eb);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Sonuç Alanı ---- */
.results-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-header h2 {
    font-size: 1.5rem;
    color: var(--color-text-primary, #1e293b);
    margin-bottom: 0.25rem;
}

.results-header p {
    color: var(--color-text-secondary, #64748b);
    font-size: 0.95rem;
}

/* ---- Önerilen Ürün ---- */
.recommended-product {
    margin-bottom: 2rem;
}

.recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md, 10px) var(--radius-md, 10px) 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card {
    background: white;
    border-radius: 0 var(--radius-lg, 16px) var(--radius-lg, 16px) var(--radius-lg, 16px);
    padding: 1.75rem;
    border: 2px solid var(--color-border, #e2e8f0);
    transition: all 0.3s ease;
}

.product-card.recommended {
    /* border-color: #f59e0b; */
    /* box-shadow: 0 8px 32px rgba(245, 158, 11, 0.15); */
    border-color: var(--color-border, #e2e8f0);
    /* Reset to standard */
    box-shadow: none;
    /* Reset to standard */
}

.product-card-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.75rem;
    align-items: center;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: var(--radius-md, 10px);
    background: #f8fafc;
    padding: 1rem;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    width: fit-content;
}

.product-brand-tag.hella {
    background: #fef3c7;
    color: #92400e;
}

.product-brand-tag.varta {
    background: #dbeafe;
    color: #1e40af;
}

.product-brand-tag.other {
    background: #f1f5f9;
    color: #475569;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-primary, #1e293b);
    line-height: 1.3;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: #f1f5f9;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
}

.spec-tag svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.warranty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    width: fit-content;
}

.warranty-badge svg {
    width: 16px;
    height: 16px;
}

.recommended-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent, #2563eb);
}

.product-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.product-dimensions {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ---- Diğer Ürünler ---- */
.other-products {
    margin-top: 2rem;
    background: white;
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
}

.other-products-title {
    font-size: 1.15rem;
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 1rem;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.product-card-small {
    background: white;
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    border: 2px solid var(--color-border, #e2e8f0);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.product-card-small:hover {
    border-color: var(--color-accent, #2563eb);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-card-small .product-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
    padding: 0.75rem;
}

.product-card-small .product-info {
    gap: 0.4rem;
}

.product-card-small .product-name {
    font-size: 1rem;
}

.product-card-small .product-price {
    font-size: 1.15rem;
}

/* ---- Ürün Bulunamadı ---- */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--color-border, #e2e8f0);
}

.no-results h3 {
    font-size: 1.25rem;
    color: var(--color-text-primary, #1e293b);
    margin: 1rem 0 0.5rem;
}

.no-results p {
    color: var(--color-text-secondary, #64748b);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Sonuç CTA ---- */
.results-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .finder-form {
        padding: 1.25rem;
    }

    .product-card-inner {
        grid-template-columns: 1fr;
    }

    .product-image {
        max-width: 200px;
        margin: 0 auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-small {
        flex-direction: column;
        text-align: center;
    }

    .results-cta {
        flex-direction: column;
    }


    .results-cta .cta-button {
        text-align: center;
    }
}

/* ---- Uyarı Mesajı ---- */
.warning-box {
    display: flex;
    gap: 1rem;
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md, 10px);
    padding: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.warning-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.warning-icon svg {
    width: 24px;
    height: 24px;
}

.warning-content {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

/* ---- Mobil Düzeltmeler ---- */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .finder-form {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-image {
        padding: 0.5rem;
    }

    .recommended-badge {
        font-size: 0.75rem;
    }

    .product-name {
        font-size: 1.1rem;
    }

    .product-price {
        font-size: 1.25rem;
    }

    /* Taşmaları önle */
    img,
    svg,
    video,
    canvas,
    audio,
    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .logo-container img {
        max-width: 160px;
        height: auto;
    }
}

/* ---- Tıklanabilir Kartlar ---- */
.product-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.product-link-wrapper:hover {
    transform: translateY(-3px);
}

/* Küçük kartlar zaten flex ve hover efektine sahip, a tag olunca da bozulmamalı */
a.product-card-small {
    text-decoration: none;
    color: inherit;
    display: flex;
}

/* ---- Ruhsat Bilgi Kutusu ---- */
.ruhsat-info-box {
    background: white;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    margin-top: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ruhsat-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ruhsat-info-header:hover {
    background: #f8fafc;
}

.ruhsat-info-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary, #64748b);
}

.ruhsat-info-title svg {
    color: var(--color-accent, #2563eb);
    flex-shrink: 0;
}

.ruhsat-toggle-icon {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-secondary, #64748b);
    transition: transform 0.3s ease;
}

.ruhsat-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.ruhsat-info-box.open .ruhsat-info-content {
    max-height: 400px;
    padding: 0 1.25rem 1.25rem;
}

.ruhsat-info-box.open .ruhsat-toggle-icon {
    transform: rotate(45deg);
}

.ruhsat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ruhsat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-md, 10px);
    border: 1px solid #e2e8f0;
}

.ruhsat-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.25rem 0.5rem;
    background: var(--color-primary, #0a2540);
    color: white;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.ruhsat-label {
    font-size: 0.82rem;
    color: var(--color-text-primary, #1e293b);
    line-height: 1.3;
}

.ruhsat-note {
    font-size: 0.8rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.5;
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: #fffbeb;
    border-radius: var(--radius-md, 10px);
    border: 1px solid #fcd34d;
}

@media (max-width: 600px) {
    .ruhsat-grid {
        grid-template-columns: 1fr;
    }
}


/* ---- SEO İçerik Bölümü ---- */
.seo-content-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem 0;
    border-top: 1px solid var(--color-border, #e2e8f0);
}

.seo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary, #1e293b);
    margin-bottom: 1rem;
    text-align: center;
}

.seo-intro {
    font-size: 1rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.7;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.seo-brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.seo-brand-card {
    background: white;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.seo-brand-card:hover {
    border-color: var(--color-accent, #2563eb);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.seo-brand-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary, #1e293b);
    margin-bottom: 0.5rem;
}

.seo-brand-card p {
    font-size: 0.88rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.seo-faq {
    max-width: 720px;
    margin: 0 auto;
}

.seo-faq-item {
    background: white;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
}

.seo-faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary, #1e293b);
    margin-bottom: 0.4rem;
}

.seo-faq-item p {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #64748b);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 900px) {
    .seo-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .seo-content-section {
        padding: 2rem 0;
    }

    .seo-brands-grid {
        grid-template-columns: 1fr;
    }

    .seo-title {
        font-size: 1.25rem;
    }
}
