/* ===================================
   Kayalar Otomotiv - Özel SVG İkonlar & Animasyonlar
   Oto Yedek Parça Sektörü İçin Tasarlandı
   =================================== */

/* ===================================
   Araba Silueti Animasyonu (Draw Effect)
   =================================== */
.car-silhouette {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.car-silhouette path {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCar 3s ease forwards;
}

@keyframes drawCar {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===================================
   Motor Parçası Animasyonu
   =================================== */
.engine-icon {
    width: 80px;
    height: 80px;
}

.piston {
    animation: pistonMove 1s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pistonMove {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===================================
   Dönen Dişli Animasyonu
   =================================== */
.gear-icon {
    width: 60px;
    height: 60px;
}

.gear-spin {
    animation: gearRotate 4s linear infinite;
    transform-origin: center;
}

@keyframes gearRotate {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Yedek Parça İkon Seti
   =================================== */
.part-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
}

.part-icon path,
.part-icon circle,
.part-icon rect {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* İkon Hover Efekti */
.part-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    transition: var(--transition-normal);
}

.part-icon-wrapper:hover .part-icon path,
.part-icon-wrapper:hover .part-icon circle {
    stroke: var(--color-white);
}

.part-icon-wrapper:hover {
    transform: translateY(-5px);
}

/* ===================================
   Animasyonlu Hero Araba
   =================================== */
.hero-car-container {
    position: absolute;
    bottom: 10%;
    right: 5%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.hero-car {
    width: 500px;
    height: auto;
}

.hero-car path {
    stroke: var(--color-gold);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawHeroCar 4s ease forwards 0.5s;
}

@keyframes drawHeroCar {
    to {
        stroke-dashoffset: 0;
    }
}

/* Tekerlek dönme */
.wheel {
    animation: wheelSpin 2s linear infinite;
    transform-origin: center;
}

@keyframes wheelSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Parça Kategorisi İkonları
   =================================== */

/* Far İkonu */
.icon-headlight {
    position: relative;
}

.icon-headlight .light-beam {
    opacity: 0;
    animation: lightPulse 2s ease-in-out infinite;
}

@keyframes lightPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

/* Süspansiyon İkonu */
.icon-suspension .spring {
    animation: springBounce 1.5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes springBounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.85);
    }
}

/* Fren Diski İkonu */
.icon-brake .disc {
    animation: discPulse 2s ease-in-out infinite;
}

@keyframes discPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===================================
   Stats Bölümü Motor Animasyonu
   =================================== */
.stats-engine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    pointer-events: none;
    width: 300px;
    height: 300px;
}

.stats-engine .crankshaft {
    animation: crankRotate 2s linear infinite;
    transform-origin: center;
}

@keyframes crankRotate {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Araç Listesi Kartı İkonu
   =================================== */
.brand-card-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    transition: var(--transition-normal);
}

.brand-card:hover .brand-card-icon {
    opacity: 0.5;
}

/* ===================================
   Yükleniyor Animasyonu (Tekerlek)
   =================================== */
.loading-wheel {
    width: 50px;
    height: 50px;
    animation: wheelSpin 1s linear infinite;
}

.loading-wheel circle {
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2;
}

/* ===================================
   SEO İçerik Stili
   =================================== */
.seo-content {
    color: var(--color-gray-light);
    line-height: 1.9;
    font-size: 1rem;
}

.seo-content p {
    margin-bottom: 1rem;
}

.seo-content h3 {
    color: var(--color-gold);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.3rem;
}

.seo-content ul {
    list-style: none;
    padding-left: 0;
}

.seo-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.seo-content ul li::before {
    content: '✓';
    color: var(--color-gold);
    position: absolute;
    left: 0;
}

/* Anahtar Kelime Vurgusu */
.keyword {
    color: var(--color-gold);
    font-weight: 600;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .hero-car-container {
        display: none;
    }

    .stats-engine {
        width: 200px;
        height: 200px;
    }
}