/**
 * MSA Guest Instructor Frontend Styles
 * Professional, MSA-branded styling for guest instructor pages
 * 
 * @package MSA_Events_Pro
 * @since 2.18.0
 */

/* ==========================================================================
   Container & Layout
   ========================================================================== */

.msa-instructor-page {
    padding: 40px 0;
    background: #fff;
}

.msa-instructor-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.instructor-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    padding-top: 80px;  /* MSA Logo Radius berücksichtigen */
    border-bottom: 3px solid #ff9933;
}

@media (max-width: 768px) {
    .instructor-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.instructor-photo-large .instructor-avatar {
    width: 280px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #ff9933;
    box-shadow: 0 8px 24px rgba(255, 153, 51, 0.2);
}

.instructor-photo-large .avatar-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9933, #ff6633);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    border: 4px solid #ff9933;
}

@media (max-width: 768px) {
    .instructor-photo-large .instructor-avatar,
    .instructor-photo-large .avatar-placeholder {
        margin: 0 auto;
    }
}

.instructor-header h1.instructor-name {
    font-size: 3rem;
    margin: 0 0 5px 0;
    color: #9933ff;
    font-weight: 700;
    line-height: 1.2;
}

.instructor-header .instructor-tagline {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    .instructor-header h1.instructor-name {
        font-size: 2.2rem;
    }
}

.instructor-header .instructor-title {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    margin: 0 0 20px 0;
    font-weight: 300;
}

.instructor-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .instructor-expertise {
        justify-content: center;
    }
}

.expertise-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.expertise-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.instructor-social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .instructor-social-links {
        justify-content: center;
    }
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff9933;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #ff9933;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 153, 51, 0.4);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.instructor-content {
    margin-bottom: 60px;
}

.instructor-content > div {
    margin-bottom: 50px;
}

.instructor-content h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.instructor-content h2 i {
    color: #ff9933;
    font-size: 1.8rem;
}

.bio-content,
.achievements-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.bio-content p,
.achievements-content p {
    margin-bottom: 15px;
}

.bio-content ul,
.achievements-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.bio-content li,
.achievements-content li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.bio-content li:before,
.achievements-content li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff9933;
    font-weight: bold;
}

/* ==========================================================================
   Events List
   ========================================================================== */

.events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #f9f9f9, #fff);
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-card:hover {
    border-color: #ff9933;
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.15);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.event-date {
    background: linear-gradient(135deg, #ff9933, #ff6633);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .event-date {
        padding: 15px;
    }
}

.event-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.4rem;
}

.event-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.event-action {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .event-action {
        justify-content: center;
    }
}

/* ==========================================================================
   External Links
   ========================================================================== */

.links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.links-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #ff9933;
    border-radius: 4px;
    transition: all 0.2s;
}

.links-list li:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.links-list a {
    color: #ff9933;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.links-list a strong {
    font-weight: 700;
    color: #333;
}

.links-list a:hover {
    color: #ff6633;
}

.link-desc {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
    font-weight: normal;
}

/* ==========================================================================
   Page Meta
   ========================================================================== */

.page-meta {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
}

.page-meta p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.page-meta i {
    color: #ff9933;
    margin-right: 5px;
}

.page-meta time {
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.instructor-cta {
    background: linear-gradient(135deg, #ff9933, #ff6633);
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 153, 51, 0.3);
}

.instructor-cta h2 {
    color: white;
    border: none;
    padding: 0;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.instructor-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff9933;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #ff9933;
}

.btn-primary:hover {
    background: #ff6633;
    border-color: #ff6633;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 51, 0.4);
    color: white;
}

.btn-primary.btn-large {
    padding: 16px 36px;
    font-size: 1.2rem;
}

.instructor-cta .btn-primary {
    background: white;
    color: #ff9933;
    border-color: white;
}

.instructor-cta .btn-primary:hover {
    background: #fff;
    color: #ff6633;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 992px) {
    .instructor-hero {
        gap: 30px;
    }
    
    .instructor-content h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .msa-instructor-page {
        padding: 20px 0;
    }
    
    .msa-instructor-page .container {
        padding: 0 16px;
    }
    
    .instructor-hero {
        margin-bottom: 40px;
        padding-bottom: 30px;
        padding-top: 40px;
    }
    
    .instructor-photo-large .instructor-avatar,
    .instructor-photo-large .avatar-placeholder {
        width: 200px;
    }
    
    .instructor-header h1.instructor-name {
        font-size: 1.8rem;
    }
    
    .instructor-header .instructor-tagline {
        font-size: 1rem;
    }
    
    .instructor-header .instructor-title {
        font-size: 1.1rem;
    }
    
    .instructor-content h2 {
        font-size: 1.4rem;
    }
    
    .instructor-cta {
        padding: 30px 20px;
    }
    
    .instructor-cta h2 {
        font-size: 1.6rem;
    }
    
    .instructor-cta p {
        font-size: 1rem;
    }
    
    .event-card {
        padding: 15px;
    }
}

/* Hide theme footer CTA on instructor pages */
.msa-instructor-page ~ .msa-footer-cta,
body:has(.msa-instructor-page) .msa-footer-cta { display: none !important; }
