.tt-title{
    margin-top: 2em;
}

.tt-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.tt-categories-title {
    flex: 1;
}

.tt-categories-search {
    flex-shrink: 0;
}

.search-container {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #7b60f4;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.search-results-count {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #7b60f4;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-results-count.show {
    opacity: 1;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.category-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.category-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-action {
    text-align: right;
    margin-top: auto;
}

.btn-category {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Arama sonuçları için filtreleme */
.category-card.hidden {
    display: none;
}

.category-card.highlight {
    animation: highlightPulse 1.5s ease-in-out;
}

/* Kategori bulunamadı mesajı stilleri */
.no-categories-message,
.no-search-results-message {
    grid-column: 1 / -1;
}

.no-categories-message i,
.no-search-results-message i {
    opacity: 0.5;
}

/* Arama temizleme butonu */
.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* Resim yüklenemediğinde yedek stil */
.category-image-container::before {
    content: "📁";
    font-size: 3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    display: none;
}

.category-image-container.image-error::before {
    display: block;
}

.category-image-container.image-error .category-image {
    display: none;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .tt-categories-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .tt-categories-search {
        width: 100%;
    }
    
    .search-container {
        width: 100%;
    }
    
    .categories-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image-container {
        height: 140px;
    }
    
    .category-info {
        padding: 15px;
    }
    
    .category-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .tt-categories-header {
        gap: 15px;
    }
    
    .search-input {
        padding: 10px 40px 10px 40px;
        font-size: 13px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 13px;
    }
    
    .search-results-count {
        right: 12px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .category-image-container {
        height: 120px;
    }
}