/* Özel CSS Stilleri */

/* Genel Stiller */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
}

/* Kart Stilleri */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

/* Ürün Kartı Stillleri */
.product-card {
    overflow: hidden;
    margin-bottom: 20px;
}

.product-card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .card-title a {
    color: #333;
}

.product-card .card-title a:hover {
    color: #6200EA;
}

/* Görsel Konteyner - Daha büyük resim */
.card-img-container {
    height: 240px;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-img-container img {
    max-height: 100%;
    transition: transform 0.3s;
}

.card-img-container:hover img {
    transform: scale(1.05);
}

/* Kopyalama Butonu */
.btn-copy {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    color: #6c757d;
    transition: all 0.2s ease-in-out;
}

.btn-copy .code {
    font-family: monospace;
    font-weight: 600;
}

.btn-copy .copy-text {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.75rem;
    transition: opacity 0.2s ease-in-out;
}

.btn-copy:hover {
    background-color: #e2e6ea;
    border-color: #6200EA;
    color: #6200EA;
}

.btn-copy:hover .copy-text {
    opacity: 1;
}

.btn-copy.copied {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border-color: #0f5132 !important;
}

.btn-copy.copied .copy-text {
    color: #0f5132;
}

/* Etiket stilleri */
.badge.bg-secondary {
    background-color: #6c757d;
    transition: all 0.2s ease;
    padding: 0.5em 0.8em;
    font-size: 0.85em;
    text-decoration: none;
}

.badge.bg-secondary:hover {
    background-color: #6200EA !important;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Görsel Konteyner */
.object-fit-contain {
    object-fit: contain;
}

.object-fit-cover {
    object-fit: cover;
}

/* Mobil Görünüm */
@media (max-width: 576px) {
    .row-cols-2 {
        --bs-columns: 1 !important;
    }
    
    .card-img-container {
        height: 280px;
    }
}

/* Buton Stilleri */
.btn-primary {
    background-color: #6200EA;
    border-color: #6200EA;
}

.btn-primary:hover {
    background-color: #5502c7;
    border-color: #4801a3;
}

/* Header */
.header-main {
    background-color: #6200EA;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.header-main a {
    color: rgba(255,255,255,0.9);
}

.header-main a:hover {
    color: #ffffff;
}

.header-main a.brand {
    color: white;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: #311B92 !important;
}

/* Arama Kutusu */
.search-box .form-control {
    height: 50px;
    border-radius: 25px 0 0 25px;
    padding-left: 20px;
    font-size: 16px;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box .btn {
    border-radius: 0 25px 25px 0;
    padding-right: 25px;
    padding-left: 25px;
}

/* Kategori Başlıkları */
.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    color: #311B92;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #6200EA;
}

/* Kategori Kartları */
.category-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e5e9f2 100%);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6200EA;
    color: white;
    border-radius: 50%;
}

/* Breadcrumb */
.breadcrumb-item a {
    color: #6200EA;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #555;
}

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

.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Cursor Stilleri */
.cursor-pointer {
    cursor: pointer;
}

/* Özel Renk Stilleri */
.bg-light {
    background-color: #f8f9fa;
}

.bg-dark {
    background-color: #212529;
}

.bg-opacity-50 {
    --bs-bg-opacity: 0.5;
}

/* Özel konumlandırma */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.bottom-0 {
    bottom: 0;
}

.start-0 {
    left: 0;
}

.end-0 {
    right: 0;
}

/* Parça Öner Formu Stilleri */
.category-selector .card, .sub-category-item .card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-selector .card:hover, .sub-category-item .card:hover {
    border-color: #6200EA;
    transform: translateY(-2px);
}

.category-item .category-icon, .sub-category-item .category-icon {
    margin: 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6200EA;
    color: white;
    margin-bottom: 12px;
}

.selected-category-path {
    font-weight: 600;
}

#imagePreview {
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

/* Gelişmiş Arama Stilleri */
.bg-warning {
    background-color: rgba(255, 193, 7, 0.3) !important;
    padding: 0 2px;
    border-radius: 2px;
}

/* Yükleniyor animasyonu */
@keyframes spinner {
    to {transform: rotate(360deg);}
}

.fa-spinner {
    animation: spinner 1s linear infinite;
}

/* Arama sonuçları stilleri */
#search-results .section-title {
    margin-bottom: 20px;
}

.search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    border-radius: 2px;
    padding: 0 2px;
}

/* Mobil ekranlar için arama kutusu optimizasyonu */
@media (max-width: 576px) {
    .search-box .form-control {
        height: 46px;
        font-size: 14px;
    }
    
    .search-box .btn {
        font-size: 14px;
    }
}

/* Detay Sayfası Galeri Stilleri */
.part-thumbnails {
    margin-top: 10px;
}

.thumbnail-container {
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thumbnail-container.active {
    border-color: #6200EA;
}

.main-part-image {
    transition: all 0.3s ease-in-out;
}

/* Kopyala Bildirimi Toast */
.swal2-toast {
    max-width: 350px;
    font-size: 0.875rem;
}

/* Şifreleme sayfası renkleri */
.text-purple {
    color: #6f42c1;
}

.border-left-purple {
    border-left: 0.25rem solid #6f42c1!important;
} 