.prompt-card {
    background-color: #1a183a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    max-width: 310px;
    min-width: 270px;
    width: 50%;
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.prompt-image-container {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompt-image-container.gradient-1 {
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
}
.prompt-image-container.gradient-2 {
    background: linear-gradient(135deg, #3494e6, #ec6ead);
}
.prompt-image-container.gradient-3 {
    background: linear-gradient(135deg, #5f4d93, #47cdda);
}
.prompt-image-container.gradient-4 {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.prompt-icon-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.prompt-icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: #3a3768;
    border-radius: 50%;
}

.prompt-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prompt-title {
    margin: 0 0 10px 0;
    font-size: 1.125rem;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-title a {
    text-decoration: none;
    color: #ffffff;
}

.prompt-meta {
    margin-bottom: 15px;
    flex-grow: 1;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #6e45e2 0%, #5a35c0 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(106, 69, 226, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.category-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(106, 69, 226, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #7a55ee 0%, #6a45d0 100%);
}

.category-tag:hover:before {
    opacity: 1;
}

.category-tag:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(106, 69, 226, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ai-tag {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #3494e6 0%, #2a7bcb 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 148, 230, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    margin-right: 2px;
}

.ai-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(52, 148, 230, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #45a5ff 0%, #358bdf 100%);
}

.ai-tag:hover:before {
    opacity: 1;
}

.ai-tag:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(52, 148, 230, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}


.prompt-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.9375em;
    color: #8885b0;
}

.prompt-views, .prompt-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .prompt-image-container {
        height: 140px;
    }

    .prompt-title {
        font-size: 1.0625rem;
    }
}

@media (max-width: 650px) {
    .prompt-card {
        max-width: 350px;
        width: 100%;
    }
}