@charset "UTF-8";

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif, 'Segoe UI Symbol', 'Noto Sans', 'Apple Color Emoji';
    background-color: #f0f2f5;
    padding: 20px;
    margin: 0;
}

/* Tüm linklerin altını çizgisiz yapar */
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* ?? Arama Formu */
.search-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto 30px;
    box-sizing: border-box;
}

.search-container h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row label {
    width: 120px;
    font-weight: bold;
    color: #555;
}

.form-row input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 14px;
}

.button-container {
    text-align: center;
    margin-top: 10px;
}

.search-button {
    padding: 10px 25px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0056b3;
}

/* ?? Vefat Listesi */
.vefat-list-container {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 0 auto;
    max-width: 1000px;
    background-color: #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Masaüstü görünüm (4 sütun) */
.vefat-header, .vefat-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr; /* Ad Soyad | Vefat | Defin | Yer | Zaman */
    gap: 1px;
    background-color: #fff;
    padding: 15px;
    align-items: center;
    word-break: break-word; /* Uzun isimler taşmasın */
}

.vefat-header {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.vefat-item {
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.vefat-item:nth-child(even) {
    background-color: #f9f9f9;
}

.vefat-item div {
    padding: 5px;
}

.vefat-item:hover {
    background-color: #e9e9e9;
}

/* ?? Detay Kutusu */
.vefat-detail-container {
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.vefat-detail-container.open {
    max-height: 200px;
    padding: 15px;
}

/* ?? Sayfalama */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-pages {
    display: flex;
    gap: 5px;
}

.pagination-pages a, .pagination-controls select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    color: #007bff;
    background-color: #fff;
    transition: background-color 0.3s;
}

.pagination-pages a:hover {
    background-color: #e9e9e9;
}

.pagination-pages a.active {
    background-color: #007bff;
    color: #fff;
}

/* ?? Mobil görünüm */
@media (max-width: 768px) {
    .vefat-header {
        display: none; /* Başlık gizlensin */
    }

    .vefat-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        background: #fff;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .vefat-item div {
        width: 100%;
        padding: 6px 0;
        border-bottom: 1px solid #eee;
    }

    .vefat-item div:last-child {
        border-bottom: none;
    }

    .vefat-item::before {
        content: "Vefat Kaydı"; /* Unicode kuş işareti */
        font-weight: bold;
        margin-bottom: 8px;
        color: #007bff;
    }
}
