/**
 * STARTPLATZ Mentors Page Styling
 * Matches the original WordPress mentoring page design
 */

/* Page Layout */
.mentors-page {
    background-color: #ffffff;
    padding: 3rem 0;
}

/* Main Headers */
.mentors-main-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.mentors-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 2rem;
}

/* Category Section Headers */
.mentor-section-header {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333333;
    margin: 3rem 0 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.mentor-category-section:first-of-type .mentor-section-header {
    margin-top: 2rem;
}

/* Mentor Cards */
.mentor-card {
    background: #ffffff;
    border: none;
    border-radius: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: none;
}

.mentor-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Mentor Image */
.mentor-image-container {
    margin-bottom: 0.75rem;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.mentor-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Mentor Name and Info */
.mentor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin: 0.5rem 0 0.25rem;
    line-height: 1.2;
    padding: 0 0.75rem;
}

.mentor-info {
    margin-bottom: 0.75rem;
    min-height: 2rem;
    padding: 0 0.75rem;
}

.mentor-title {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666666;
    margin-bottom: 0.2rem;
}

.mentor-company {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 0.5rem;
}

/* Expertise Section */
.mentor-expertise {
    flex-grow: 1;
    margin-bottom: 1rem;
    text-align: left;
    padding: 0 0.75rem;
}

.expertise-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.3rem;
    text-align: left;
}

.mentor-description {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.4;
    text-align: left;
}

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

.expertise-list li {
    font-size: 0.85rem;
    color: #666666;
    padding: 0.2rem 0;
    position: relative;
    padding-left: 1rem;
    line-height: 1.3;
}

.expertise-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
    font-weight: normal;
}

/* Action Button */
.mentor-action {
    margin-top: auto;
    padding: 0.75rem;
}

.btn-request {
    background-color: #ff6900;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

.btn-request:hover {
    background-color: #e55a00;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Placeholder Card */
.mentor-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.mentor-placeholder .mentor-name {
    color: #666666;
}

.placeholder-text {
    font-size: 0.95rem;
    color: #666666;
    margin: 1rem 0;
    line-height: 1.5;
}

.mentor-placeholder .btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
    width: 100%;
}

.mentor-placeholder .btn-secondary:hover {
    background-color: #5a6268;
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 991px) {
    .mentor-card {
        padding: 1.25rem;
    }

    .mentor-image {
        width: 100px;
        height: 100px;
    }

    .mentors-main-title {
        font-size: 1.25rem;
    }

    .mentors-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .mentors-main-title,
    .mentors-subtitle {
        padding: 0 1rem;
    }

    .mentor-section-header {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem;
    }

    .mentor-card {
        padding: 1rem;
    }

    .mentor-name {
        font-size: 1.1rem;
    }

    .btn-request,
    .mentor-placeholder .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Category-specific colors (optional) */
.mentor-category-section[data-category="apps-it"] .mentor-section-header {
    color: #2c5aa0;
}

.mentor-category-section[data-category="marketing"] .mentor-section-header {
    color: #ff6900;
}

.mentor-category-section[data-category="finanzierung"] .mentor-section-header {
    color: #28a745;
}

.mentor-category-section[data-category="recht"] .mentor-section-header {
    color: #6c757d;
}

.mentor-category-section[data-category="design"] .mentor-section-header {
    color: #e83e8c;
}

/* Admin Edit Icon - Top Right Corner */
.edit-corner-link {
    position: absolute;
    top: 16px;
    right: 56px; /* 40px space from other corner icon */
    background: rgba(52, 152, 219, 0.9); /* Blue - prominent */
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.edit-corner-link:hover {
    background: rgba(52, 152, 219, 1);
    transform: scale(1.1);
    text-decoration: none;
}

.edit-corner-link i {
    color: white;
    font-size: 14px;
}

/* Edit icon for STARTPLATZ mentors (no other corner icon) */
.mentor-card .edit-corner-link {
    right: 16px; /* Single icon, closer to edge */
}

/* Edit icon positioning relative to card container */
.mentor-card,
.mentor-card.accelerator-modern,
.expert-card.premium {
    position: relative;
}

/* Responsive: Smaller edit icon on mobile */
@media (max-width: 767px) {
    .edit-corner-link {
        width: 24px;
        height: 24px;
        top: 12px;
        right: 44px; /* Adjusted for smaller screens */
    }

    .edit-corner-link i {
        font-size: 12px;
    }

    .mentor-card .edit-corner-link {
        right: 12px;
    }
}

/* Loading state */
.mentors-loading {
    text-align: center;
    padding: 3rem;
    color: #666666;
}

.mentors-loading .spinner-border {
    color: #ff6900;
}

/* Empty state */
.mentors-empty {
    text-align: center;
    padding: 3rem;
    color: #666666;
}

.mentors-empty .lead {
    font-size: 1.25rem;
    color: #888888;
}