/* CV Templates Additional Styles */

/* Template Cards Hover Effects */
.template-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.template-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

/* Template Preview Placeholders */
.template-placeholder {
    width: 200px;
    height: 260px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Auckland Template Preview */
.preview-auckland {
    background: linear-gradient(to bottom, #667eea 0%, #667eea 25%, #f8f9fa 25%, #f8f9fa 100%);
}

.preview-auckland::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
}

.preview-auckland::after {
    content: 'Auckland\AModern & Professional';
    white-space: pre;
    position: absolute;
    top: 15px;
    left: 55px;
    color: white;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

/* Edinburgh Template Preview */
.preview-edinburgh {
    background: linear-gradient(to bottom, #2d3748 0%, #2d3748 20%, #f7fafc 20%, #f7fafc 40%, white 40%);
}

/* Harvard Template Preview */
.preview-harvard {
    background: white;
    border-top: 3px solid #8B0000;
}

.preview-harvard::after {
    content: 'HARVARD\AClassic & Reliable';
    white-space: pre;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #8B0000;
    font-size: 9px;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

/* Stanford Template Preview */
.preview-stanford {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.preview-stanford::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #e53e3e 0%, #3182ce 50%, #38a169 100%);
}

/* Cambridge Template Preview */
.preview-cambridge {
    background: linear-gradient(to bottom, #34495e 0%, #34495e 25%, #ecf0f1 25%, #ecf0f1 60%, white 60%);
}

/* Oxford Template Preview */
.preview-oxford {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-top: 4px solid #DAA520;
}

.preview-oxford::after {
    content: 'OXFORD\ATraditional & Prestigious';
    white-space: pre;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #f5deb3;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Princeton Template Preview */
.preview-princeton {
    background: linear-gradient(to bottom, #f7fafc 0%, #f7fafc 20%, white 20%);
    border-bottom: 4px solid #e53e3e;
}

/* Otago Template Preview */
.preview-otago {
    background: linear-gradient(to bottom, white 0%, white 25%, #f8f9fa 25%);
    border-bottom: 2px solid #3498db;
}

/* Berkeley Template Preview */
.preview-berkeley {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.preview-berkeley::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

/* Template Content Lines */
.template-placeholder[class*="preview-"]::before {
    z-index: 2;
}

.template-placeholder::after {
    z-index: 3;
}

/* Add content lines for all templates */
.template-placeholder {
    background-image: 
        linear-gradient(90deg, #e2e8f0 0%, #e2e8f0 100%),
        linear-gradient(90deg, #f1f5f9 0%, #f1f5f9 100%),
        linear-gradient(90deg, #e2e8f0 0%, #e2e8f0 100%),
        linear-gradient(90deg, #f1f5f9 0%, #f1f5f9 100%);
    background-size: 
        150px 2px,
        120px 2px,
        170px 2px,
        100px 2px;
    background-position: 
        15px 180px,
        15px 190px,
        15px 200px,
        15px 210px;
    background-repeat: no-repeat;
}

/* Responsive Template Grid */
@media (max-width: 1200px) {
    .template-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .template-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .template-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .template-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Template Loading Animation */
@keyframes templateLoad {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.template-card {
    animation: templateLoad 0.6s ease-out;
}

.template-card:nth-child(1) { animation-delay: 0.1s; }
.template-card:nth-child(2) { animation-delay: 0.2s; }
.template-card:nth-child(3) { animation-delay: 0.3s; }
.template-card:nth-child(4) { animation-delay: 0.4s; }
.template-card:nth-child(5) { animation-delay: 0.5s; }
.template-card:nth-child(6) { animation-delay: 0.6s; }
.template-card:nth-child(7) { animation-delay: 0.7s; }
.template-card:nth-child(8) { animation-delay: 0.8s; }
.template-card:nth-child(9) { animation-delay: 0.9s; }