/* سوق شير - تصميم مشابه لحراج */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #0d6efd;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: #0d6efd;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.header-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-links a:hover {
    opacity: 0.8;
}

/* ===== SEARCH SECTION ===== */
.search-section {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.main-search {
    max-width: 800px;
    margin: 0 auto;
}

.main-search .input-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.main-search .form-select {
    max-width: 200px;
    border: none;
    border-left: 1px solid #e0e0e0;
    padding: 14px 20px;
    font-size: 15px;
}

.main-search .form-control {
    border: none;
    padding: 14px 20px;
    font-size: 15px;
}

.main-search .form-control:focus,
.main-search .form-select:focus {
    box-shadow: none;
    outline: none;
}

.main-search .btn {
    background: #ffc107;
    border: none;
    padding: 14px 40px;
    color: #333;
    font-weight: 600;
}

.main-search .btn:hover {
    background: #ffb300;
}

/* ===== CATEGORIES ===== */
.categories-section {
    background: white;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.categories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    padding: 10px;
    min-width: 100px;
}

.category-item:hover {
    color: #0d6efd;
}

.category-item i {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 8px;
    display: block;
}

.category-item span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

/* ===== CONTENT ===== */
.content-section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.section-header a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

/* ===== AD CARD ===== */
.ad-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.ad-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ad-item:hover .ad-image img {
    transform: scale(1.05);
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #333;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ad-badge.vip {
    background: #ff9800;
    color: white;
}

.ad-badge.featured {
    background: #f44336;
    color: white;
}

.favorite-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.favorite-icon:hover {
    background: #e74c3c;
    color: white;
}

.ad-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ad-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ad-title a {
    color: #333;
    text-decoration: none;
}

.ad-title a:hover {
    color: #0d6efd;
}

.ad-price {
    font-size: 20px;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 10px;
}

.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-top: auto;
}

.ad-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ad-location i {
    color: #e74c3c;
}

.ad-time {
    color: #999;
}

.ad-footer {
    padding: 10px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* ===== STATS ===== */
.stats-section {
    background: white;
    padding: 40px 0;
    margin: 30px 0;
    border-radius: 8px;
}

.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box i {
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
}

.stat-box p {
    color: #666;
    margin: 0;
}

/* ===== BUTTONS ===== */
.btn-add-ad {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add-ad:hover {
    background: #ffb300;
    color: #333;
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

footer h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .categories-grid {
        gap: 10px;
    }
    
    .category-item {
        min-width: 80px;
    }
    
    .category-item i {
        font-size: 32px;
    }
    
    .ad-image {
        height: 180px;
    }
    
    .main-search .form-select {
        max-width: 120px;
    }
}