/**
 * Pro-C Emlak Integration - CSS
 * Responsive & Modern Design
 */

/* Container */
.proc-emlak-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Filters */
.proc-filters {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.proc-filter-group {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

.proc-filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.proc-filter {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.proc-filter:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Buttons */
.proc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.proc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.proc-btn-primary:active {
    transform: translateY(0);
}

/* Loading Spinner */
.proc-loading {
    text-align: center;
    padding: 40px;
}

.proc-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Grid Layout */
.proc-ilanlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.proc-layout-list {
    grid-template-columns: 1fr;
}

.proc-layout-slider {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    scroll-snap-type: x mandatory;
}

/* İlan Card */
.proc-ilan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proc-ilan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* İlan Image */
.proc-ilan-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.proc-ilan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proc-ilan-card:hover .proc-ilan-image img {
    transform: scale(1.1);
}

.proc-ilan-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.proc-ilan-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* İlan Content */
.proc-ilan-content {
    padding: 20px;
}

.proc-ilan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 12px;
}

.price-amount {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
}

.price-currency {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.proc-ilan-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proc-ilan-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.proc-icon-location {
    font-size: 16px;
}

/* Features */
.proc-ilan-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.proc-ilan-features .feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
}

.proc-ilan-features .icon {
    font-size: 16px;
}

/* Agent Info */
.proc-ilan-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.proc-ilan-agent img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.proc-ilan-agent span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Footer */
.proc-ilan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.proc-ilan-code {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.proc-btn-detail {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proc-btn-detail:hover {
    background: #764ba2;
    transform: translateX(2px);
}

/* Pagination */
.proc-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.proc-pagination-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.proc-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.proc-page-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.proc-page-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.proc-page-dots {
    padding: 0 8px;
    color: #999;
}

/* Error Message */
.proc-error {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #c33;
    text-align: center;
}

/* No Results */
.proc-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.proc-no-results p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .proc-emlak-container {
        padding: 15px;
    }
    
    .proc-filters {
        padding: 20px;
    }
    
    .proc-filter-group {
        flex: 1 1 100%;
    }
    
    .proc-ilanlar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .price-amount {
        font-size: 22px;
    }
    
    .proc-ilan-title {
        font-size: 15px;
    }
    
    .proc-pagination-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .proc-ilan-image {
        height: 180px;
    }
    
    .proc-ilan-content {
        padding: 15px;
    }
    
    .price-amount {
        font-size: 20px;
    }
    
    .proc-ilan-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .proc-emlak-container {
        color: #e0e0e0;
    }
    
    .proc-filters {
        background: #2c2c2c;
    }
    
    .proc-ilan-card {
        background: #1e1e1e;
    }
    
    .proc-ilan-title,
    .price-amount {
        color: #e0e0e0;
    }
    
    .proc-filter {
        background: #2c2c2c;
        color: #e0e0e0;
        border-color: #444;
    }
}
