/* Common styles for cover letter template pages */
.template-preview {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.template-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.preview-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-image:hover {
    transform: scale(1.02);
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    font-size: 1.1rem;
}

.download-button:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.4);
}

.download-button::before {
    content: '⬇';
    font-size: 1.2rem;
}

.template-details {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 1rem;
}

.features-list li {
    padding: 1rem 1.5rem;
    background: rgba(39, 174, 96, 0.05);
    border-radius: 10px;
    border-left: 4px solid #27ae60;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
}

.features-list li:hover {
    background: rgba(39, 174, 96, 0.1);
    transform: translateX(5px);
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.template-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.template-main {
    min-width: 0;
}

.template-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 140px;
    height: fit-content;
}

.template-header {
    margin-bottom: 3rem;
    text-align: center;
}

.template-header h1 {
    color: #2c3e50;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.template-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.requirements-list {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border-left: 5px solid #667eea;
}

.requirements-list h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.template-preview-section {
    margin-bottom: 4rem;
}

.template-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Design for Template Pages */
@media (max-width: 1024px) {
    .template-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .template-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .template-container {
        padding: 1rem;
    }

    .template-header h1 {
        font-size: 2.2rem;
    }

    .template-preview,
    .template-details,
    .template-sidebar {
        padding: 2rem;
    }

    .info-card {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .template-header h1 {
        font-size: 1.8rem;
    }

    .template-preview,
    .template-details,
    .template-sidebar {
        padding: 1.5rem;
    }

    .download-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
