/* ============================================
   Şahin Tokat - Ana Stil Dosyası
   ============================================ */

:root {
    --primary: #1a56db;
    --primary-dark: #1340a8;
    --primary-light: #e8effc;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ---- NAVBAR ---- */
.navbar-main {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-main .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    padding: 12px 0;
}

.navbar-main .navbar-brand span {
    color: var(--accent);
}

.navbar-main .nav-link {
    color: var(--text);
    font-weight: 500;
    padding: 18px 16px !important;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-size: 0.95rem;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.navbar-main .btn-whatsapp {
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.navbar-main .btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
    background-size: 30px;
}

.hero-section h1 {
    color: white;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.hero-section h1 span { color: var(--accent); }

.hero-section p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* Arama Kutusu */
.search-box {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.search-box .form-control,
.search-box .form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.search-box .btn-search {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
}

.search-box .btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

/* ---- KATEGORİ KARTLARI ---- */
.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    border: 2px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card .icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: var(--transition);
}

.category-card:hover .icon {
    background: var(--primary);
    color: white;
}

.category-card h5 {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.category-card .count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- İLAN KARTLARI ---- */
.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.listing-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 66%;
}

.listing-card .card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.listing-card .badge-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.listing-card .badge-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.listing-card .badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.listing-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card .card-body h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card .card-body .location {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.listing-card .card-body .location i {
    color: var(--primary);
    margin-right: 4px;
}

.listing-card .features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.listing-card .features span {
    font-size: 0.8rem;
    color: var(--text-light);
}

.listing-card .features span i {
    margin-right: 4px;
    color: var(--primary);
}

.listing-card .price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.listing-card .price {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
}

.listing-card .date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ---- İLAN DETAY ---- */
.detail-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.detail-gallery .main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
}

.detail-gallery .thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.detail-gallery .thumbnails img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.detail-gallery .thumbnails img:hover,
.detail-gallery .thumbnails img.active {
    border-color: var(--primary);
}

.detail-info {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.detail-info .price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-info .ilan-tipi-badge {
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 50px;
}

.detail-specs {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.detail-specs .spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-specs .spec-item:last-child {
    border-bottom: none;
}

.detail-specs .spec-item .label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.detail-specs .spec-item .value {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

.contact-card .btn-call {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: none;
}

.contact-card .btn-call:hover {
    background: var(--primary-dark);
}

.contact-card .btn-whatsapp-lg {
    background: #25D366;
    color: white;
    width: 100%;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border: none;
}

.contact-card .btn-whatsapp-lg:hover {
    background: #1da851;
    color: white;
}

/* ---- SAYFALAMA ---- */
.pagination .page-link {
    border: none;
    color: var(--text);
    font-weight: 500;
    padding: 10px 16px;
    margin: 0 2px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
}

/* ---- FOOTER ---- */
.footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer a:hover {
    color: white;
    padding-left: 4px;
}

.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    margin-right: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    padding-left: 0;
}

/* ---- İLETİŞİM SAYFASI ---- */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-info-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb-section {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.breadcrumb-section .breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-section .breadcrumb-item a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb-section .breadcrumb-item.active {
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
}

/* ---- NO IMAGE ---- */
.no-image {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}

/* ---- KATEGORİ FİLTRE ---- */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
}

.filter-sidebar h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.filter-sidebar .form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero-section { padding: 50px 0 40px; }
    .hero-section h1 { font-size: 1.8rem; }
    .search-box { padding: 16px; }
    .detail-gallery .main-image { height: 280px; }
    .listing-card .price { font-size: 1rem; }
    .section-title { font-size: 1.4rem; }
}

@media (max-width: 576px) {
    .navbar-main .nav-link { padding: 10px 16px !important; }
    .hero-section h1 { font-size: 1.5rem; }
}

/* ---- LOADING SKELETON ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-top.show {
    display: flex;
}
