/**
 * Vendor Info Tab Styling
 * Detail page vendor information tab
 */

/* Main Container */
.sm-vendor-info-tab {
    padding: 32px 0;
    background: #fff;
}

/* Header Section */
.sm-vendor-info-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.sm-vendor-info-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.sm-vendor-info-description {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Vendor Details Grid */
.sm-vendor-details {
    margin-top: 24px;
}

.sm-vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* Vendor Block */
.sm-vendor-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sm-vendor-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #0066cc;
}

/* Block Header */
.sm-vendor-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e8e8e8;
}

.sm-vendor-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
}

.sm-vendor-block-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Detail List */
.sm-vendor-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sm-vendor-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.sm-vendor-detail-item:last-child {
    border-bottom: none;
}

.sm-vendor-detail-item:hover {
    background: rgba(0, 102, 204, 0.02);
    padding-left: 8px;
    margin-left: -8px;
    border-radius: 6px;
}

.sm-vendor-label {
    font-size: 13px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sm-vendor-value {
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sm-vendor-value .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #0066cc;
}

/* Links */
.sm-vendor-value a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sm-vendor-value a:hover {
    color: #004999;
    text-decoration: underline;
}

.sm-vendor-email,
.sm-vendor-social-link,
.sm-vendor-link {
    padding: 6px 12px;
    background: #f0f7ff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.sm-vendor-email:hover,
.sm-vendor-social-link:hover,
.sm-vendor-link:hover {
    background: #0066cc;
    color: #fff !important;
    text-decoration: none;
}

.sm-vendor-email:hover .dashicons,
.sm-vendor-social-link:hover .dashicons,
.sm-vendor-link:hover .dashicons {
    color: #fff;
}

/* Block Specific Styles */
.sm-company-block {
    border-left: 4px solid #0066cc;
}

.sm-contact-block {
    border-left: 4px solid #28a745;
}

.sm-social-block {
    border-left: 4px solid #6c757d;
}

.sm-additional-block {
    border-left: 4px solid #ffc107;
}

.sm-basic-info-block {
    border-left: 4px solid #17a2b8;
}

/* Empty State */
.sm-no-vendor-info {
    padding: 60px 20px;
    text-align: center;
}

.sm-empty-state {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.sm-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #6c757d;
    margin-bottom: 20px;
}

.sm-empty-state h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.sm-empty-state p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sm-vendor-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sm-vendor-info-tab {
        padding: 24px 0;
    }
    
    .sm-vendor-info-header h2 {
        font-size: 28px;
    }
    
    .sm-vendor-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sm-vendor-block {
        padding: 20px;
    }
    
    .sm-vendor-block-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .sm-vendor-block-header h3 {
        font-size: 18px;
    }
    
    .sm-vendor-detail-list {
        gap: 12px;
    }
    
    .sm-vendor-detail-item {
        padding: 10px 0;
    }
}

@media (max-width: 480px) {
    .sm-vendor-info-header {
        margin-bottom: 24px;
    }
    
    .sm-vendor-info-header h2 {
        font-size: 24px;
    }
    
    .sm-vendor-info-description {
        font-size: 14px;
    }
    
    .sm-vendor-block {
        padding: 16px;
        border-radius: 8px;
    }
    
    .sm-vendor-block-header {
        gap: 8px;
    }
    
    .sm-vendor-icon {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
    
    .sm-vendor-block-header h3 {
        font-size: 16px;
    }
    
    .sm-vendor-label {
        font-size: 12px;
    }
    
    .sm-vendor-value {
        font-size: 14px;
    }
    
    .sm-vendor-email,
    .sm-vendor-social-link,
    .sm-vendor-link {
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* Print Styles */
@media print {
    .sm-vendor-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .sm-vendor-block:hover {
        transform: none;
        box-shadow: none;
    }
    
    .sm-vendor-value a {
        color: #000;
        text-decoration: underline;
    }
}


