/* Resume Styles for WordPress Integration */

/* Reset and Base Styles */
.resume-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Compact experience item styles */
.experience-item.compact {
    padding: 20px;
    margin-bottom: 20px;
}

/* Project showcase styles */
.project-showcase {
    display: grid;
    gap: 30px;
}

.project-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.project-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-left: 4px solid #81e6d9;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.project-card.featured:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.project-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-date, .project-tech, .project-status {
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.project-card.featured .project-date,
.project-card.featured .project-tech,
.project-card.featured .project-status {
    background: rgba(255, 255, 255, 0.2);
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #81e6d9;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: #4fd1c7;
}

/* Competitiveness Grid */
.competitiveness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.competitiveness-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 15px;
    border-top: 4px solid #667eea;
    transition: all 0.3s ease;
}

.competitiveness-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.competitiveness-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.competitiveness-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* Education */
.education-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.education-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.education-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #4a5568;
}

/* Expectations */
.expectations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.expectation-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.expectation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.expectation-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.expectation-item p {
    color: #4a5568;
    font-weight: 500;
}

.ideal-company {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.ideal-company h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.ideal-company p {
    line-height: 1.6;
    opacity: 0.95;
}

.resume-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.resume-header {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.basic-info .name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.basic-info .title {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
}

.contact-info {
    display: grid;
    gap: 15px;
    text-align: right;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

.contact-item a {
    color: #81e6d9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #4fd1c7;
}

/* Phone protection styles */
.phone-protected {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.phone-note, .wechat-note {
    font-size: 0.8rem;
    opacity: 0.7;
    font-style: italic;
    margin-left: 5px;
}

/* Privacy protection indicator */
.contact-item .phone-protected::after {
    content: ' 🔒';
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Section Styles */
.resume-section {
    padding: 50px 40px;
    border-bottom: 1px solid #e2e8f0;
}

.resume-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, transparent 100%);
}

.section-title i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.advantage-card {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.advantage-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.advantage-card p {
    color: #4a5568;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

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

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Experience Styles */
.experience-item {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.company-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 5px;
}

.position {
    color: #667eea;
    font-weight: 500;
    font-size: 1rem;
}

.duration {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.experience-desc {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.achievements, .projects, .tech-highlights {
    margin-top: 25px;
}

.achievements h5, .projects h5, .tech-highlights h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievements h5::before {
    content: '🎯';
}

.projects h5::before {
    content: '🚀';
}

.tech-highlights h5::before {
    content: '⚡';
}

.achievements ul, .tech-highlights ul {
    list-style: none;
    padding-left: 0;
}

.achievements li, .tech-highlights li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
}

.achievements li::before, .tech-highlights li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 0.8rem;
}

.project-list {
    display: grid;
    gap: 20px;
}

.project-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid #81e6d9;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(129, 230, 217, 0.2);
}

.project-item h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.project-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* Footer */
.resume-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.quote i {
    color: #667eea;
    font-size: 1.5rem;
    vertical-align: middle;
}

.fa-quote-left {
    margin-right: 10px;
}

.fa-quote-right {
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resume-wrapper {
        padding: 10px;
    }
    
    .resume-container {
        border-radius: 10px;
    }
    
    .resume-header {
        padding: 30px 20px;
    }
    
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .basic-info .name {
        font-size: 2.2rem;
    }
    
    .basic-info .title {
        font-size: 1rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .resume-section {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .section-title::after {
        display: none;
    }
    
    .advantages-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .duration {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .basic-info .name {
        font-size: 1.8rem;
    }
    
    .basic-info .title {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    .resume-wrapper {
        background: white;
        padding: 0;
    }
    
    .resume-container {
        box-shadow: none;
        border-radius: 0;
    }
    
    .resume-header {
        background: #1a202c !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .resume-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .experience-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .advantage-card,
    .project-item,
    .project-card,
    .competitiveness-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .advantage-card,
    .project-card,
    .competitiveness-item,
    .education-item,
    .expectation-item {
        border: 2px solid #1a202c;
    }
}