/* Base Resume Styles */
.resume-template {
    width: 100%;
    max-width: 8.5in;
    margin: 0 auto;
    background: white;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
}

.resume-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.resume-title {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.resume-contact {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.resume-contact span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resume-profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 5px;
    color: #2c3e50;
}

.resume-item {
    margin-bottom: 15px;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.resume-item-title {
    font-weight: 600;
    color: #2c3e50;
}

.resume-item-subtitle {
    color: #666;
    font-style: italic;
}

.resume-item-date {
    color: #888;
    font-size: 0.9rem;
}

.resume-item-description {
    margin-top: 8px;
    color: #555;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.resume-skill-category {
    margin-bottom: 15px;
}

.resume-skill-category h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.resume-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-skill-item {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

/* Modern Template */
.template-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
}

.template-modern .resume-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.template-modern .resume-name {
    color: white;
    font-size: 3rem;
}

.template-modern .resume-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

.template-modern .resume-contact span {
    color: rgba(255, 255, 255, 0.8);
}

.template-modern .resume-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-modern .resume-section-title {
    color: white;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.template-modern .resume-item-title {
    color: white;
    font-size: 1.1rem;
}

.template-modern .resume-item-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.template-modern .resume-item-date {
    color: rgba(255, 255, 255, 0.7);
}

.template-modern .resume-item-description {
    color: rgba(255, 255, 255, 0.9);
}

.template-modern .resume-skill-item {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Classic Template */
.template-classic {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 40px;
}

.template-classic .resume-header {
    border-bottom: 3px solid #2c3e50;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.template-classic .resume-name {
    font-family: 'Times New Roman', serif;
    color: #2c3e50;
    font-size: 2.8rem;
}

.template-classic .resume-title {
    color: #666;
    font-size: 1.2rem;
    font-family: 'Times New Roman', serif;
}

.template-classic .resume-section-title {
    color: #2c3e50;
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.template-classic .resume-item-title {
    color: #2c3e50;
    font-family: 'Times New Roman', serif;
}

.template-classic .resume-skill-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
}

/* Creative Template */
.template-creative {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.template-creative::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.template-creative .resume-content {
    position: relative;
    z-index: 1;
}

.template-creative .resume-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.template-creative .resume-name {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.template-creative .resume-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    font-weight: 300;
}

.template-creative .resume-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.template-creative .resume-section-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.template-creative .resume-item-title {
    color: white;
    font-weight: 600;
}

.template-creative .resume-item-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.template-creative .resume-skill-item {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Minimal Template */
.template-minimal {
    background: white;
    color: #333;
    padding: 40px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.template-minimal .resume-header {
    margin-bottom: 40px;
}

.template-minimal .resume-name {
    font-size: 2.5rem;
    font-weight: 300;
    color: #222;
    margin-bottom: 10px;
}

.template-minimal .resume-title {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 20px;
}

.template-minimal .resume-contact {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.template-minimal .resume-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.template-minimal .resume-item-title {
    font-weight: 500;
    color: #222;
}

.template-minimal .resume-item-subtitle {
    color: #666;
    font-weight: 300;
}

.template-minimal .resume-item-date {
    color: #999;
    font-size: 0.9rem;
}

.template-minimal .resume-skill-item {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 12px;
    border-radius: 2px;
}

/* Responsive Design for Templates */
@media (max-width: 768px) {
    .resume-template {
        font-size: 12px;
        max-width: 100%;
    }
    
    .resume-name {
        font-size: 2rem !important;
    }
    
    .resume-title {
        font-size: 1rem !important;
    }
    
    .resume-contact {
        flex-direction: column;
        gap: 10px;
    }
    
    .resume-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .resume-skill-list {
        gap: 5px;
    }
    
    .template-modern,
    .template-creative {
        padding: 20px;
    }
    
    .template-classic,
    .template-minimal {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .resume-template {
        font-size: 11px;
    }
    
    .resume-name {
        font-size: 1.8rem !important;
    }
    
    .resume-profile-img {
        width: 80px;
        height: 80px;
    }
    
    .template-modern .resume-section,
    .template-creative .resume-section {
        padding: 15px;
    }
}

/* Print Styles for Templates */
@media print {
    .resume-template {
        font-size: 12px;
        max-width: 100%;
        box-shadow: none;
    }
    
    .template-modern,
    .template-creative {
        background: white !important;
        color: #333 !important;
    }
    
    .template-modern .resume-header,
    .template-modern .resume-section,
    .template-creative .resume-header,
    .template-creative .resume-section {
        background: white !important;
        color: #333 !important;
    }
    
    .template-modern .resume-name,
    .template-modern .resume-section-title,
    .template-modern .resume-item-title,
    .template-creative .resume-name,
    .template-creative .resume-section-title,
    .template-creative .resume-item-title {
        color: #333 !important;
    }
    
    .template-creative::before {
        display: none;
    }
}
