/* Template center page styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Category navigation */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Template grid */
.template-grid {
    column-count: 4;
    column-gap: 20px;
    margin-bottom: 40px;
}

/* Template card */
.template-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    break-inside: avoid;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    cursor: pointer;
}

/* Template image */
.template-image {
    width: 100%;
    height: auto;
    display: block;
}

/* No image placeholder */
.template-card div {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* No results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    margin: 0;
}

/* Responsive design */
@media (max-width: 1200px) {
    .template-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .template-grid {
        column-count: 2;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .category-nav {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .template-grid {
        column-count: 2;
    }
}

