/* ========================================
   CV.CSS
   Styles for CV page
======================================== */

/* ----------------------------------------
   CV CONTENT
---------------------------------------- */
.cv-content {
    padding: 40px;
}

/* ----------------------------------------
   COMMON SECTION STYLES
---------------------------------------- */
.cv-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(245, 245, 220, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

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

.section-title {
    color: #4a2c17;
    font-size: 1.6rem;
    margin-bottom: 25px;
    font-weight: 600;
    border-bottom: 2px solid #8B4513;
    padding-bottom: 10px;
}

/* ----------------------------------------
   PERSONAL HEADER
---------------------------------------- */
.cv-header {
    background: white;
    border: 2px solid rgba(139, 69, 19, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.personal-header {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: center;
}

.cv-photo {
    width: 180px;
    height: 220px;
    background: #f0f0f0;
    border-radius: 12px;
    border: 3px solid #8B4513;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cv-identity h1 {
    color: #4a2c17;
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cv-title {
    color: #8B4513;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cv-specialties {
    color: #5d3e2a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cv-experience-badge {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* ----------------------------------------
   EXPERTISE GRID
---------------------------------------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.expertise-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.expertise-card h4 {
    color: #4a2c17;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.expertise-card p {
    color: #5d3e2a;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ----------------------------------------
   TOOLS COMPACT
---------------------------------------- */
.tools-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.tool-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tool-item h5 {
    color: #4a2c17;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.tool-item p {
    color: #5d3e2a;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ----------------------------------------
   PUBLICATIONS AND DISCOVERIES SHARED STYLES
---------------------------------------- */
.publication-year,
.discovery-date {
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    width: 140px;
    height: fit-content;
    white-space: nowrap;
}

.publication-year,
.discovery-date {
    background: #8B4513;
}

/* ----------------------------------------
   RESPONSIVE DESIGN
---------------------------------------- */
@media (max-width: 768px) {
    .cv-content {
        padding: 25px;
    }

    .cv-section {
        padding: 20px;
    }

    .personal-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .cv-photo {
        margin: 0 auto;
        width: 150px;
        height: 180px;
    }

    .cv-identity h1 {
        font-size: 1.8rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .tools-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .publication-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .discovery-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .discovery-links {
        align-items: center;
    }

    .year-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .tools-compact {
        grid-template-columns: 1fr;
    }
}