/* Frontend Stilleri - Modern ve Premium Tasarım */

.ahf-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.ahf-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.ahf-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ahf-icon {
    font-size: 32px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.ahf-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.ahf-date-label {
    font-size: 12px;
    opacity: 0.9;
    margin-right: 8px;
}

.ahf-date-value {
    font-weight: 700;
    font-size: 16px;
}

/* Arama Kutusu */
.ahf-search-box {
    background: white;
    padding: 20px 30px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.ahf-search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    transition: all 0.3s ease;
    outline: none;
}

.ahf-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ahf-search-clear {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ahf-search-clear:hover {
    background: #667eea;
    color: white;
}

/* Tablo Wrapper */
.ahf-table-wrapper {
    background: white;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    overflow-x: auto;
}

/* Tablo */
.ahf-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.ahf-th {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ahf-sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.ahf-sortable:hover {
    background: linear-gradient(to bottom, #e9ecef, #dee2e6);
}

.ahf-sort-icon {
    margin-left: 5px;
    opacity: 0.5;
    font-size: 12px;
}

.ahf-sortable.active .ahf-sort-icon {
    opacity: 1;
    color: #667eea;
}

/* Tablo Satırları */
.ahf-row {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.ahf-row:hover {
    background: linear-gradient(to right, #f8f9ff, #ffffff);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ahf-row.hidden {
    display: none;
}

.ahf-td {
    padding: 16px;
    font-size: 15px;
    color: #333;
}

/* Ürün Adı */
.ahf-product-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.ahf-product-icon {
    font-size: 24px;
}

/* Fiyatlar */
.ahf-price {
    font-weight: 600;
}

.ahf-price-value {
    font-size: 18px;
}

.ahf-currency {
    font-size: 14px;
    opacity: 0.7;
    margin-left: 2px;
}

.ahf-price-low {
    color: #28a745;
}

.ahf-price-high {
    color: #dc3545;
}

.ahf-price-avg {
    color: #667eea;
}

/* Birim Badge */
.ahf-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.ahf-footer {
    background: white;
    padding: 20px 30px;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 16px 16px;
    text-align: center;
}

.ahf-info {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ahf-info-icon {
    font-size: 18px;
}

/* Veri Yok Mesajı */
.ahf-no-data {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border: 2px dashed #e0e0e0;
    border-radius: 16px;
    color: #6c757d;
    font-size: 18px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .ahf-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ahf-title {
        font-size: 22px;
    }

    .ahf-table-wrapper {
        overflow-x: scroll;
    }

    .ahf-table {
        min-width: 600px;
    }

    .ahf-th,
    .ahf-td {
        padding: 12px 8px;
        font-size: 13px;
    }

    .ahf-price-value {
        font-size: 16px;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ahf-row {
    animation: fadeIn 0.5s ease;
}

/* Sıralama Animasyonu */
.ahf-table.sorting .ahf-row {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

/* Hover Efektleri */
.ahf-sortable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.ahf-sortable:hover::after {
    width: 100%;
}