/**
 * Staff Directory Manager - Frontend Styles
 */

.sdm-directory-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sdm-directory-header {
    margin-bottom: 30px;
}

.sdm-directory-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1d2327;
}

.sdm-directory-description {
    font-size: 15px;
    color: #1d2327;
    margin: 0 0 20px 0;
}

/* Search Box */
.sdm-search-container {
    margin: 20px 0;
}

.sdm-search-input {
    width: 100%;
    max-width: 550px;
    padding: 10px 15px;
    font-size: 15px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    transition: none !important
}

.sdm-search-input:focus {
    outline: none;
    border-color: #007030;
    border-width: 2px !important;
    transition: none !important;
}

/* Grid Layout */
.sdm-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-top: 20px;
}

/* Contact Card */
.sdm-contact-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 15px 30px 0;
    transition: none;
    box-shadow: none;
}

.sdm-contact-card:hover {
    box-shadow: none;
    transform: none;
}

/* Contact Image */
.sdm-contact-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0 12px 0;
    background: white !important;
    flex-shrink: 0;
}

.sdm-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Info */
.sdm-contact-info {
    text-align: left;
}

.sdm-contact-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1d2327;
    line-height: 1.3;
}

.sdm-contact-title {
    font-size: 14px;
    font-weight: 400;
    color: #1d2327;
    margin: 0 0 4px 0;
    min-height: auto;
    line-height: 1.4;
}

.sdm-contact-email {
    display: block;
    font-size: 14px;
    color: #007030;
    text-decoration: underline;
    margin-bottom: 2px;
    word-break: break-word;
    transition: color 0.2s;
}

.sdm-contact-email:hover {
    color: #005020;
}

.sdm-contact-phone {
    font-size: 14px;
    color: #1d2327;
    margin: 0;
}

/* No Contacts Message */
.sdm-no-contacts {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #999;
    font-style: italic;
}

/* Tablet Layout (2 columns) */
@media screen and (max-width: 1024px) {
    .sdm-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    
    .sdm-directory-title {
        font-size: 26px;
    }
}

/* Mobile Layout (1 column) */
@media screen and (max-width: 768px) {
    .sdm-directory-wrapper {
        padding: 15px;
    }
    
    .sdm-directory-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sdm-directory-title {
        font-size: 24px;
    }
    
    .sdm-directory-description {
        font-size: 14px;
    }
    
    .sdm-search-input {
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .sdm-contact-card {
        padding: 0 0 20px 0;
    }
    
    .sdm-contact-image {
        width: 80px;
        height: 80px;
    }
    
    .sdm-contact-name {
        font-size: 16px;
    }
    
    .sdm-contact-title {
        font-size: 14px;
        min-height: auto;
    }
}

/* Print Styles */
@media print {
    .sdm-search-container {
        display: none;
    }
    
    .sdm-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .sdm-contact-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .sdm-contact-email {
        color: #000;
    }
}

