.shader-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.shader-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 12px;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.shader-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
    background: rgba(40, 40, 40, 0.8);
}

.shader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--hover-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shader-card:hover::before {
    opacity: 1;
}

.shader-preview {
    width: 100%;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.shader-preview img,
.shader-preview .shader-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shader-card:hover .shader-preview img {
    transform: scale(1.05);
}

.shader-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

.shader-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shader-author {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shader-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.shader-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shader-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat i {
    font-size: 14px;
    opacity: 0.7;
}

#shaders-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.shader-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 5px;
}

.shader-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.shader-link:hover {
    text-decoration: none;
}

/* Media query para dispositivos móviles */
@media (max-width: 1024px) {
    .shader-container,
    #shaders-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .shader-container,
    #shaders-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .shader-preview {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .shader-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #shaders-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shader-preview {
        height: 220px;
    }
}

/* Estilos para la lista de shaders del usuario */
#my-shaders-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shader-item {
    display: flex;
    align-items: center;
    padding: 8px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    gap: 15px;
}

.user-shader-preview {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 5px;
}

.title-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shader-title {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1em;
}

.update-date {
    color: #888;
    font-size: 0.75em;
}

.edit-shader-btn {
    background-color: var(--button-bg);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
    height: 26px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.edit-shader-btn:hover {
    background-color: var(--hover-color);
}

.user-info {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-color);
    font-size: 10px;
    padding: 2px;
}

.username-display {
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
