/* Lost & Found Modern Card Styles */

/* Section Heading */
.section-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 15px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Page Search Section */
.products-search-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.modern-search-form {
    margin-bottom: 0;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #8395a7;
}

.search-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Category Pills */
.categories-filter h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-pill {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: capitalize;
}

.category-pill:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* No Products Found */
.no-products-found {
    padding: 60px 20px;
    color: #8395a7;
}

.no-products-found h3 {
    color: #576574;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.no-products-found p {
    color: #8395a7;
    font-size: 14px;
}

/* Responsive adjustments for products page */
@media (max-width: 768px) {
    .products-search-section {
        padding: 25px 20px;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .search-input {
        border-radius: 15px 15px 0 0;
        border-bottom: 1px solid #eee;
    }
    
    .search-btn {
        border-radius: 0 0 15px 15px;
        padding: 15px 20px;
    }
    
    .category-pills {
        gap: 8px;
    }
    
    .category-pill {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Dashboard Lost & Found Styles */
.lost-found-stats {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.lost-found-stats h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.lost-card::before {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.found-card::before {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.returned-card::before {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.helped-card::before {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.lost-card .stat-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.found-card .stat-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.returned-card .stat-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.helped-card .stat-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.stat-content p {
    color: #7f8c8d;
    font-weight: 600;
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Recent Items */
.recent-items h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.mini-item-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

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

.mini-item-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.mini-item-content {
    padding: 15px;
}

.mini-item-content h6 {
    color: #2c3e50;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 14px;
}

.mini-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-status.lost {
    background: #ffebee;
    color: #c62828;
}

.mini-status.found {
    background: #e8f5e8;
    color: #2e7d32;
}

.mini-status.returned {
    background: #e3f2fd;
    color: #1565c0;
}

/* Status Badges Container */
.status-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

/* Approval Status Badges */
.approval-status {
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.approval-status.approved {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #81c784;
}

.approval-status.pending {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffb74d;
}

.mini-category {
    color: #7f8c8d;
    font-size: 12px;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-btn i {
    margin-right: 10px;
    font-size: 16px;
}

.report-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.report-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    color: white;
    text-decoration: none;
}

.report-found-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.report-found-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    color: white;
    text-decoration: none;
}

.view-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: white;
    text-decoration: none;
}

.found-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.found-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    color: white;
    text-decoration: none;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .lost-found-stats {
        padding: 20px;
    }
    
    .stat-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .mini-item-card {
        margin-bottom: 15px;
    }
    
    .action-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

.lost-found-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    position: relative;
}

.lost-found-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

/* Card Link */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

.card-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* Image Section */
.card-image-section {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lost-found-card:hover .card-main-image {
    transform: scale(1.05);
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lost-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.found-badge {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 222, 129, 0.4);
}

/* Reward Amount */
.reward-amount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #151514, #090909);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.reward-amount span {
    margin-right: 8px;
    display: inline-block;
    color: #ffffff !important;
}

/* Card Content */
.card-content {
    padding: 20px;
}

/* User Info Section */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-avatar {
    position: relative !important;
    margin-right: 12px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    display: block;
}

/* Verified Badge - Bottom Right Corner */
.verified-badge {
    position: absolute !important;
    bottom: -3px !important;
    right: -3px !important;
    top: auto !important;
    left: auto !important;
    background: #28a745 !important;
    color: white !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border: 3px solid white !important;
    z-index: 100 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Specific context styles */
.user-avatar .verified-badge,
.user-info .user-avatar .verified-badge,
.lost-found-card .user-avatar .verified-badge {
    position: absolute !important;
    bottom: -3px !important;
    right: -3px !important;
    top: auto !important;
    left: auto !important;
}

/* User Badges System */
.user-badges {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    gap: 3px;
    z-index: 99;
}

.user-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.badge-more {
    background: #6c757d;
    color: white;
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.user-details h6.username {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.post-time {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 2px;
}

/* Item Title */
.item-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 15px 0 10px 0;
    line-height: 1.3;
}

/* Item Description */
.item-description {
    color: #576574;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Location and Date */
.location-date {
    margin: 15px 0;
}

.location, .date {
    display: block;
    font-size: 13px;
    color: #8395a7;
    margin-bottom: 5px;
}

.location i, .date i {
    margin-right: 8px;
    color: #3742fa;
}

/* Category Section */
.category-section {
    margin: 15px 0;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Section */
.action-section {
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Item Status Badges */
.item-status-info {
    margin-bottom: 20px;
}

.status-display {
    margin-bottom: 15px;
}

.item-status-info .status-badge {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.item-status-info .lost-status {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.item-status-info .found-status {
    background: linear-gradient(135deg, #26de81, #20bf6b);
    color: white;
    box-shadow: 0 4px 15px rgba(38, 222, 129, 0.4);
}

.item-status-info .returned-status {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.reward-info {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #feca57, #ff9ff3);
    border-radius: 15px;
    color: white;
    margin-top: 15px;
}

.reward-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.reward-info h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.reward-info h2 span {
    margin-right: 16px;
    display: inline-block;
}

.location-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #3742fa;
}

.location-info h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.location-info p {
    margin: 0;
    color: #576574;
    font-size: 14px;
}

.action-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.contact-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid transparent;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.claim-btn {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #2c3e50;
    border: 2px solid transparent;
}

.claim-btn:hover {
    background: linear-gradient(135deg, #fed6e3, #a8edea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.4);
    color: #2c3e50;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lost-found-card {
        margin-bottom: 15px;
    }
    
    .card-image-section {
        height: 200px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .item-title {
        font-size: 18px;
    }
    
    .user-avatar {
        width: 40px !important;
        height: 40px !important;
    }
    
    .user-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .verified-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        border: 2px solid white !important;
        bottom: -2px !important;
        right: -2px !important;
        top: auto !important;
        left: auto !important;
    }
    
    .user-badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
}

/* Related Products Section */
.wsus__related_product .lost-found-card {
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .wsus__related_product .col-xl-6 {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .card-image-section {
        height: 180px;
    }
    
    .card-image-section .status-badge, .reward-amount {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .item-title {
        font-size: 16px;
    }
    
    .user-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    
    .user-avatar img {
        width: 38px;
        height: 38px;
    }
    
    .verified-badge {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        border: 2px solid white !important;
        bottom: -2px !important;
        right: -2px !important;
        top: auto !important;
        left: auto !important;
    }
    
    .user-badge {
        width: 14px;
        height: 14px;
        font-size: 7px;
    }
    
    .wsus__related_product .col-xl-6 {
        margin-bottom: 15px;
    }
}

/* Animation for loading */
.lost-found-card.loading {
    opacity: 0;
    transform: translateY(20px);
}

.lost-found-card.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Hover effects for interactive elements */
.lost-found-card .user-avatar:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.category-badge:hover {
    background: #1976d2;
    color: white;
    transition: all 0.3s ease;
}
