/**
 * Team Archive Widget - Frontend Styles
 * 
 * Vollständig responsive Grid-Layout für Team-Archive
 * Mobile-First Design mit Tablet und Desktop Breakpoints
 * Modernes Design inspiriert von broneder & broneder
 * 
 * @package mylandingpageai
 * @version 1.1.0
 */

/* ========================================
   GRID LAYOUT
   ======================================== */
.mylpai-team-archive-wrapper {
    width: 100%;
}

.mylpai-team-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
}

/* ========================================
   TEAM CARDS
   ======================================== */
.mylpai-team-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mylpai-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(9, 48, 80, 0.2);
}

/* ========================================
   IMAGE
   ======================================== */
.mylpai-team-image {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Etwas höher für bessere Proportionen */
    overflow: hidden;
    background: #f8f9fa;
}

.mylpai-team-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.mylpai-placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #093050 0%, #5C7A7A 100%);
    color: #FCFCFC;
}

.mylpai-placeholder-image .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    opacity: 0.9;
}

/* ========================================
   CONTENT
   ======================================== */
.mylpai-team-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mylpai-team-name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mylpai-team-name a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mylpai-team-name a:hover {
    color: #093050;
}

.mylpai-team-position {
    color: #5C7A7A;
    font-weight: 600;
    font-size: 15px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 13px;
}

.mylpai-team-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.mylpai-team-location .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #5C7A7A;
}

.mylpai-team-description {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.65;
    margin: 8px 0 0 0;
    flex: 1;
}

/* ========================================
   META FIELDS
   ======================================== */
.mylpai-team-meta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    color: #4b5563;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mylpai-team-meta:hover {
    background: #f1f3f5;
}

.mylpai-team-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #093050;
    flex-shrink: 0;
    margin-top: 2px;
}

.mylpai-team-meta a {
    color: #093050;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.mylpai-team-meta a:hover {
    color: #5C7A7A;
    text-decoration: underline;
}

.mylpai-team-meta strong {
    color: #1f2937;
    font-weight: 600;
}

/* Typ-spezifische Farben */
.mylpai-team-fees {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.mylpai-team-fees .dashicons {
    color: #3b82f6;
}

.mylpai-team-rank {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.mylpai-team-rank .dashicons {
    color: #f59e0b;
}

.mylpai-team-industries {
    background: #f5f3ff;
    border-left-color: #8b5cf6;
}

.mylpai-team-industries .dashicons {
    color: #8b5cf6;
}

.mylpai-team-reviews {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.mylpai-team-reviews .dashicons {
    color: #10b981;
}

.mylpai-team-awards {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.mylpai-team-awards .dashicons {
    color: #f59e0b;
}

/* ========================================
   LINK BUTTON
   ======================================== */
.mylpai-team-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-top: auto;
    padding: 14px 24px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 13px;
}

.mylpai-team-link:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: #ffffff;
}

.mylpai-team-link:active {
    transform: translateY(0);
}

/* ========================================
   LOAD MORE BUTTON
   ======================================== */
.mylpai-load-more-wrapper {
    margin-top: 40px;
    text-align: center;
}

.mylpai-load-more-btn {
    background: linear-gradient(135deg, #093050 0%, #5C7A7A 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(9, 48, 80, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mylpai-load-more-btn:hover {
    background: linear-gradient(135deg, #5C7A7A 0%, #093050 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(9, 48, 80, 0.3);
}

.mylpai-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mylpai-load-more-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mylpai-load-more-info {
    margin-top: 12px;
    color: #6b7280;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE: TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
    .mylpai-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mylpai-team-name {
        font-size: 24px;
    }
    
    .mylpai-team-image {
        padding-top: 100%;
    }
}

/* ========================================
   RESPONSIVE: DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    .mylpai-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mylpai-team-content {
        padding: 28px;
    }
    
    .mylpai-team-name {
        font-size: 26px;
    }
}

/* ========================================
   ELEMENTOR EDITOR FIXES
   ======================================== */
.elementor-editor-active .mylpai-team-grid {
    min-height: 200px;
}
