/* Home page custom styles */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.item-card__image {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
}

.item-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: #f9f9f9;
}

.item-card__content {
    padding: 15px;
}

.item-card__title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.item-card__title a {
    color: #333;
    text-decoration: none;
}

.item-card__title a:hover {
    color: #0084b4;
}

.item-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.btn-preview, .btn-edit, .btn-delete {
    padding: 6px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.btn-preview {
    background: #0084b4;
    color: #fff;
}

.btn-preview:hover {
    background: #006a94;
}

.btn-edit {
    background: #82b440;
    color: #fff;
}

.btn-edit:hover {
    background: #6a9a30;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
}

.btn-delete:hover {
    background: #c0392b;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin: 0 0 10px;
    color: #333;
}

.empty-state p {
    color: #666;
    margin: 0 0 20px;
}

.btn-upload-first {
    display: inline-block;
    background: #82b440;
    color: #fff;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-upload-first:hover {
    background: #6a9a30;
}
