/* ==========================================================================
   Resume - Shared Resume Styles (used by all templates)
   ========================================================================== */

/* Resume Container */
.resume-container {
    width: 100%;
    height: 100%;
}

/* Resume Header */
.resume-header {
    margin-bottom: var(--spacing-2xl);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.resume-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #000000;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: var(--font-family-heading);
}

.resume-title {
    font-size: 1.125rem;
    color: #4a5568;
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.resume-contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
    color: #4a5568;
    padding-top: var(--spacing-sm);
    line-height: 1.6;
}

.resume-contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: color 0.2s ease;
}

.resume-contact-item:hover {
    color: var(--primary-color);
}

.resume-contact-item a {
    color: inherit;
}

/* Resume Section */
.resume-section {
    margin-bottom: var(--spacing-2xl);
    page-break-inside: avoid;
    animation: fadeInSection 0.5s ease;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resume-section:last-child {
    margin-bottom: 0;
}

.resume-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid #000000;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    color: #000000;
    font-family: var(--font-family-heading);
}

.resume-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #000000;
}

/* Summary */
.resume-summary {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2d3748;
    text-align: left;
    margin-bottom: var(--spacing-sm);
}

/* Skills */
.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.resume-skill {
    padding: 0.35rem 0.85rem;
    background-color: #f7fafc;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #2d3748;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    line-height: 1.4;
}

.resume-skill:hover {
    background-color: #edf2f7;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Experience, Education, Projects */
.resume-item {
    margin-bottom: var(--spacing-xl);
    page-break-inside: avoid;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.resume-item-left {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.resume-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: var(--spacing-xs);
    line-height: 1.3;
    font-family: var(--font-family-heading);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.resume-item-subtitle {
    font-size: 0.9rem;
    color: #4a5568;
    font-style: normal;
    font-weight: 500;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.resume-item-meta {
    font-size: 0.8rem;
    color: #718096;
    text-align: right;
    white-space: normal;
    flex: 0 0 auto;
    width: auto;
    max-width: 30%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    font-weight: 500;
    line-height: 1.3;
}

.resume-item-location {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.resume-item-description {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #2d3748;
    margin-top: var(--spacing-sm);
}

.resume-item-description ul {
    margin-top: var(--spacing-sm);
    padding-left: 1.25rem;
    list-style-type: none;
}

.resume-item-description li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-left: 0.5rem;
    line-height: 1.65;
}

.resume-item-description li::before {
    content: '•';
    position: absolute;
    left: -0.75rem;
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1em;
}

/* Certifications */
.resume-certification {
    margin-bottom: var(--spacing-md);
}

.resume-certification:last-child {
    margin-bottom: 0;
}

.resume-certification-name {
    font-weight: 700;
    color: #1a202c;
    font-size: 0.9rem;
    line-height: 1.4;
}

.resume-certification-issuer {
    color: #4a5568;
    font-size: 0.875rem;
    font-weight: 500;
}

.resume-certification-date {
    color: #718096;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Links */
.resume-container a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.resume-container a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Hidden */
.hidden {
    display: none;
}

/* Responsive Resume Styles */
@media (max-width: 1000px) {
    .resume-name {
        font-size: 2rem;
    }

    .resume-item-header {
        gap: var(--spacing-xs);
    }

    .resume-item-meta {
        max-width: 32%;
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
    .resume-name {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .resume-title {
        font-size: 1rem;
    }

    .resume-contact {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }

    .resume-section {
        margin-bottom: var(--spacing-xl);
    }

    .resume-section-title {
        font-size: 1rem;
    }

    .resume-section-title::after {
        width: 30px;
    }

    .resume-item-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .resume-item-meta {
        text-align: left;
        white-space: normal;
        max-width: 100%;
    }

    .resume-item-title {
        font-size: 0.95rem;
    }

    .resume-item-subtitle {
        font-size: 0.875rem;
    }

    .resume-item-description {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .resume-name {
        font-size: 1.5rem;
    }

    .resume-title {
        font-size: 0.938rem;
    }

    .resume-section {
        margin-bottom: var(--spacing-lg);
    }

    .resume-section-title {
        font-size: 0.938rem;
        margin-bottom: var(--spacing-md);
    }

    .resume-skills {
        gap: var(--spacing-xs);
    }

    .resume-skill {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .resume-item {
        margin-bottom: var(--spacing-md);
    }

    .resume-item-description ul {
        padding-left: var(--spacing-md);
    }
}