/**
 * MORG Engineer Page - Styles
 * EVERTONEスタイル準拠
 */

/* ========================================
   Hero Section
   ======================================== */
.engineer-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%),
                url('../../images/equipment/neve-rack.jpg') center/cover no-repeat;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
}

.engineer-hero .hero-content {
    text-align: center;
    z-index: 1;
}

.engineer-hero h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
}

.engineer-hero .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
}

/* ========================================
   Engineer Container
   ======================================== */
.engineer-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ========================================
   Engineer Section
   ======================================== */
.engineer-section {
    margin-bottom: 5rem;
}

.engineer-section .section-header {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: #FF6600;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
}

/* ========================================
   Engineer Profile
   ======================================== */
.engineer-profile {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.engineer-profile:hover {
    border-color: rgba(255, 102, 0, 0.3);
}

.engineer-profile.featured {
    border-color: rgba(255, 102, 0, 0.4);
    background: rgba(255, 102, 0, 0.03);
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.engineer-profile:hover .profile-image img {
    filter: grayscale(0%);
}

.profile-content {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.profile-name-en {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.profile-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.profile-social {
    margin-bottom: 1.5rem;
}

.profile-social a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.profile-social a:hover {
    background: #FF6600;
}

.profile-bio {
    margin-bottom: 2rem;
}

.profile-bio p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.profile-bio p:last-child {
    margin-bottom: 0;
}

.profile-bio strong {
    color: #FF6600;
}

.profile-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border-left: 3px solid rgba(255, 102, 0, 0.5);
}

.profile-note a {
    color: #FF6600;
    text-decoration: none;
}

.profile-note a:hover {
    text-decoration: underline;
}

.profile-highlight {
    color: #FF6600 !important;
    font-weight: 500;
}

.link-orange {
    color: #FF6600;
    text-decoration: none;
}

.link-orange:hover {
    text-decoration: underline;
}

/* ========================================
   Profile Works
   ======================================== */
.profile-works {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-works h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #FF6600;
    margin-bottom: 1rem;
}

.works-content {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.works-content p {
    margin-bottom: 0.8rem;
}

.works-content p:last-child {
    margin-bottom: 0;
}

.works-content strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.works-note {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.3rem;
}

/* ========================================
   Legacy Engineers
   ======================================== */
.engineer-legacy {
    opacity: 0.8;
}

.engineer-legacy .section-header {
    color: rgba(255, 255, 255, 0.5);
}

.engineer-legacy .engineer-profile {
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.05);
}

.engineer-legacy .engineer-profile:hover {
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

/* ========================================
   CTA Section
   ======================================== */
.engineer-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.engineer-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cta-buttons .btn-outline:hover {
    border-color: #FF6600;
    color: #FF6600;
}

.cta-buttons .btn-primary {
    background: #FF6600;
    border: none;
    color: #fff;
}

.cta-buttons .btn-primary:hover {
    background: #ff7722;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #FF6600;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #ff7722;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .engineer-hero {
        min-height: 40vh;
    }

    .engineer-hero h1 {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
    }

    .engineer-container {
        padding: 2rem 1rem;
    }

    .engineer-profile {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .profile-image {
        text-align: center;
    }

    .profile-image img {
        max-width: 200px;
    }

    .profile-name {
        font-size: 1.4rem;
    }

    .engineer-cta {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .engineer-hero h1 {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .profile-image img {
        max-width: 150px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
}
