/* ================================================
   ATLAS GAYRİMENKUL - Custom CSS
   ================================================ */

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #1f2937;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

*, *::before, *::after {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

pre, code {
    white-space: pre-wrap;
    word-break: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Bölümü */
.hero-section {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.85) 0%, rgba(31, 41, 55, 0.7) 100%),
                url('/assets/hero-bg.jpg') center/cover no-repeat;
    min-height: 600px;
}

/* İlan Kartı Hover */
.ilan-card {
    transition: all 0.3s ease;
}

.ilan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.ilan-card .ilan-img {
    transition: transform 0.5s ease;
    overflow: hidden;
}

.ilan-card:hover .ilan-img img,
.ilan-card:hover .ilan-img .placeholder-img {
    transform: scale(1.05);
}

/* Placeholder Görsel */
.placeholder-img {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 50%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.placeholder-img i {
    font-size: 3rem;
    color: #9ca3af;
}

/* Şehir Kartı */
.sehir-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.sehir-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.sehir-card .sehir-overlay {
    background: linear-gradient(to top, rgba(31, 41, 55, 0.9) 0%, rgba(31, 41, 55, 0.3) 60%, transparent 100%);
    transition: background 0.3s ease;
}

.sehir-card:hover .sehir-overlay {
    background: linear-gradient(to top, rgba(249, 115, 22, 0.9) 0%, rgba(249, 115, 22, 0.3) 60%, transparent 100%);
}

/* Özellik Kartı */
.ozellik-card {
    transition: all 0.3s ease;
}

.ozellik-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.ozellik-card:hover .ozellik-icon {
    background-color: #f97316;
    color: white;
}

.ozellik-icon {
    transition: all 0.3s ease;
}

/* İstatistik Sayaç Animasyonu */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* Filtre Paneli */
.filter-panel {
    position: sticky;
    top: 100px;
}

/* Form Elemanları */
.form-input {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Buton Stilleri */
.btn-primary {
    background-color: #f97316;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #ea580c;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #1f2937;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #374151;
    box-shadow: 0 10px 20px rgba(31, 41, 55, 0.3);
    transform: translateY(-2px);
}

/* Fiyat Badge */
.price-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #f97316;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    z-index: 10;
}

.type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    z-index: 10;
}

.type-badge.satilik {
    background-color: #10b981;
}

.type-badge.kiralik {
    background-color: #3b82f6;
}

/* Detay Tablo */
.detay-tablo tr {
    border-bottom: 1px solid #f3f4f6;
}

.detay-tablo tr:last-child {
    border-bottom: none;
}

.detay-tablo td {
    padding: 0.75rem 0;
}

/* Sayfa Geçiş */
.page-header {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(31, 41, 55, 0.75) 100%),
                url('/assets/page-header-bg.jpg') center/cover no-repeat;
}

/* ScrollBar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }

    .price-badge {
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 450px;
    }
}
