/* Template Specific Styles */
.template {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 2rem);
}

.template__header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease;
}

.template__category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: var(--small-size);
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 1rem;
}

.template__title {
    font-size: var(--h1-size);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.template__meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: var(--small-size);
    flex-wrap: wrap;
}

.template__meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.template__meta-item i {
    color: var(--primary-color);
}

.template__featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.template__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.template__content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    animation: fadeInUp 1s ease 0.4s backwards;
}

.template__content h2 {
    font-size: var(--h2-size);
    margin: 2.5rem 0 1.5rem;
    color: var(--primary-color);
}

.template__content h3 {
    font-size: var(--h3-size);
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.template__content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.template__content ul,
.template__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.template__content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.template__content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    font-style: italic;
    color: var(--text-color);
}

.template__content code {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

.template__content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.template__content pre code {
    background: none;
    padding: 0;
}

.template__content img {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.template__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.template__tag {
    padding: 0.5rem 1rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: var(--small-size);
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: var(--transition);
}

.template__tag:hover {
    background: rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.template__share {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.template__share-title {
    color: var(--text-secondary);
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.template__share-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--text-color);
}

.template__share-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
}

.template__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.template__back:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

@media screen and (max-width: 768px) {
    .template__content {
        padding: 2rem 1.5rem;
    }

    .template__meta {
        gap: 1rem;
    }
}