/* Business Card Elementor Widget Styles */

.business-card-wrapper {
    max-width: 1074px;
    margin: 0 auto;
}

.business-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef1f5;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.business-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.accent-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 308px;
    background: #16766f;
    z-index: 1;
}

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

.card-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.company-logo-section {
    flex-shrink: 0;
}

.logo-container {
    position: relative;
    width: 116px;
    height: 116px;
    background: #ebecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.canton-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 7.8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.business-type {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e8f1f1;
    border: 1px solid #a2c8c5;
    border-radius: 8px;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-type-icon {
    width: 16px;
    height: 16px;
    color: #16766f;
}

.company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: #1f1f1f;
    margin: 0;
    max-width: 700px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sector-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #585d69;
}

.sector-tag {
    background: #ebecef;
    padding: 4px 8px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #585d69;
}

.divider {
    width: 1px;
    height: 20px;
    background: #eef1f5;
    transform: rotate(90deg);
}

.revenue-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.revenue-amount {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #1f1f1f;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.listing-number {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #8b919f;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f3f8f7;
    border: 1px solid #0a8363;
    border-radius: 16px;
    padding: 2px 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: #0a8363;
}

.status-badge svg {
    width: 16px;
    height: 16px;
    color: #0a8363;
}

.creation-date {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #8b919f;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #f8f9fa;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    color: #1f1f1f;
}

.details-button .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #fffaf1;
    border: 1px solid #fcce75;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #1f1f1f;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 40px;
}

.details-button .btn:hover {
    background: #fff4e6;
    border-color: #f5b041;
    transform: translateY(-1px);
}

.details-button .btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .company-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .divider {
        display: none;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .listing-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .action-buttons {
        order: 2;
    }
    
    .details-button {
        order: 1;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 12px 16px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .company-logo {
        max-width: 60px;
        max-height: 60px;
    }
    
    .accent-line {
        height: 200px;
    }
    
    .company-title {
        font-size: 14px;
    }
    
    .details-button .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation for status badge */
.status-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(10, 131, 99, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(10, 131, 99, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(10, 131, 99, 0);
    }
}

/* Loading state */
.business-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.business-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #16766f;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}