/* assets/ilanlarim.css */
.panel-wrapper { background-color: #f9fafb; min-height: 70vh; }
.panel-header { text-align: center; margin-bottom: 3rem; }
.panel-header h1 { font-size: 2.5rem; font-weight: 800; color: #1f2937; }
.panel-header p { font-size: 1.1rem; color: #6b7280; margin-top: 0.5rem; }

.ilan-listesi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) { .ilan-listesi { grid-template-columns: repeat(2, 1fr); } }

.ilan-karti {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-left: 5px solid;
    overflow: hidden;
}
.durum-0 { border-color: #F59E0B; } /* Onay Bekliyor */
.durum-1 { border-color: #10B981; } /* Yayında */
.durum-2 { border-color: #EF4444; } /* Reddedildi */

.ilan-karti-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #F9FAFB;
}
.ilan-karti-header h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.ilan-durum {
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
}
.durum-0 .ilan-durum { background-color: #FEF3C7; color: #92400E; }
.durum-1 .ilan-durum { background-color: #D1FAE5; color: #065F46; }
.durum-2 .ilan-durum { background-color: #FEE2E2; color: #991B1B; }

.ilan-karti-body { padding: 1.5rem; }
.ilan-karti-body p { margin: 0 0 0.75rem 0; color: #4b5563; }
.ilan-karti-body p:last-child { margin-bottom: 0; }

.ilan-karti-footer {
    padding: 1rem 1.5rem;
    background-color: #F9FAFB;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.5rem;
}
.buton {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
}
.duzenle-btn { background-color: #4f46e5; }
.sil-btn-toggle { background-color: #EF4444; }

.silme-formu-container {
    display: none;
    padding: 1.5rem;
    background-color: #fef2f2;
    border-top: 1px solid #fecaca;
}
.silme-formu-container form { display: flex; gap: 0.75rem; }
.silme-formu-container input {
    flex-grow: 1;
    padding: 0.6rem;
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
}
.sil-onay-btn { background-color: #DC2626; }

.no-ilan-message {
    text-align: center;
    padding: 3rem;
    background-color: #fff;
    border-radius: 0.75rem;
}
.no-ilan-message a { color: #4f46e5; font-weight: 600; }
.success-message, .error-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.success-message { background-color: #dcfce7; color: #166534; }
.error-message { background-color: #fee2e2; color: #991b1b; }
