/* Genel Ayarlar ve Resetleme */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d; /* Daha koyu arka plan */
    color: #e0e0e0; /* Açık gri yazı rengi */
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Header Alanı */
header {
    background-color: #1a1a1a; /* Koyu gri header */
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #333;
}

.logo-container {
    margin-bottom: 15px;
}

.logo-container img {
    max-height: 80px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff; /* Beyaz başlık */
    margin-bottom: 15px;
}

.ayet-container {
    max-width: 600px;
    margin: 0 auto 20px auto;
    font-style: italic;
    color: #a0a0a0; /* Açık gri ayet rengi */
}

.ayet-tr {
    font-size: 1rem;
    margin-bottom: 10px;
}

.ayet-ar {
    font-size: 1.2rem;
    direction: rtl; /* Arapça için sağdan sola */
}

/* İlan Listesi */
.ilan-listesi {
    background-color: #1a1a1a; /* Koyu gri liste arka planı */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Daha belirgin gölge */
}

.ilan-header {
    display: flex;
    background-color: #333; /* Header için orta gri */
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
}

.col-adi { flex: 3; }
.col-tarih { flex: 2; text-align: center; }
.col-yas { flex: 1; text-align: center; }
.col-toggle { flex: 0 0 40px; text-align: right; }

.ilan-item {
    border-bottom: 1px solid #282828; /* Daha koyu ayırıcı */
}
.ilan-item:last-child {
    border-bottom: none;
}

.ilan-summary {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #2a2a2a; /* Özete daha koyu gri arka plan */
    transition: background-color 0.3s ease;
}

.ilan-summary:hover {
    background-color: #3d3d3d; /* Hover'da biraz daha açılır */
}

.ilan-summary .col-toggle svg {
    fill: #e0e0e0;
    transition: transform 0.3s ease;
}

.ilan-item.active .ilan-summary .col-toggle svg {
    transform: rotate(180deg);
}

.ilan-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #1e1e1e; /* Detaylar için biraz daha açık koyu gri */
    padding: 0 20px;
}

.ilan-item.active .ilan-details {
    max-height: 500px; /* Genişleyeceği maksimum yükseklik */
    padding: 20px;
}

.ilan-details ul {
    list-style: none;
    margin-bottom: 15px;
}

.ilan-details ul li {
    padding: 8px 0;
    border-bottom: 1px solid #282828; /* Ayırıcı rengi */
    display: flex;
    justify-content: space-between;
}
.ilan-details ul li:last-child {
    border-bottom: none;
}

.ilan-details ul li strong {
    color: #cccccc; /* Kalın yazılar için daha açık gri */
    margin-right: 10px;
}

.taziye {
    text-align: center;
    font-style: italic;
    color: #a0a0a0;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #282828; /* Ayırıcı rengi */
}

/* Modal (Pop-up Form) */
.add-button {
    background-color: #444444; /* Koyu gri buton */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin-top: 20px; /* Header'daki buton için boşluk */
}
.add-button:hover {
    background-color: #666666; /* Hover'da açık gri */
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Daha koyu şeffaf arka plan */
}

.modal-content {
    background-color: #1a1a1a; /* Modal içeriği için koyu gri */
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #333;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover,
.close-button:focus {
    color: #fff;
}

#ilanForm {
    display: flex;
    flex-direction: column;
}

#ilanForm input, #ilanForm button {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #444; /* Gri kenarlık */
    background-color: #282828; /* Giriş alanları için koyu gri */
    color: #e0e0e0;
    font-size: 1rem;
}

#ilanForm input::placeholder {
    color: #888;
}

#ilanForm hr {
    border: 1px solid #333;
    margin: 10px 0 20px 0;
}

#ilanForm p {
    text-align: center;
    color: #ccc;
    margin-bottom: 15px;
}

#ilanForm button {
    background-color: #555555; /* Gönder butonu için orta gri */
    cursor: pointer;
    font-weight: bold;
}
#ilanForm button:hover {
    background-color: #777777; /* Hover'da biraz daha açık gri */
}

#formMessage {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}
#formMessage.success { background-color: #28a745; color: white; } /* Başarı için yeşil */
#formMessage.error { background-color: #dc3545; color: white; } /* Hata için kırmızı */