/* css/components.css */

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.template-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.template-thumb {
    position: relative;
    height: 180px;
    background: #edf2f7;
}

.template-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.btn-select {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.template-info {
    padding: 20px;
}

.template-info .category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #3b82f6;
    font-weight: 700;
}

.template-info h3 {
    margin: 10px 0 5px 0;
    font-size: 1.2rem;
}

.template-info p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}