/* ============================================
   ShitBli.al - Stilet Kryesore
   ============================================ */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #457b9d;
    --light-bg: #f8f9fa;
    --card-shadow: 0 2px 15px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
    margin: 0;
}

/* NAVBAR */
.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary) !important;
    letter-spacing: -1px;
}
.navbar-brand span { color: var(--secondary); }
.navbar { background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    padding: 50px 0 70px;
    margin-bottom: -30px;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; }
.hero p { opacity: 0.9; font-size: 1.1rem; }

/* SEARCH BAR */
.search-box {
    background: white;
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
}
.search-box input, .search-box select {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 1rem;
}
.search-box .btn-search {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}
.search-box .btn-search:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* CATEGORIES */
.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--secondary);
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    display: block;
    border: 2px solid transparent;
}
.category-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230,57,70,0.2);
}
.category-card .icon { font-size: 2rem; margin-bottom: 8px; }
.category-card .name { font-size: 0.85rem; font-weight: 600; }
.category-card .count { font-size: 0.75rem; color: #999; }

/* LISTING CARDS */
.listing-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.2s;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
    color: inherit;
}
.listing-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #eee;
}
.listing-card .no-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #aaa;
}
.listing-card .card-body { padding: 15px; flex: 1; }
.listing-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--secondary);
}
.listing-card .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}
.listing-card .meta { font-size: 0.78rem; color: #888; margin-top: 5px; }
.listing-card .badge-condition { font-size: 0.7rem; }

/* SINGLE LISTING */
.listing-main-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: var(--radius);
}
.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}
.thumb-img:hover, .thumb-img.active { border-color: var(--primary); }

/* SIDEBAR */
.sidebar-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}
.seller-info .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent);
}

/* FORMS */
.form-card {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--card-shadow);
}
.form-label { font-weight: 600; color: var(--secondary); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(230,57,70,0.15);
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary-outline {
    border-color: var(--secondary);
    color: var(--secondary);
    font-weight: 600;
}

/* UPLOAD ZONE */
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: #fff5f5;
}
.preview-imgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.preview-img-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}
.preview-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.preview-img-wrapper .remove-img {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MESSAGES */
.conversation-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.conversation-item:hover { background: #f8f9fa; }
.conversation-item.unread { background: #fff8f8; border-left: 3px solid var(--primary); }
.chat-box { height: 400px; overflow-y: auto; padding: 15px; background: #f8f9fa; border-radius: var(--radius); }
.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.message-bubble.sent {
    background: var(--primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-bubble.received {
    background: white;
    color: #333;
    box-shadow: var(--card-shadow);
    border-bottom-left-radius: 4px;
}
.message-bubble .time { font-size: 0.7rem; opacity: 0.7; margin-top: 4px; }

/* ADMIN */
.admin-sidebar {
    background: var(--secondary);
    min-height: 100vh;
    padding: 0;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--primary);
}
.admin-sidebar .nav-link i { width: 20px; margin-right: 8px; }
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary);
}
.stat-card .number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .label { color: #666; font-size: 0.9rem; }

/* BADGES */
.badge-aktiv { background: #198754; }
.badge-pending { background: #fd7e14; }
.badge-shitur { background: #6c757d; }
.badge-jo_aktiv { background: #dc3545; }

/* FOOTER */
footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 60px;
}
footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: white; }

/* PAGINATION */
.page-link { color: var(--primary); }
.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* EMPTY STATE */
.empty-state { text-align: center; padding: 60px 20px; color: #999; }
.empty-state i { font-size: 4rem; margin-bottom: 15px; opacity: 0.3; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .listing-card .card-img { height: 160px; }
}
