/* ===== My Items Page Styles - Premium v2 ===== */
.my-items-page {
    background: #f8fafc;
    padding-bottom: 5rem;
}

.my-items-page .hero-section {
    padding: 4rem 1.5rem;
}

.hero-section .btn svg {
    margin-right: 0.5rem;
}

/* Filters Bar */
.filters-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filter-select {
    min-width: 180px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    transition: all 0.2s;
}

.filter-select:hover {
    border-color: #cbd5e1;
    background-color: #f9fafb;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Items Grid */
.items-section {
    padding: 3rem 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Premium Item Card */
.my-items-page .item-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.my-items-page .item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d1d5db;
}

.my-items-page .item-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f1f5f9;
}

.my-items-page .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.my-items-page .item-card:hover .item-image img {
    transform: scale(1.08);
}

/* Status Badges */
.item-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.item-status-badge.available {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
}

.item-status-badge.traded {
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
}

.item-status-badge.deleted {
    background: rgba(239, 44, 44, 0.9);
    color: #fff;
}

/* Card Content */
.my-items-page .item-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.my-items-page .item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-items-page .item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.item-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.item-value {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.9375rem;
}

/* Action Buttons Area */
.my-items-page .item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.item-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    background: transparent;
}

.item-action-btn.edit {
    color: #4b5563;
    border-right: 1px solid #f1f5f9;
}

.item-action-btn.edit:hover {
    background: #fff;
    color: #2563eb;
}

.item-action-btn.delete {
    color: #ef4444;
}

.item-action-btn.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.item-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    color: #cbd5e1;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
