/* Ilan kartları için genel hover efektleri */
.card[onclick] {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card[onclick]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card[onclick]:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Mobile dokunmatik cihazlar için özel efektler */
@media (max-width: 768px) {
    .card[onclick]:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    
    .card[onclick]:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Listing kartlarına özel stil */
.listing-card[onclick] {
    border-radius: 12px;
    overflow: hidden;
}

.listing-card[onclick]:hover {
    border-color: #007bff;
}

.listing-card[onclick]:hover .card-body {
    background-color: rgba(0, 123, 255, 0.02);
}

/* Ana sayfa ilan kartları için özel stiller */
.listing-card[onclick] .card-title {
    transition: color 0.3s ease;
}

.listing-card[onclick]:hover .card-title {
    color: #007bff !important;
}

/* Responsive ilan kartları */
@media (min-width: 992px) {
    .listing-card[onclick]:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }
}

/* Search page kartları için özel efektler */
.card[onclick] .position-relative img {
    transition: transform 0.3s ease;
}

.card[onclick]:hover .position-relative img {
    transform: scale(1.05);
}

/* Mobile logo düzeltmeleri */
.mobile-logo {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
}

/* Çok küçük ekranlar için font boyutunu ayarlama */
@media (max-width: 480px) {
    .mobile-logo {
        font-size: 1rem !important;
    }
}

@media (max-width: 375px) {
    .mobile-logo {
        font-size: 0.9rem !important;
    }
}

/* Mobile top bar flex düzenlemesi */
@media (max-width: 767.98px) {
    .mobile-top-bar {
        padding: 8px 12px !important;
    }
    
    .mobile-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-right: 10px !important;
    }
    
    .mobile-user-info {
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }
}

/* Arama önerileri stilleri */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-text {
    flex: 1;
    color: #333;
}

.suggestion-text strong {
    color: #2563eb;
    font-weight: 600;
}

.suggestion-count {
    font-size: 0.85rem;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    .search-suggestions {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .suggestion-item {
        border-color: #333;
    }
    
    .suggestion-item:hover {
        background-color: #2a2a2a;
    }
    
    .suggestion-text {
        color: #e0e0e0;
    }
    
    .suggestion-count {
        background-color: #333;
        color: #999;
    }
}

/* İlan Detay Sayfası Stilleri */
.listing-header {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.listing-title {
    font-size: 1.55rem;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.listing-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.listing-date-text {
    font-size: 0.86rem;
    color: #6b7280;
}

.image-gallery {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
    background: #f3f4f6;
}

.main-image:hover {
    transform: scale(1.01);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    min-width: 80px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.thumbnail:hover {
    border-color: #1d4ed8;
}

.thumbnail.active {
    border-color: #1d4ed8;
}

.contact-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.price-tag {
    background: #1d4ed8;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.feature-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.feature-item:hover {
    border-color: #1d4ed8;
    box-shadow: none;
}

.action-btn {
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: none;
    box-shadow: none;
}

.stats-badge {
    background: #eef2ff;
    color: #1d4ed8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #c7d2fe;
}

.similarity-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.similarity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(17, 24, 39, 0.8);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.premium-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

.urgent-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.95);
    color: #1d4ed8;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-nav-btn.prev {
    left: 10px;
}

.gallery-nav-btn.next {
    right: 10px;
}

.profile-page .profile-card {
    border-radius: 14px;
}

.profile-avatar-wrap {
    width: 116px;
    height: 116px;
}

.profile-avatar-img,
.profile-avatar-fallback {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 2px solid #dbeafe;
}

.profile-avatar-img {
    object-fit: cover;
}

.profile-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1d4ed8;
    background: #eff6ff;
}

.profile-meta-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Anasayfa mobil optimizasyonları (önceden home.php içinde inline idi) */
@media (max-width: 767.98px) {
    .h6.h5-md { font-size: 1.1rem; }
    .h5.h4-md { font-size: 1.2rem; }
    .h6-mobile { font-size: 1rem; }
    
    .listing-image-container {
        height: 180px;
    }
    
    .card-title {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .badge-sm {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .breadcrumb {
        margin-bottom: 0.75rem;
        font-size: 0.78rem;
    }

    .listing-header {
        padding: 12px;
        margin-bottom: 12px;
    }

    .listing-title {
        font-size: 1.1rem;
        margin-bottom: 0.35rem !important;
    }

    .listing-meta-row {
        justify-content: space-between;
        gap: 6px;
    }

    .stats-badge {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .listing-date-text {
        font-size: 0.74rem;
    }

    .image-gallery {
        margin-bottom: 12px !important;
    }

    .main-image {
        max-height: 320px;
        min-height: auto;
        object-fit: contain;
    }

    .gallery-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 1.15rem;
    }

    .image-counter {
        top: 8px;
        right: 8px;
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .thumbnail-gallery {
        gap: 7px;
        padding: 6px 0;
    }

    .thumbnail {
        min-width: 62px;
        height: 62px;
    }

    .contact-card {
        padding: 14px;
    }

    .price-tag h3 {
        font-size: 1.2rem;
    }

    .action-btn {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .profile-page .profile-avatar-wrap {
        width: 96px;
        height: 96px;
    }

    .profile-page .profile-avatar-img,
    .profile-page .profile-avatar-fallback {
        width: 96px;
        height: 96px;
    }
}

@media (min-width: 768px) {
    .listing-image-container {
        height: 200px;
    }
    
    .h6-mobile { font-size: 1.25rem; }
}

.card {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.card:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
}

/* Admin Kullanıcı Yönetimi Stilleri */
.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.admin-stat-card {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
}