/* Templates Page Styles */

.templates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.templates-header {
    text-align: center;
    margin-bottom: 50px;
}

.templates-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.templates-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.template-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.template-preview {
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Template Preview Skeletons */
.preview-skeleton {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 210/297;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Template 1 - Modern Sidebar Preview */
.template-1-preview {
    display: flex;
}

.template-1-preview .skeleton-sidebar {
    width: 35%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.template-1-preview .skeleton-content {
    flex: 1;
    padding: 15px;
}

.template-1-preview .skeleton-header {
    height: 20px;
    background: #2c3e50;
    border-radius: 4px;
    margin-bottom: 15px;
    width: 70%;
}

.template-1-preview .skeleton-section {
    margin-bottom: 15px;
}

.template-1-preview .skeleton-line {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-bottom: 8px;
    width: 100%;
}

.template-1-preview .skeleton-line.short {
    width: 60%;
}

/* Template 2 - Classic Single Column Preview */
.template-2-preview {
    padding: 0;
}

.template-2-preview .skeleton-classic {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.template-2-preview .skeleton-header {
    height: 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    width: 100%;
}

.template-2-preview .skeleton-body {
    flex: 1;
    padding: 15px;
}

.template-2-preview .skeleton-line {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-bottom: 10px;
}

.template-2-preview .skeleton-line.full {
    width: 100%;
}

.template-2-preview .skeleton-line.medium {
    width: 70%;
}

.template-2-preview .skeleton-divider {
    height: 2px;
    background: #bdc3c7;
    margin: 15px 0;
    width: 100%;
}

/* Template 3 - Executive Grid Preview */
.template-3-preview {
    padding: 0;
    background: linear-gradient(180deg, #fffaf6 0%, #f8efe7 100%);
}

.template-3-preview .skeleton-banner {
    height: 52px;
    background: linear-gradient(135deg, #18324a 0%, #254d72 100%);
}

.template-3-preview .skeleton-columns {
    display: flex;
    height: calc(100% - 52px);
}

.template-3-preview .skeleton-main {
    flex: 1;
    padding: 14px 12px;
}

.template-3-preview .skeleton-side {
    width: 34%;
    padding: 12px 10px;
    background: rgba(212, 107, 61, 0.08);
    border-left: 1px solid rgba(24, 50, 74, 0.08);
}

.template-3-preview .skeleton-title {
    height: 16px;
    width: 78%;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #d46b3d;
}

.template-3-preview .skeleton-line {
    height: 6px;
    border-radius: 999px;
    margin-bottom: 9px;
    background: #d8dee4;
}

.template-3-preview .skeleton-line.full {
    width: 100%;
}

.template-3-preview .skeleton-line.medium {
    width: 72%;
}

.template-3-preview .skeleton-line.short {
    width: 58%;
}

.template-3-preview .skeleton-section-gap {
    height: 12px;
}

.template-3-preview .skeleton-chip {
    height: 18px;
    width: 100%;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.template-3-preview .skeleton-chip.short {
    width: 70%;
}

.template-3-preview .skeleton-divider {
    height: 1px;
    margin: 14px 0;
    background: rgba(24, 50, 74, 0.12);
}

/* Template Info */
.template-info {
    padding: 25px;
    text-align: center;
    border-top: 1px solid #ecf0f1;
}

.template-info h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.template-info p {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.template-badge {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.template-card:nth-child(2) .template-badge {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.template-card:nth-child(3) .template-badge {
    background: linear-gradient(135deg, #d46b3d 0%, #c45627 100%);
}

/* Select Template Button */
.btn-select-template {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-select-template:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
}

.btn-select-template i {
    margin-right: 8px;
}

.template-card:nth-child(2) .btn-select-template {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.template-card:nth-child(2) .btn-select-template:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

.template-card:nth-child(3) .btn-select-template {
    background: linear-gradient(135deg, #d46b3d 0%, #c45627 100%);
}

.template-card:nth-child(3) .btn-select-template:hover {
    background: linear-gradient(135deg, #c45627 0%, #af4a20 100%);
}

/* Features Section */
.templates-features {
    text-align: center;
    padding: 50px 0;
}

.templates-features h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.features-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-item i {
    color: #27ae60;
    font-size: 1.2rem;
}

.feature-item span {
    color: #2c3e50;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .templates-header h1 {
        font-size: 2rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        flex-direction: column;
        align-items: center;
    }
}
