/* Design Templates Page Styles */

/* Hero Section */
.design-hero {
    background: var(--gradient);
    padding: 150px 20px 80px;
    text-align: center;
    color: var(--white);
}

.design-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.design-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Template Categories */
.template-categories {
    padding: 60px 20px;
    background: var(--light-bg);
}

.category-section {
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.category-header:hover {
    background: var(--light-bg);
}

.category-header h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.toggle-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-header:hover .toggle-icon {
    background: var(--gradient);
    color: var(--white);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.category-content.open {
    max-height: 2000px;
    padding: 0 2rem 2rem;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.template-preview {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.template-icon {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Template Price Tags */
.template-price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.template-price-tag.free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.template-price-tag.premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.template-card h4 {
    padding: 1rem 1rem 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.template-card p {
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-template {
    display: block;
    margin: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-template:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* CTA Section */
.design-cta {
    background: var(--dark-bg);
    padding: 80px 20px;
    text-align: center;
    color: var(--white);
}

.design-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.design-cta p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .design-hero-title {
        font-size: 2rem;
    }

    .design-hero-subtitle {
        font-size: 1rem;
    }

    .category-header {
        padding: 1rem 1.5rem;
    }

    .category-header h2 {
        font-size: 1.25rem;
    }

    .category-content {
        padding: 0 1rem;
    }

    .category-content.open {
        padding: 0 1rem 1.5rem;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }

    .template-preview {
        height: 120px;
    }

    .design-cta h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .design-hero {
        padding: 120px 15px 60px;
    }

    .design-hero-title {
        font-size: 1.75rem;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }
}
