/**
 * Public CSS for Team Member Cards
 * 
 * This file is only used for general styles that apply across all templates.
 * Most template-specific styles are included directly in the template files.
 */

/* QR Code for vCard */
.tmc-qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.tmc-qr-code-image {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

.tmc-qr-code-caption {
    font-size: 14px;
    margin-top: 10px;
    color: #666;
}

/* Mobile-specific optimizations */
@media (max-width: 480px) {
    /* Hide scrollbar on mobile, but maintain scrolling */
    body::-webkit-scrollbar {
        width: 0 !important;
        display: none;
    }
    
    body {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    /* Add safe area for iOS */
    .tmc-card {
        padding-bottom: env(safe-area-inset-bottom);
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Optimize tap targets for mobile */
    .tmc-action-btn, 
    .tmc-contact-btn,
    .tmc-quick-action,
    .tmc-social-icon {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Default placeholder image styles */
.tmc-placeholder-image {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 12px;
}

.tmc-placeholder-profile {
    border-radius: 50%;
    text-align: center;
}

/* Loading animation for images */
.tmc-img-loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tmc-img-loaded {
    opacity: 1;
}

/* Add to home screen banner */
.tmc-add-to-home {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}

.tmc-add-to-home-text {
    flex: 1;
    padding-right: 10px;
}

.tmc-add-to-home-close {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

/* Toast notifications */
.tmc-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-size: 14px;
    transition: transform 0.3s ease-in-out;
}

.tmc-toast.active {
    transform: translateX(-50%) translateY(0);
}

/* Print styles - optimize for vCard printing */
@media print {
    body {
        background: white;
        font-size: 12pt;
    }
    
    .tmc-card {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .tmc-header {
        height: 100px !important;
    }
    
    .tmc-footer,
    .tmc-actions,
    .tmc-action-buttons,
    .tmc-share-url,
    .tmc-modal {
        display: none !important;
    }
    
    .tmc-profile-image {
        width: 80px !important;
        height: 80px !important;
    }
}