/* Modern Guru Cards CSS */

.guru-card-wrapper {
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.guru-card {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    position: relative;
}

.guru-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.guru-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.guru-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.guru-card:hover .guru-card__image {
    transform: scale(1.05);
}

.guru-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 142, 81, 0.8), rgba(233, 177, 25, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.guru-card:hover .guru-card__overlay {
    opacity: 1;
}

.guru-card__action-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #1c8e51;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.guru-card__action-btn:hover {
    background: #fff;
    transform: scale(1.05);
}

.guru-card__content {
    padding: 20px;
}

.guru-card__name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #333;
    line-height: 1.3;
}

.guru-card__meta {
    margin-bottom: 16px;
}

.guru-card__role {
    margin-bottom: 8px;
}

.guru-card__role .badge {
    background: linear-gradient(135deg, #1c8e51, #e9b619);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guru-card__position {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.guru-card__footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.guru-card__status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-aktif {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-tidak-aktif {
    background: #ffebee;
    color: #c62828;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guru-card__content {
        padding: 16px;
    }

    .guru-card__name {
        font-size: 16px;
    }

    .guru-card__position {
        font-size: 13px;
    }
}

/* Loading states */
#guru-container.loading {
    position: relative;
}

#guru-container.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.8);
    z-index: 10;
    backdrop-filter: blur(2px);
}

#guru-container.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #1c8e51;
    border-top-color: #e9b619;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}