/* hbWPFormsDisplayEntries - Modern Stil */

/* Genel */
.hbwpfde-entries-list {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 100%;
    margin: 20px 0;
}

/* Arama Formu */
.hbwpfde-search-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.hbwpfde-search-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hbwpfde-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.hbwpfde-search-input:focus {
    outline: none;
    border-color: #4a90e2;
}

.hbwpfde-search-button {
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hbwpfde-search-button:hover {
    background: #357abd;
}

.hbwpfde-clear-search {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.hbwpfde-clear-search:hover {
    background: #f8d7da;
    text-decoration: none;
}

/* Arama Bilgisi */
.hbwpfde-search-info {
    margin: 8px 0 0 0;
    color: #6c757d;
    font-size: 12px;
}

.hbwpfde-search-info strong {
    color: #495057;
}

/* İstatistikler */
.hbwpfde-stats {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #e9ecef;
}

.hbwpfde-count {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

.hbwpfde-count strong {
    color: #212529;
    font-size: 18px;
}

/* Tablo Görünümü */
.hbwpfde-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hbwpfde-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.hbwpfde-table thead {
    background: #343a40;
    color: white;
}

.hbwpfde-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.hbwpfde-table th.hbwpfde-th-number {
    width: 50px;
    text-align: center;
}

.hbwpfde-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.hbwpfde-table tbody tr:hover {
    background: #f8f9fa;
}

.hbwpfde-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.hbwpfde-table tbody tr:nth-child(even):hover {
    background: #e9ecef;
}

/* Kart Görünümü */
.hbwpfde-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hbwpfde-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.hbwpfde-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.hbwpfde-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.hbwpfde-card-body {
    padding: 20px;
}

.hbwpfde-card-body p {
    margin: 8px 0;
    color: #495057;
    font-size: 14px;
}

.hbwpfde-card-body strong {
    color: #212529;
}

.hbwpfde-card-date {
    margin-top: 15px !important;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #6c757d !important;
}

/* Liste Görünümü */
.hbwpfde-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.hbwpfde-list-item {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.hbwpfde-list-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hbwpfde-list-number {
    width: 40px;
    height: 40px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-right: 15px;
    flex-shrink: 0;
}

.hbwpfde-list-content {
    flex: 1;
}

.hbwpfde-list-content h4 {
    margin: 0 0 10px 0;
    color: #212529;
    font-size: 16px;
}

.hbwpfde-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hbwpfde-meta-item {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
}

/* Sayfalama */
.hbwpfde-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.hbwpfde-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hbwpfde-page-link:hover {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    text-decoration: none;
}

.hbwpfde-page-link.hbwpfde-current {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
    font-weight: 700;
}

.hbwpfde-page-link.hbwpfde-dots {
    border: none;
    background: transparent;
    cursor: default;
}

.hbwpfde-page-link.hbwpfde-dots:hover {
    background: transparent;
    color: #495057;
}

/* Sonuç Bulunamadı */
.hbwpfde-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.hbwpfde-no-results p {
    margin: 10px 0;
    color: #6c757d;
    font-size: 16px;
}

.hbwpfde-no-results p:first-child {
    font-size: 20px;
    color: #495057;
    font-weight: 600;
}

/* Hata Mesajı */
.hbwpfde-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
}

.hbwpfde-error p {
    margin: 0;
}

/* Responsive Tasarım */
@media screen and (max-width: 768px) {
    .hbwpfde-cards-grid {
        grid-template-columns: 1fr;
    }

    .hbwpfde-table-wrapper {
        font-size: 13px;
    }

    .hbwpfde-table th,
    .hbwpfde-table td {
        padding: 8px 10px;
    }

    .hbwpfde-search-wrapper {
        flex-direction: column;
    }

    .hbwpfde-search-input {
        width: 100%;
    }

    .hbwpfde-list-item {
        flex-direction: column;
    }

    .hbwpfde-list-number {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .hbwpfde-list-meta {
        flex-direction: column;
    }

    .hbwpfde-pagination {
        gap: 3px;
    }

    .hbwpfde-page-link {
        min-width: 35px;
        height: 35px;
        font-size: 13px;
        padding: 0 8px;
    }
}

/* Mobil Tablo */
@media screen and (max-width: 600px) {
    .hbwpfde-table thead {
        display: none;
    }

    .hbwpfde-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow: hidden;
    }

    .hbwpfde-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        border-bottom: 1px solid #e9ecef;
    }

    .hbwpfde-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
        margin-right: 10px;
    }

    .hbwpfde-table td:last-child {
        border-bottom: none;
    }
}
