/**
 * NF Committee Members - Frontend Styles
 * Version: 1.0.0
 */

/* ===================================
   Members Grid
   =================================== */
.nfcm-members-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

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

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

.nfcm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.nfcm-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ===================================
   Member Card
   =================================== */
.nfcm-member-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nfcm-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Member Image */
.nfcm-member-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.nfcm-member-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 0;
}

.nfcm-member-image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Placeholder Image */
.nfcm-placeholder-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nfcm-placeholder-image .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: #bdbdbd;
}

.nfcm-placeholder-image.large .dashicons {
    font-size: 100px;
    width: 100px;
    height: 100px;
}

/* Member Info */
.nfcm-member-info {
    padding: 20px;
    text-align: center;
}

.nfcm-member-name {
    margin: 0 0 8px 0;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.3;
}

.nfcm-member-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nfcm-member-name a:hover {
    color: #0073aa;
}

.nfcm-member-role {
    margin: 0 0 12px 0;
    font-size: 0.9em;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nfcm-member-bio {
    margin: 0 0 15px 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #444444;
}

/* Contact Info */
.nfcm-member-contact {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.nfcm-member-contact p {
    margin: 8px 0;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nfcm-member-contact .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #666;
}

.nfcm-member-contact a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nfcm-member-contact a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ===================================
   Single Member Profile (Bild rechts)
   =================================== */
.nfcm-member-profile.nfcm-profile-image-right {
    max-width: 1000px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 30px;
}

/* Titel-Bereich */
.nfcm-profile-title-section {
    margin-top: 30px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a5276;
}

.nfcm-profile-title-section .nfcm-profile-name {
    margin: 0 0 8px 0;
    font-size: 2em;
    color: #1a5276;
    font-weight: 700;
    line-height: 1.2;
}

.nfcm-profile-title-section .nfcm-profile-role {
    margin: 0;
    font-size: 1em;
    color: #555;
}

/* Content Wrapper - Flexbox: Text links, Bild rechts */
.nfcm-profile-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.nfcm-profile-content {
    flex: 1;
    min-width: 0;
}

/* Profilbild Sidebar (rechts) */
.nfcm-profile-image-sidebar {
    flex-shrink: 0;
    width: 250px;
}

.nfcm-profile-image-sidebar img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nfcm-profile-image-sidebar .nfcm-placeholder-image {
    position: relative;
    width: 250px;
    height: 300px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    top: auto;
    left: auto;
}

.nfcm-profile-image-sidebar .nfcm-placeholder-image .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #bdbdbd;
}

/* Profile Content Styles */
.nfcm-profile-image-right .nfcm-profile-committees {
    margin-bottom: 10px;
    color: #1a5276;
}

.nfcm-profile-image-right .nfcm-profile-committees a {
    color: #1a5276;
    text-decoration: none;
}

.nfcm-profile-image-right .nfcm-profile-committees a:hover {
    text-decoration: underline;
}

.nfcm-profile-image-right .nfcm-profile-since {
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.nfcm-profile-image-right .nfcm-profile-bio {
    line-height: 1.8;
    color: #333;
    padding: 0;
    border: none;
    background: none;
}

.nfcm-profile-image-right .nfcm-profile-bio p {
    margin-bottom: 1em;
}

.nfcm-profile-image-right .nfcm-profile-bio ul,
.nfcm-profile-image-right .nfcm-profile-bio ol {
    margin-left: 20px;
    margin-bottom: 1em;
}

.nfcm-profile-image-right .nfcm-profile-bio h2,
.nfcm-profile-image-right .nfcm-profile-bio h3,
.nfcm-profile-image-right .nfcm-profile-bio strong {
    color: #1a5276;
}

.nfcm-profile-image-right .nfcm-profile-bio a {
    color: #1a5276;
}

/* Kontakt-Bereich */
.nfcm-profile-image-right .nfcm-profile-contact {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.nfcm-profile-image-right .nfcm-profile-contact h3 {
    color: #1a5276;
    margin: 0 0 12px 0;
    font-size: 1em;
    font-weight: 600;
}

.nfcm-profile-image-right .nfcm-profile-contact p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nfcm-profile-image-right .nfcm-profile-contact .dashicons {
    color: #1a5276;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.nfcm-profile-image-right .nfcm-profile-contact a {
    color: #1a5276;
    text-decoration: none;
}

.nfcm-profile-image-right .nfcm-profile-contact a:hover {
    text-decoration: underline;
}

/* Webseite */
.nfcm-website {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Adressen */
.nfcm-address {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.nfcm-address h4 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    font-weight: 600;
    color: #1a5276;
}

.nfcm-address p {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.nfcm-address .dashicons {
    color: #1a5276;
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-top: 3px;
}

.nfcm-address-text {
    line-height: 1.5;
}

/* Responsive für Bild-rechts Layout */
@media screen and (max-width: 768px) {
    .nfcm-profile-content-wrapper {
        flex-direction: column-reverse;
    }
    
    .nfcm-profile-image-sidebar {
        width: 180px;
        margin: 0 auto 20px auto;
    }
    
    .nfcm-profile-image-sidebar .nfcm-placeholder-image {
        width: 180px;
        height: 220px;
    }
    
    .nfcm-profile-title-section .nfcm-profile-name {
        font-size: 1.6em;
    }
    
    .nfcm-member-profile.nfcm-profile-image-right {
        padding: 20px;
    }
}

/* ===================================
   Legacy Single Member Profile (altes Layout)
   =================================== */
.nfcm-member-profile {
    max-width: 900px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.nfcm-profile-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
}

.nfcm-profile-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
}

.nfcm-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nfcm-profile-image .nfcm-placeholder-image {
    position: relative;
    width: 200px;
    height: 200px;
    transform: none;
    top: auto;
    left: auto;
}

.nfcm-profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nfcm-profile-name {
    margin: 0 0 10px 0;
    font-size: 2em;
    font-weight: 700;
    color: #333333;
    line-height: 1.2;
}

.nfcm-profile-role {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nfcm-profile-committees {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: #555;
}

.nfcm-profile-since {
    margin: 0 0 15px 0;
    font-size: 0.9em;
    color: #777;
    font-style: italic;
}

.nfcm-profile-contact {
    margin-top: auto;
}

.nfcm-profile-contact p {
    margin: 8px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nfcm-profile-contact .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #666;
}

.nfcm-profile-contact a {
    color: #0073aa;
    text-decoration: none;
}

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

.nfcm-profile-bio {
    padding: 30px;
    font-size: 1em;
    line-height: 1.8;
    color: #444444;
}

.nfcm-profile-bio p {
    margin-bottom: 1em;
}

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

/* ===================================
   Member Link
   =================================== */
.nfcm-member-link {
    color: #0073aa;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nfcm-member-link:hover {
    color: #005a87;
    border-bottom-style: solid;
}

/* ===================================
   No Members Message
   =================================== */
.nfcm-no-members {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* ===================================
   Responsive Styles
   =================================== */
@media screen and (max-width: 1024px) {
    .nfcm-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nfcm-columns-3,
    .nfcm-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nfcm-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nfcm-profile-details {
        align-items: center;
    }
    
    .nfcm-profile-contact p {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .nfcm-columns-2,
    .nfcm-columns-3,
    .nfcm-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .nfcm-profile-image {
        width: 150px;
        height: 150px;
    }
    
    .nfcm-profile-image .nfcm-placeholder-image {
        width: 150px;
        height: 150px;
    }
    
    .nfcm-profile-name {
        font-size: 1.5em;
    }
    
    .nfcm-profile-header,
    .nfcm-profile-bio {
        padding: 20px;
    }
}

/* ===================================
   Dashicons Support (wenn nicht geladen)
   =================================== */
.dashicons {
    font-family: dashicons;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dashicons-email:before { content: "\f465"; }
.dashicons-phone:before { content: "\f525"; }
.dashicons-admin-users:before { content: "\f110"; }
.dashicons-admin-site-alt3:before { content: "\f475"; }
.dashicons-location:before { content: "\f230"; }
.dashicons-building:before { content: "\f512"; }

/* ===================================
   Print Styles
   =================================== */
@media print {
    .nfcm-member-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .nfcm-member-card:hover {
        transform: none;
    }
    
    .nfcm-member-contact a {
        color: inherit;
    }
    
    .nfcm-member-contact a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
