/* Thing Thumbnail Styles */
.thing-thumbnail {
    transition: transform 0.2s ease;
}

.thing-thumbnail:hover {
    transform: translateY(-2px);
}

.thing-thumbnail .aspect-square {
    position: relative;
    padding-bottom: 100%;
}

.thing-thumbnail .aspect-square > * {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Things Grid */
.things-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .things-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Page Things Section */
.page-things {
    border-top: 1px solid rgba(75, 85, 99, 0.5);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Thing Selector Modal */
.thing-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.thing-selector-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.thing-selector-item:hover {
    transform: scale(1.05);
}

.thing-selector-item.selected {
    ring: 2px solid #3B82F6;
}

/* Thing Image Styles */
.thing-image-container {
    background-color: #374151;
    border-radius: 0.5rem;
    overflow: hidden;
}

.thing-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #1F2937;
}

/* Version Selector */
.thing-version-selector {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.25rem center;
    background-repeat: no-repeat;
    background-size: 1em 1em;
    padding-right: 1.5rem;
}

/* Loading States */
.thing-thumbnail-loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Empty State */
.things-empty-state {
    text-align: center;
    padding: 2rem;
    color: #9CA3AF;
}

.things-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #6B7280;
}