<style>
/* Genel Stiller */
:root {
    --primary-color: #3498db;
    --secondary-color: #f39c12;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --light-color: #e74c3c;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f1f5f9;
    overflow-x: hidden; /* Yatay kaydırmayı önle */
}

.container {
    max-width: 100%; /* Tam genişlik */
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%; /* Tam genişlik */
}

/* Kart Görünümü Stilleri */
.ilan-grid.kart-gorunum {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* Tam genişlik */
}

.ilan-kart {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%; /* Tam genişlik */
}

.ilan-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.kart-ust {
    display: flex;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #eee;
    gap: 5px;
    width: 100%; /* Tam genişlik */
}

.kart-baslik {
    font-size: 1.1em;
    margin: 0;
    flex: 1;
    color: #2c3e50;
}

.kart-tur {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.kart-tur.is-ilan {
    background-color: rgba(243, 156, 18, 0.2);
    color: #d35400;
}

.kart-tur.eleman-ilan {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.kart-icerik {
    padding: 15px;
    flex: 1;
    width: 100%; /* Tam genişlik */
}

.kart-aciklama {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Tam genişlik */
}

.kart-detaylar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%; /* Tam genişlik */
}

.kart-detay {
    font-size: 0.8em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.kart-detay i {
    color: var(--primary-color);
    font-size: 0.9em;
}

.kart-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    width: 100%; /* Tam genişlik */
}

.view-count {
    color: #888;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Tarih Kartı Stilleri */
.tarih-kart {
    padding: 4px;
}

.tarih-icerik {
    display: inline-block;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 3px 5px;
    text-align: center;
    background: #f9f9f9;
    min-width: 50px;
}

.tarih-gun {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.tarih-ay {
    display: block;
    font-size: 0.65em;
    color: #666;
    text-transform: uppercase;
    margin: 2px 0;
}

.tarih-yil {
    display: block;
    font-size: 0.65em;
    color: #999;
}

/* Görünüm Seçici */
.gorunum-secici {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    width: 100%; /* Tam genişlik */
}

.gorunum-buton {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.gorunum-buton:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.gorunum-buton:last-child {
    border-radius: 0 4px 4px 0;
}

.gorunum-buton.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gorunum-buton i {
    margin-right: 5px;
}

/* Filtreleme Alanı */
.filtre-ust {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%; /* Tam genişlik */
}

.arama-grup {
    display: flex;
    margin-bottom: 15px;
    width: 100%; /* Tam genişlik */
}

.arama-grup input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    width: 100%; /* Tam genişlik */
}

.arama-grup button {
    padding: 0 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

.filtreler {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%; /* Tam genişlik */
}

.filtreler select, 
.filtreler input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
    flex: 1;
}

.filtre-button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
}

.filtre-button:hover {
    background: #2980b9;
}

.detail-btn {
    border-radius: 5px;
    padding: 5px 10px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.detail-btn.is-ilan {
    background-color: var(--secondary-color);
}

.detail-btn.eleman-ilan {
    background-color: var(--primary-color);
}

.filtre-temizle {
    background-color: #c0392b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
}

.filtre-temizle:hover {
    background-color: var(--primary-color);
}

/* Tablo Stilleri */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.9em;
    width: 100%; /* Tam genişlik */
}

.ilan-table {
    width: 100%; /* Tam genişlik */
    border-collapse: collapse;
}

.ilan-table th {
    background: var(--light-color);
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.ilan-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.85em;
}

.ilan-table tr:hover {
    background-color: #f9f9f9;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    flex-wrap: wrap;
    width: 100%; /* Tam genişlik */
    font-size: 1.2em;
    background-color: white; /* Kara arkaplan */
    padding: 15px; /* İç boşluk */
    border-radius: 8px; /* Köşe yuvarlaklığı */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Gölge efekti */
}

.pagination a, 
.pagination span {
    padding: 8px 12px;
    border: 1px solid #444; /* Daha belirgin kenarlık */
    border-radius: 4px;
    text-decoration: none;
    color: #fff; /* Beyaz yazı rengi */
    background-color: #333; /* Koyu gri arkaplan */
    transition: all 0.3s ease; /* Geçiş efekti */
}

.pagination a:hover {
    background: #555; /* Açık gri hover efekti */
    transform: translateY(-2px); /* Hafif kaldırma efekti */
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1); /* Hafif gölge */
}

.pagination .active {
    background: var(--primary-color);
    color: red;
    border-color: var(--primary-color);
    font-size: 1.5em;
    border: 2px solid #fff; /* Beyaz kenarlık */
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); /* Kırmızı ışık efekti */
    position: relative;
    z-index: 1;
}

/* Aktif sayfa numarası için özel efekt */
.pagination .active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid red;
    border-radius: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Sayfa numaraları için ek stiller */
.pagination a, 
.pagination span {
    min-width: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


.kayit-bilgi {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    width: 100%; /* Tam genişlik */
}

/* Alert Kutusu */
.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.custom-alert-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-alert-btn {
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.custom-alert-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.alert-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.custom-alert-button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.login-btn {
    background: var(--primary-color);
    color: white;
}

.register-btn {
    background: var(--success-color);
    color: white;
}

/* Hata ve Bilgi Mesajları */
.error, .no-data {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    text-align: center;
    width: 100%; /* Tam genişlik */
}

.error {
    background: #fadbd8;
    color: var(--danger-color);
}

.no-data {
    background: var(--light-color);
    color: #7f8c8d;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .pagination {
        padding: 10px;
        font-size: 1em;
    }
    
    .pagination a, 
    .pagination span {
        padding: 6px 10px;
        min-width: 35px;
    }
    
    .pagination .active {
        font-size: 1.2em;
    }
    .filtreler {
        flex-direction: column;
        align-items: stretch;
        display: none;
        width: 100%; /* Tam genişlik */
    }
    
    .filtreler.show {
        display: flex;
    }
    
    .mobile-filter-toggle {
        display: block;
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        background: var(--light-color);
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    .ilan-grid.kart-gorunum {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        width: 100%; /* Tam genişlik */
    }
    
    .kart-ust {
        padding: 12px;
    }
    
    .kart-baslik {
        font-size: 1em;
    }
    
    .kart-icerik {
        padding: 12px;
    }
    
    .kart-aciklama {
        font-size: 0.85em;
        -webkit-line-clamp: 2;
    }
    
    .kart-detay {
        font-size: 0.75em;
    }
    
    .ilan-table th, .ilan-table td {
        padding: 7px 9px;
        font-size: 0.85em;
    }
    
    .tarih-icerik {
        min-width: 45px;
    }
    
    .detail-btn {
        padding: 2px 6px;
    }
    
    .gorunum-secici {
        justify-content: center;
    }
    
    .filtreler select, 
    .filtreler input[type="date"] {
        min-width: 100%; /* Mobilde tam genişlik */
        width: 100%;
    }
}

@media (min-width: 769px) {
    .mobile-filter-toggle {
        display: none;
    }
}

/* Çok Küçük Ekranlar (Maksimum 480px) */
@media (max-width: 480px) {
    .container {
        padding: 15px 10px; /* Daha az yatay padding */
    }
    
    .ilan-grid.kart-gorunum {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ilan-table th, 
    .ilan-table td {
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .tarih-icerik {
        min-width: 35px;
    }
    
    .detail-btn {
        padding: 2px 4px;
        font-size: 11px;
    }
    
    .pagination a, 
    .pagination span {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .arama-grup input {
        font-size: 13px;
    }
    
    .filtre-ust {
        padding: 5px;
    }
    
    .gorunum-secici {
        flex-direction: column;
        gap: 5px;
    }
    
    .gorunum-buton {
        width: 100%;
        text-align: center;
    }
    
    .gorunum-buton:first-child {
        border-radius: 4px;
        border-right: 1px solid #ddd;
    }
    
    .gorunum-buton:last-child {
        border-radius: 4px;
    }
}
</style>