/**
 * Frontend Styles for Lecturer Profiles
 */

/* Lecturer Profiles Grid */
.lecturer-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

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

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

.lecturer-profiles-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .lecturer-profiles-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lecturer-profiles-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lecturer-profiles-grid.columns-4 {
        grid-template-columns: 1fr;
    }
}

/* Lecturer Card */
.lecturer-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lecturer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lecturer-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.lecturer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lecturer-card:hover .lecturer-card-image img {
    transform: scale(1.05);
}

.lecturer-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
}

.lecturer-placeholder svg {
    width: 64px;
    height: 64px;
    color: #999;
}

.lecturer-placeholder .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
}

.lecturer-card-content {
    padding: 20px;
}

.lecturer-card-name {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    font-weight: 600;
}

.lecturer-card-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lecturer-card-name a:hover {
    color: #0073aa;
}

.lecturer-card-position {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 10px 0;
    font-style: italic;
}

.lecturer-card-excerpt {
    color: #555;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.lecturer-card-link {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.lecturer-card-link:hover {
    background: #005a87;
    color: #fff;
}

/* Simplified Lecturer Card (No Bio Preview) */
.lecturer-card-simple {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lecturer-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: rgb(221, 153, 51);
}

.lecturer-card-image-simple {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecturer-card-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.lecturer-card-simple:hover .lecturer-card-image-simple img {
    transform: scale(1.05);
}

.lecturer-placeholder-simple {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(221, 153, 51, 0.1) 0%, rgba(221, 153, 51, 0.05) 100%);
    color: rgb(221,153,51);
}

.lecturer-placeholder-simple svg {
    width: 80px;
    height: 80px;
    color: rgb(221,153,51);
}

.lecturer-card-content-simple {
    padding: 20px 15px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.lecturer-card-name-simple {
    margin: 0 0 18px 0;
    font-size: 1.15em;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecturer-card-link-simple {
    display: inline-block;
    padding: 12px 24px;
    background: rgb(221,153,51);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(221, 153, 51, 0.3);
    border: 2px solid transparent;
}

.lecturer-card-link-simple:hover {
    background: rgb(196, 135, 45);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 153, 51, 0.5);
    border-color: rgb(180, 120, 35);
}

.no-lecturers-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Single Lecturer Profile Page */
.lecturer-profile-page {
    padding: 40px 20px;
    background: #f5f5f5;
    min-height: 100vh;
}

.lecturer-profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

/* New Lecturer Profile Card Design */
.lecturer-profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 3px solid rgb(221,153,51);
}

.lecturer-profile-wrapper {
    padding: 40px;
}

.lecturer-profile-image-section {
    text-align: center;
    margin-bottom: 25px;
}

.lecturer-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgb(221,153,51);
    box-shadow: 0 4px 12px rgba(221, 153, 51, 0.3);
}

.lecturer-placeholder-small {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(221, 153, 51, 0.1);
    border-radius: 50%;
    border: 4px solid rgb(221,153,51);
}

.lecturer-placeholder-small svg {
    width: 80px;
    height: 80px;
    color: rgb(221,153,51);
}

.lecturer-profile-name-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(221, 153, 51, 0.2);
}

.lecturer-profile-name {
    font-size: 2em;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.lecturer-profile-biography-section {
    margin-top: 30px;
}

.lecturer-biography-content {
    line-height: 1.8;
    color: #555;
    font-size: 1.05em;
}

.lecturer-biography-content p {
    margin-bottom: 15px;
}

.lecturer-profile-image {
    flex: 0 0 300px;
}

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

.lecturer-placeholder-large {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border-radius: 8px;
    color: #999;
}

.lecturer-placeholder-large .dashicons {
    font-size: 120px;
    width: 120px;
    height: 120px;
}

.lecturer-profile-info {
    flex: 1;
}

.lecturer-profile-name {
    font-size: 2em;
    margin: 0 0 15px 0;
    color: #333;
}

.lecturer-position {
    font-size: 1.2em;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.lecturer-contact-info {
    margin: 20px 0;
}

.lecturer-contact-info p {
    margin: 10px 0;
    color: #555;
}

.lecturer-contact-info a {
    color: #0073aa;
    text-decoration: none;
}

.lecturer-contact-info a:hover {
    text-decoration: underline;
}

.lecturer-departments {
    margin: 20px 0;
    color: #555;
}

.lecturer-profile-content {
    margin-top: 30px;
}

.lecturer-section {
    margin-bottom: 40px;
}

.lecturer-section h2 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.lecturer-section p {
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.lecturer-biography-content {
    line-height: 1.8;
    color: #555;
}

.lecturer-biography-content p {
    margin-bottom: 15px;
}

.lecturer-profile-footer {
    margin-top: 0;
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 2px solid rgba(221, 153, 51, 0.2);
    text-align: center;
}

.back-to-lecturers {
    display: inline-block;
    padding: 12px 24px;
    background: #d4af37;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid #b8941f;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.back-to-lecturers:hover {
    background: #b8941f;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.6);
}

/* Archive Page */
.lecturer-archive-page {
    padding: 40px 0;
}

.lecturer-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lecturer-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.lecturer-archive-title {
    font-size: 2.5em;
    margin: 0;
    color: #333;
}

/* Category Grouping */
.lecturer-category-group {
    margin-bottom: 50px;
}

.lecturer-category-title {
    font-size: 1.8em;
    margin: 0 0 10px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
}

.lecturer-category-description {
    color: #666;
    margin: 0 0 20px 0;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lecturer-profiles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lecturer-profiles-grid.columns-2,
    .lecturer-profiles-grid.columns-3,
    .lecturer-profiles-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .lecturer-profile-page {
        padding: 20px 10px;
    }
    
    .lecturer-profile-wrapper {
        padding: 30px 20px;
    }
    
    .lecturer-profile-picture {
        width: 120px;
        height: 120px;
    }
    
    .lecturer-placeholder-small {
        width: 120px;
        height: 120px;
    }
    
    .lecturer-profile-name {
        font-size: 1.5em;
    }
    
    .lecturer-profile-footer {
        padding: 15px 20px;
    }
}

