.board-template-gallery {
    margin-top: 2rem;
}

.board-template-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
}

.board-template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.board-template-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.board-template-preview img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.92) saturate(0.85) contrast(0.95);
    transition: filter 0.3s ease;
}

.board-template-card:hover .board-template-preview img {
    filter: brightness(1) saturate(1) contrast(1);
}

.board-template-overlay {
    display: none;
}

.board-template-body {
    padding: 1.25rem;
    background: white;
}

.board-template-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.board-template-preview-placeholder {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}

.board-template-description {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.board-template-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-create-widget {
    display: inline-block;
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-create-widget:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-create-widget i {
    margin-right: 0.25rem;
}

.badge-popular, .badge-featured {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-popular {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.tag-filter {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tag-filter-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-button {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tag-button:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    text-decoration: none;
}

.tag-button.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.tag-count {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.125rem 0.375rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 0.8rem;
}

.tag-button.active .tag-count {
    background: rgba(255, 255, 255, 0.3);
}

.hero-section {
    background-color: #1a1a2e;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-radius: 0;

    /* Same background as homepage hero */
    background-image: /* Simple repeating dot pattern */ radial-gradient(circle, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        /* Bright center glow */ radial-gradient(circle at 50% 50%, rgba(155, 0, 250, 0.4) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(0, 168, 140, 0.3) 10%, transparent 40%),
        /* Side glows for depth */ radial-gradient(ellipse at 0% 50%, rgba(155, 0, 250, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(0, 168, 140, 0.3) 0%, transparent 50%),
        /* Top and bottom accent glows */ radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(54, 1, 213, 0.4) 0%, transparent 60%),
        /* Base gradient */ linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);

    background-size: 20px 20px, /* Dot pattern size */ 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%; /* Gradient sizes */

    background-position: 0 0, /* Pattern starts at top-left */ center, center, center, center, center, center, center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: white;
    color: #764ba2;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #764ba2;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.25rem;
}

/* Theme-specific preview backgrounds */
.preview-sales {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.preview-education {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.preview-contest {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.preview-business {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.preview-games {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.preview-fitness {
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
}

.preview-office {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tag-filter {
        padding: 0.5rem;
    }

    .tag-filter-title {
        display: block;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }

    .tag-buttons {
        display: flex;
        gap: 0.3rem;
    }

    .tag-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .tag-count {
        font-size: 0.7rem;
    }
}